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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jofoster
Employee
Employee

MoM quick measure and Date Hierarchy

I am trying to use the MoM % increase quick measure.  I am counting distinct values of an item by month, and want to also plot the % increase of the previous month. The measure requires using the PowerBI Date Hierarchy, but the quick measure will not let me add  it?  What am I doing wrong?

 

here is my data:

 

PowerBiMoM1.PNG

 

and here is what I see when trying to add the month date Hierarchy. If i just add the Month, which it lets me do, I get an error saying I need to add the date Hierarchy.

 

PowerBIMoM2.PNG

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @jofoster ,

You need to add the column of Month to the date field rather than just put month to it. The quick measure will calculate automatically based on  month.

3.PNG

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

NOt sure I understand. When I add the month, get the error that it requires the date hierarchy. But it will not let me add the data hierarchy?

 

Count of SubscriptionGUID MoM% =
IF(
    ISFILTERED('Deployments to Azure'[Month]),
    ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
    VAR __PREV_MONTH =
        CALCULATE(
            DISTINCTCOUNT('Deployments to Azure'[SubscriptionGUID]),
            DATEADD('Deployments to Azure'[Month].[Date], -1, MONTH)
        )
    RETURN
        DIVIDE(
            DISTINCTCOUNT('Deployments to Azure'[SubscriptionGUID])
                - __PREV_MONTH,
            __PREV_MONTH
        )
)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.