Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Power BI Community,
I am running into an issue using month over month change (not % change but actual difference). My data consists of month balances until the current month where it is the previous days balance. For Example, I have December 2017 to August 2019 (mid month), when I use the canned calculation for MoM, it shows December of 2017 as a full increase instead of dropping this month, and adds September 2019 showing a full decrease because there is no data. All months inbetween function correctly except the bookend months. Below is the canned formula, thanks for your help!
Solved! Go to Solution.
Hi @financeBI1,
You can use the following Measure to count actual difference Month Over Month, but do not remember to close the “show items with no data”.
Measure = VAR pre = CALCULATE ( [weighted measure], DATEADD ( 'query2'[Month End].[Date], -1, MONTH ) ) VAR thisMonth = CALCULATE ( [Weighted Measure] ) VAR d = SELECTEDVALUE ( query2[Month End] ) VAR ma = MAXX ( ALL ( query2 ), [Month End] ) VAR mi = MINX ( ALL ( query2 ), query2[Month End] ) RETURN IF ( d > mi && d < ma, thisMonth - pre, BLANK () )
BTW, pbix as attached.
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
Hi @financeBI1,
You can use the following Measure to count actual difference Month Over Month, but do not remember to close the “show items with no data”.
Measure = VAR pre = CALCULATE ( [weighted measure], DATEADD ( 'query2'[Month End].[Date], -1, MONTH ) ) VAR thisMonth = CALCULATE ( [Weighted Measure] ) VAR d = SELECTEDVALUE ( query2[Month End] ) VAR ma = MAXX ( ALL ( query2 ), [Month End] ) VAR mi = MINX ( ALL ( query2 ), query2[Month End] ) RETURN IF ( d > mi && d < ma, thisMonth - pre, BLANK () )
BTW, pbix as attached.
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |