Forum Discussion
Monthly Budget to Daily
- 4 years ago
Hi Anonymous ,
According to your description, accumulation usually has two important factors: time and addition.
There are two formulas that are more common:
CALCULATE( SUM(), FILTER( ALL(), [Date]<=MAX([Date])))Or
SUMX( FILTER( ALL(), [Date]<=MAX([Date])),[ ])
For the first formula, it only accept a column in the SUM function.
In your formula, there is no step of addition, here's my solution:
Cumul. Bdgt Canada (USD) = SUMX ( FILTER ( ALLSELECTED ( CalendarDate ), CalendarDate[Date] <= MAX ( CalendarDate[Date] ) ), [Daily Bdgt Alloc (USD)] )Get the correct result in my sample.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Everyone,
I was able to get the daily amount to work, but now I am struggling with the cumulative total.
I can get the cumulative total of sales using DAX, but when I use DAX for the cumulative budget I get a step function. The DAX I used is,
So it is clearly not accumulating.
I have cumulation measures throughout my report that work with the DAX above, but it does not seem to work in this case.
Any help is appreciated.
Rich
Hi Anonymous ,
According to your description, accumulation usually has two important factors: time and addition.
There are two formulas that are more common:
CALCULATE( SUM(), FILTER( ALL(), [Date]<=MAX([Date])))
Or
SUMX( FILTER( ALL(), [Date]<=MAX([Date])),[ ])
For the first formula, it only accept a column in the SUM function.
In your formula, there is no step of addition, here's my solution:
Cumul. Bdgt Canada (USD) =
SUMX (
FILTER (
ALLSELECTED ( CalendarDate ),
CalendarDate[Date] <= MAX ( CalendarDate[Date] )
),
[Daily Bdgt Alloc (USD)]
)
Get the correct result in my sample.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- ngocrin13 years agoFrequent Visitor
Tks. It also help me a lot