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
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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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