Forum Discussion
Cumulative Total query
- 2 years ago
Try this, and let me know if there are any problems:
Depletion Cumulative Total =
IF ( NOT ISBLANK(SUM(Depletion[9LE])),
CALCULATE(
SUM(Depletion[9LE]),
FILTER(
ALLSELECTED(Dim_Date[Date]),
Dim_Date[Date] <= MAX(Dim_Date[Date])
)))
Hi, you can try this to remove blanks:
Depletion Cumulative Total =
IF ( ISBLANK(SUM(Depletion[9LE])),
BLANK(),
CALCULATE( SUM(Depletion[9LE]),
FILTER( ALL(Dim_Date[Date]), Dim_Date[Date] <= MAX(USA[Date]))))
- gbarr123452 years agoPost Prodigy
Hi,
Thank you for your response.
I tried this but it doesn't seem to work:
- ahadkarimi2 years agoSolution Specialist
Try this, and let me know if there are any problems:
Depletion Cumulative Total =
IF ( NOT ISBLANK(SUM(Depletion[9LE])),
CALCULATE(
SUM(Depletion[9LE]),
FILTER(
ALLSELECTED(Dim_Date[Date]),
Dim_Date[Date] <= MAX(Dim_Date[Date])
)))- gbarr123452 years agoPost Prodigy
That worked, thank you so much!