Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Good morning,
I have a problem, I cannot perform a month-over-month comparison using the last month that presents data. Like, June over February, etc.
I need to perform MoM% separately for each item.
Ps: My months are in Portuguese. lol
And the fields are:
Divide your problem into smaller steps.
- for each row find the item id and the month
- in the entire table find the row for the same item that has the maximum month value smaller than the current month
- get the monetary value for that row
- do your MoM calculation.
This is best done with variables, and frequent debug checks to make sure the intermediate steps return the right result.