Forum Discussion
jay_patel
5 years agoHelper IV
How to get cumulative value.
Hello All
Here I am trying to get the cumulative for "Primary Sales LM(%)" with simple dax but it's not working as it is giving 100% for all rows. Mentioning Example below with Screenshot And Dax.
cumulative for LM % =
CALCULATE (
[Primary Sales LM(%)],
FILTER (
ALLSELECTED( SDivision ),
SDivision[SBU] <= MAX( SDivision[SBU] )
)
)
2)
Primary Sales LM(%) = [PS Previous Month] * 100/[primarysalesFinalfor-LM]
6 Replies
- amitchandakSuper User
jay_patel , Try like
CALCULATE (
[Primary Sales LM(%)],
FILTER (
ALLSELECTED( SDivision ),
SDivision[SBU] = max( SDivision[SBU])
)
)- jay_patelHelper IV
Hi Amit
it's giving same value for all rows "100%"
- amitchandakSuper User
jay_patel , Try like.
CALCULATE (
Sumx(Values(SDivision[SBU]),[Primary Sales LM(%)]),
FILTER (
ALLSELECTED( SDivision ),
SDivision[SBU] = max( SDivision[SBU])
)
)Can you share sample data and sample output in table format?