Forum Discussion
Jelbeanie
1 year agoRegular Visitor
Measuring change in values on specific dates
Hi all, I'm trying to use 'VAR' to do measure the change between 2 numbers on specific dates. Basically, (old-new)/old - between 2 specific points of time that won't move, or change. They a...
- Anonymous1 year ago
Hi lbendlin ,thanks for the quick reply, I'll add more.
Hi Jelbeanie ,
Try this
Value % difference from 2019 b = VAR base = CALCULATE( SUM('Employment by Industry'[Value]), 'Employment by Industry'[Year] IN { "2019" }) Var future = CALCULATE( SUM('Employment by Industry'[Value]), 'Employment by Industry'[Year] IN { "2050" }) Var subtraction = base - future Var result = DIVIDE(subtraction, base) RETURN IF ( NOT ISBLANK(result),result)Best Regards,
Wenbin Zhou
Anonymous
1 year agoNot applicable
Hi lbendlin ,thanks for the quick reply, I'll add more.
Hi Jelbeanie ,
Try this
Value % difference from 2019 b =
VAR base =
CALCULATE(
SUM('Employment by Industry'[Value]),
'Employment by Industry'[Year] IN { "2019" })
Var future =
CALCULATE(
SUM('Employment by Industry'[Value]),
'Employment by Industry'[Year] IN { "2050" })
Var subtraction =
base - future
Var result =
DIVIDE(subtraction, base)
RETURN
IF ( NOT ISBLANK(result),result)
Best Regards,
Wenbin Zhou
Jelbeanie
1 year agoRegular Visitor
Thank you so much - this worked! Great learnings. Thank you 🙂