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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Youngmi
Frequent Visitor

Time intelligence quick measures fails when use a Relative Date filter

Hi, Time intelligence quick measures fails when use a Relative Date filter on this page or all pages.

the date column is the same column used in the quick measure. it works ok without the relative date filter but fails with the date filter.  Please advise. Thank you.

 

EOM MoM% =
IF(
    ISFILTERED('uvDimDate'[tdate]),
    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(
            SUM('vWIFEricStatusDenom'[EOM]),
            DATEADD('uvDimDate'[tdate].[Date], -1, MONTH)
        )
    RETURN
        DIVIDE(SUM('vWIFEricStatusDenom'[EOM]) - __PREV_MONTH, __PREV_MONTH)
)
 
Youngmi_0-1648225325536.png

 


1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @Youngmi ,

 

You have a DAX named ERROR() in your expression. And if you do some change in the filter on this page by this column you specified, the result of  ISFILTERED() will be a TRUE, so it will run the ERROR() function.

Best Regards

Community Support Team _ chenwu zhu

 

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

 

View solution in original post

5 REPLIES 5
v-chenwuz-msft
Community Support
Community Support

Hi @Youngmi ,

 

You have a DAX named ERROR() in your expression. And if you do some change in the filter on this page by this column you specified, the result of  ISFILTERED() will be a TRUE, so it will run the ERROR() function.

Best Regards

Community Support Team _ chenwu zhu

 

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

 

This really works for people?   I can remove the error statement, but it doesn't change the fact that a problem exists.  I tried to include the measure on a line + clustered column visual, but it doesn't appear.  The error statement indicates that a problem exists, but the statement itself isn't the problem.  I'm surprised that merely removing the error statement fixes this for some people.

I removed the ERROR() portion and it shows MoM with the date page filter. Thank you. 

Youngmi
Frequent Visitor

 

PB MoM ok.jpg

PB MoM error.jpg

the difference is only the date filter. any idea?

lbendlin
Super User
Super User

Please define "fails".

 

Please provide sanitized sample data that fully covers your issue.

Please show the expected outcome based on the sample data you provided.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors