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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors