I have large dataset (millions of rows) with about 20 columns, but it will be much easier to explain my problem with only 3 variables: Date, Metric, Value.
I have two variables in column Metric, Lets say A and B, and I need to take take first (sum for first day) values from “A” plus first sum o values for “B”, than continue adding sum of values for B each day.
To make long story short, I need sum of values for “A” for 01.01.2023 as baseline, then runnig total for sum of values for “B”.
What I have
What I need
I know how to calculate running total for “B”, but I can´t “link” it to value A (calculate(sum), filter(Metric=“A”), date=date(01.01.2023).
Thanks for reply, I am sorry about confusion, I messed up, little bit.
Simple sum will not help at all. There are values for “A” every day, I need only first one (01.01.2023). Thats where I am lost. If I filter with calculate, I can sum A+B only for 01.01.2021 but not for next day, day after and so on.