Forum Discussion
vjnvinod
Impactful Individual
1 year agoDax Logic Help for cumulative on Card
problem statement: my actuals. measure in the table shows cumulative value, but when i place the same measure on the card, i get that individual value of the month, as you can see in Feb its 50M a...
- 1 year ago
Hi vjnvinod , I tried to replicate your problem statement and below formula is working for me.
Just change the ALLSELECTED to ALL in your case.
IF([Actuals]>0,CALCULATE([Actuals],ALL('GroupOPEXCAPEX'),'GroupOPEXCAPEX'[DateColumn] <= MAX('GroupOPEXCAPEX'[DateColumn]) &&'GroupOPEXCAPEX'[Actual/Budget] = "Actuals"),BLANK())
govind_021
Super User
1 year agoHey , vjnvinod please try this
Actuals Combined =
IF(
ISINSCOPE('GroupOPEXCAPEX'[DateColumn]),
-- Cumulative logic for table rows
IF(
[Actuals] > 0,
CALCULATE(
[Actuals],
FILTER(
ALLSELECTED('GroupOPEXCAPEX'),
'GroupOPEXCAPEX'[DateColumn] <= MAX('GroupOPEXCAPEX'[DateColumn]) &&
'GroupOPEXCAPEX'[Actual/Budget] = "Actuals"
)
),
BLANK()
),
-- Monthly value for card or other non-date visuals
CALCULATE(
SUM('GroupOPEXCAPEX'[Value]),
'GroupOPEXCAPEX'[Actual/Budget] = "Actuals"
)
)
vjnvinod
Impactful Individual
1 year ago