Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

MoM change giving wrong values

I'm trying to create a table that gives me the MoM percentage change after each month. I'm close but getting strange results on in my table.

 

I've created a measure for the current months value, previous month's value, the difference. See results below. (note - these values are already percentages before going into this table)

 

Bullet_Train95_1-1663208785804.png

For example, shouldn't 2022 May be showing -19.21% under DIFF, not -0.33%?

 

Current MTD Efficiency = CALCULATE( [Waste Diverted Percentage - spoil] , DATESMTD( 'Contractor Monthly Report Data'[Confirmed Date].[Date]))
 
Last MTD Efficiency = CALCULATE( [Waste Diverted Percentage - spoil] , DATESMTD( DATEADD('Contractor Monthly Report Data'[Confirmed Date].[Date], -1, MONTH)))
 
diff = [Current MTD Efficiency] - [Last MTD Efficiency]

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Waste Diverted Percentage - spoil =
VAR Net_WasteDisposal = [Total_WasteDisposal] - [Managed_Fill_Total]

VAR Waste_Efficiency = DIVIDE( [Total Waste Diverted - Spoil], Net_WasteDisposal + [Total_WasteDiverted]   )
return IF( ISBLANK( Waste_Efficiency) , 0, Waste_Efficiency )

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

You should create a Calendar Table with calculated column formulas fror Year, Month name and Month number.  Sort the Month name by the Month number.  Create a relationship from the __- date to the Date column of the Calendar Table.  To your visuals, drag Year and Month name from the Calendar Table.  Write these measures

Last MTD Efficiency = CALCULATE( [Waste Diverted Percentage - spoil],previousmonth(Calendar[Date]))
diff = [Waste diverted percentage - spoil] - [Last MTD Efficiency]

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You should create a Calendar Table with calculated column formulas fror Year, Month name and Month number.  Sort the Month name by the Month number.  Create a relationship from the __- date to the Date column of the Calendar Table.  To your visuals, drag Year and Month name from the Calendar Table.  Write these measures

Last MTD Efficiency = CALCULATE( [Waste Diverted Percentage - spoil],previousmonth(Calendar[Date]))
diff = [Waste diverted percentage - spoil] - [Last MTD Efficiency]

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi 
@Anonymous  are you able to share the measure for "Waste Diverted Percentage - Spoil"

BR

Anonymous
Not applicable

Waste Diverted Percentage - spoil =
VAR Net_WasteDisposal = [Total_WasteDisposal] - [Managed_Fill_Total]

VAR Waste_Efficiency = DIVIDE( [Total Waste Diverted - Spoil], Net_WasteDisposal + [Total_WasteDiverted]   )
return IF( ISBLANK( Waste_Efficiency) , 0, Waste_Efficiency )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.