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
CarlsBerg999
Helper V
Helper V

Filtering Matrix on the highest level of hierarchy

Hi,

 

I have a PowerBI Matrix that has two levels of hiearchy. I want to filter on the highest level. The Filter i want to build is "Show all customers with Sales over 100€". How do I do this? If i set a filter for 100€ on the filter's pane, in the example below, it would filter away Project 1 from Customer 1 and Project 4 from Customer 2. This will lead to an incorrect situation, because i just wanterd to remove Customer 2.  

 

CarlsBerg999_0-1619362574822.png

 

Thanks for the help! 

 

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

Hi, @CarlsBerg999 

Try to create a measure below:

Over 100 =
VAR _SumOfMeasure =
    CALCULATE ( SUM ( 'Table'[Measure] ), ALLEXCEPT ( 'Table', 'Table'[Customer] ) )
RETURN
    IF ( _SumOfMeasure >= 100, "True", "False" )

Assign it to the visual filter and show items when the value is “True”

Sample:

v-angzheng-msft_0-1619518729799.jpeg

v-angzheng-msft_1-1619518729800.jpeg

Result:

v-angzheng-msft_2-1619518729802.jpeg

Please refer to the attachment below for details

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
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

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @CarlsBerg999 

Try to create a measure below:

Over 100 =
VAR _SumOfMeasure =
    CALCULATE ( SUM ( 'Table'[Measure] ), ALLEXCEPT ( 'Table', 'Table'[Customer] ) )
RETURN
    IF ( _SumOfMeasure >= 100, "True", "False" )

Assign it to the visual filter and show items when the value is “True”

Sample:

v-angzheng-msft_0-1619518729799.jpeg

v-angzheng-msft_1-1619518729800.jpeg

Result:

v-angzheng-msft_2-1619518729802.jpeg

Please refer to the attachment below for details

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Fowmy
Super User
Super User

@CarlsBerg999 

Create a measure that calculates the total ignoring the Product and assign to the visual filter in the filter pane and set it equal to 1:

Over 100 Customers = 

INT(CALCULATE(SUM(Table[Measure]),REMOVEFILTERS(Table[Project])) > 100 ) 

Fowmy_0-1619388549235.png

 

 

 





Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.