cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jofoster Regular Visitor
Regular Visitor

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
Community Support Team
Community Support Team

Re: MoM quick measure and Date Hierarchy

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.

jofoster Regular Visitor
Regular Visitor

Re: MoM quick measure and Date Hierarchy

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
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 328 members 2,990 guests
Please welcome our newest community members: