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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

MoM% Calculation

Hi All,

 

I'm trying to create a MoM% calculation but for some reasons its not giving correct output.

 

Can anyone help me here?

 

Measure Used:

 

MQR MoM% =
    VAR __PREV_MONTH =
        CALCULATE(
            [MQR],
            DATEADD('F_MARKETING_RESPONSE'[Month-Year].[Date], -1, MONTH)
        )
    RETURN
        DIVIDE([MQR] - __PREV_MONTH, __PREV_MONTH)

 

Himanshu_1306_0-1673860647215.png

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

hmm Ok, but that doesnt solve my problem to represnt data in a visual like below

However I found a work around by creating a different calendar table and making few measures.

Himanshu_1306_0-1673873469491.png

 

View solution in original post

@Anonymous  there seems to be an issue with the dates in your table. so keep it simple. i have created a seperate date table which will be used to filter the data from the main table.

negi007_0-1673874825654.png

 

i have also created calc column in the dimdate table like below

negi007_1-1673874869607.png

 
 
 
 

you can add more calc column as per your need in the dimdate table. Below is the result you were looking for

 

negi007_2-1673874923246.png

let me know if it works for you. thanks

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

7 REPLIES 7
negi007
Community Champion
Community Champion

@Anonymous 

i can see your formuala is slighly incorrect. You can create a measure like below

 

MoM Vol Change =
var cm_vol=CALCULATE([sales)],DATEADD('Calendar'[Date],0,MONTH))
var pm_vol = CALCULATE([sales],DATEADD('Calendar'[Date],-1,MONTH))
return
DIVIDE(cm_vol,pm_vol,0)




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Anonymous
Not applicable

Its not giving me the correct output

If I get the previous Month MQR column correct then MoM% can be easily calculated but this column is not giving me correct values and I have almost tried every function. Not sure what the issue is.

 

I'm attaching link to the sample PBIX file.

 

Let me know in case you find any issue in the model.

 

https://drive.google.com/file/d/1jUark0E2v0z56RQjIeOZBERkrL7loHuC/view?usp=share_link

Himanshu_1306_0-1673866978959.png

 

Hope this is the result you are looking for

Padycosmos_0-1673869755810.png

 

Anonymous
Not applicable

Yes this is exactly what I'm looking for.

 

Kindly let me know how you calculated the previous month MQR?

Padycosmos_0-1673871151808.png

 

I have used the measure that you already created. However, in the visualization, instead of Month_year column, I have used the Year & Month from the date hierarchy of the FULL_DATE column

Anonymous
Not applicable

hmm Ok, but that doesnt solve my problem to represnt data in a visual like below

However I found a work around by creating a different calendar table and making few measures.

Himanshu_1306_0-1673873469491.png

 

@Anonymous  there seems to be an issue with the dates in your table. so keep it simple. i have created a seperate date table which will be used to filter the data from the main table.

negi007_0-1673874825654.png

 

i have also created calc column in the dimdate table like below

negi007_1-1673874869607.png

 
 
 
 

you can add more calc column as per your need in the dimdate table. Below is the result you were looking for

 

negi007_2-1673874923246.png

let me know if it works for you. thanks

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.