Forum Discussion
dommyw277
1 year agoHelper V
Month on Month Difference
Hi, I want to have a chart that shows me the difference month on month. I have a running total per month in the Billing field but even though i can see the monthly difference i would like a field t...
- Anonymous1 year ago
Hi dommyw277
I have attached the PBIX file at the end of the reply, which you can download and open to check the difference with your own file.Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Month01
1 year agoNew Member
Try this code
Measure =
var _current_month = MONTH(SELECTEDVALUE('Table'[Date]))
VAR _current_billing = CALCULATE(SELECTEDVALUE('Table'[Billing]),FILTER(ALL('Table'),MONTH('Table'[Date]) = _current_month))
VAR _previous_billing = CALCULATE(SELECTEDVALUE('Table'[Billing]),FILTER(ALL('Table'),MONTH('Table'[Date]) = _current_month - 1))
RETURN
_current_billing - _previous_billing