Forum Discussion
hvlfc
4 years agoFrequent Visitor
Cumalative column starting on specific Date
Hi all, I need to add a cumalative column, but it should only start to acumalate on the 16th of february. My initial table looks like this: I need to create a column that sees 16...
- 4 years ago
Hi hvlfc ,
Please try this:-
Column = CALCULATE ( SUM ( [Product] ), FILTER ( ALL ( StockSummary ), [date] <= EARLIER ( StockSummary[Date] ) && [Date] >= DATE ( 2022, 2, 16 ) ) )Output:-
Thanks,
Samarth
Samarth_18
Community Champion
4 years agoHi hvlfc ,
Please try this:-
Column =
CALCULATE (
SUM ( [Product] ),
FILTER (
ALL ( StockSummary ),
[date] <= EARLIER ( StockSummary[Date] )
&& [Date] >= DATE ( 2022, 2, 16 )
)
)Output:-
Thanks,
Samarth
- hvlfc4 years agoFrequent Visitor
- Samarth_184 years ago
Community Champion
hvlfc , Try this:-
Column = CALCULATE ( SUM ( [Product] ), FILTER ( ALL ( StockSummary ), [date] >= EARLIER ( StockSummary[Date] ) && [Date] <= DATE ( 2022, 2, 16 ) ) )Output:-