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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
AmeenVanakar
Advocate II
Advocate II

Quick Measure - MOM Change Error

Hi,

I am trying to add a MOM change % using a quick measure & plot it in a graph, however when I filter using dates the chart throws an error with a message as shown in screenshot below.

Is there a formula where I can show month over month change in % & also easily change periods using date filter or any other filter such as brand, product, region, city, etc.

NB: I also dont want to change anything in the fiscal calender setup.

 

AmeenVanakar_0-1735217349014.png

AmeenVanakar_1-1735217868386.png

 

Here is the link to .pbix file.

Test.pbix

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @AmeenVanakar 
Mark your date table as "date table"

Ritaf1983_0-1735219532231.pngRitaf1983_1-1735219556658.png

and modify the formula :

[ MoM Growth %] =
    VAR __PREV_MONTH =
        CALCULATE(
            SUM('Fact_Primary Raw Data'[Value]),
            DATEADD('_FY Calendar'[Date], -1, MONTH)
        )
    RETURN
        DIVIDE(SUM('Fact_Primary Raw Data'[Value]) - __PREV_MONTH, __PREV_MONTH)
Result :
Ritaf1983_2-1735219628200.png

or if you need it with the hierarchies:

Ritaf1983_3-1735219678731.png

P.S

My recommendation, from the perspective of effective data visualization, is not to use two such metrics on the same graph. Users will struggle to understand which line corresponds to which metric, and once there are two lines on the same graph, our brain unconsciously starts comparing them. This is misleading because these are two entirely different metrics with completely different scales and proportions. I strongly recommend separating them into two distinct graphs, one below the other, each with its own Y-axis.
Ritaf1983_4-1735219965252.png

The pbix is attached with both options

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @AmeenVanakar 
Mark your date table as "date table"

Ritaf1983_0-1735219532231.pngRitaf1983_1-1735219556658.png

and modify the formula :

[ MoM Growth %] =
    VAR __PREV_MONTH =
        CALCULATE(
            SUM('Fact_Primary Raw Data'[Value]),
            DATEADD('_FY Calendar'[Date], -1, MONTH)
        )
    RETURN
        DIVIDE(SUM('Fact_Primary Raw Data'[Value]) - __PREV_MONTH, __PREV_MONTH)
Result :
Ritaf1983_2-1735219628200.png

or if you need it with the hierarchies:

Ritaf1983_3-1735219678731.png

P.S

My recommendation, from the perspective of effective data visualization, is not to use two such metrics on the same graph. Users will struggle to understand which line corresponds to which metric, and once there are two lines on the same graph, our brain unconsciously starts comparing them. This is misleading because these are two entirely different metrics with completely different scales and proportions. I strongly recommend separating them into two distinct graphs, one below the other, each with its own Y-axis.
Ritaf1983_4-1735219965252.png

The pbix is attached with both options

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

@Ritaf1983 Thanks for the help, this worked.

I agree to your point, I will split them in 2 different graphs.

😍

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.