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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
APM
Helper I
Helper I

Values change (become incorrect) when pulled into a Matrix visual (VS correct in Card visual)

Hello,

 

I have a major issue: My measures pull correct data. They also pull correct data when filtered, in my case by 'Category'.

 

However, when I pull them into a matrix table, sometimes, the values change.

 

 

No changes, nothing else pulled into the matrix, no added filters, nothing. But the value changes.

 

I've become pretty adept at PowerBI recently, but this has stumped me. 

 

If you're curious, the measure is as follows: 

L7D $ LY =
CALCULATE(
    SUM('TEST REPORT'[Fake_Sales_Data]),
    FILTER(
        'TEST REPORT',
        'TEST REPORT'[Date] >= TODAY() - 372 &&
        'TEST REPORT'[Date] <= TODAY() - 366
    )
)

 

Can someone please help? This has me devastated as a big beautiful report I built is rendered useless by this detail.

 

Thank you in advance!

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @APM ,

 

If you want to ignore the other filters and keep the filter grouping of the directory, you can modify it to the following:

L7D $ LY =
CALCULATE (
    SUM ( 'TEST REPORT'[Fake_Sales_Data] ),
    FILTER (
        ALLSELECTED ( 'TEST REPORT' ),
        [Category] = MAX ( 'TEST REPORT'[Category] )
            && 'TEST REPORT'[Date]
                >= TODAY () - 372
            && 'TEST REPORT'[Date]
                <= TODAY () - 366
    )
)

 

   

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

APM
Helper I
Helper I

As an update, I've tried SUMX variations of the formula, as well as ALLSELECTED or CALCULATETABLE instead of filter. Those variations didn't work :(.

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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