Forum Discussion
Graph not dipslaying measure correctly
- Anonymous2 years ago
Hi alycianw ,
Try the following expression
Dynamic Value = VAR CurrentDate = TODAY() VAR Actuals = SUM('Data Center Data'[Actuals]) VAR Budget = SUM('Data Center Data'[Budget]) VAR LE = SUM('Data Center Data'[LE]) RETURN SWITCH( TRUE(), MAX('Data Center Data'[Date]) < CurrentDate, Actuals + Budget, MAX('Data Center Data'[Date]) >= CurrentDate, Actuals + LE, BLANK() )Please feel free to correct me and provide more information if I have misunderstood you!
Hope it helps!
Best regards,
Community Support Team_ Scott ChangIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- 2 years ago
Resolved my issue by adding a new column identifying if it is a past or future month and based on that column it was able to filter out future months for budget and past months for LE. Thank you for the help
Hi alycianw ,
Try the following expression
Dynamic Value =
VAR CurrentDate = TODAY()
VAR Actuals = SUM('Data Center Data'[Actuals])
VAR Budget = SUM('Data Center Data'[Budget])
VAR LE = SUM('Data Center Data'[LE])
RETURN
SWITCH(
TRUE(),
MAX('Data Center Data'[Date]) < CurrentDate, Actuals + Budget,
MAX('Data Center Data'[Date]) >= CurrentDate, Actuals + LE,
BLANK()
)
Please feel free to correct me and provide more information if I have misunderstood you!
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- alycianw2 years agoFrequent Visitor
I am playing with it to see if I can get it to work. The issue I see with this one is that its making it one value. I need to be able to identify the specific columns as Budget or LE, it looks like this makes a new value so does not specify each.
Thank you for the help and suggestions this may get me in the right direction.