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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Macwin
Helper I
Helper I

Filter only Top Level Value Matrix

Im currenctly trying to add a filter, so I can filter only the revenue of the top level of my Matrix.

 

Ive tried to create a dax like this

 

Total Revenue = 
IF(ISINSCOPE(Customer[Name]) && ISFILTERED('analysis'[Posting_Date].[Date]),
	VAR Total = CALCULATE(Sum((analysis[Revenue])))
	RETURN
		  Total
) 

 

Macwin_0-1641544565171.png

So if I filter on this visual "Umsatz" > 30.000€ it should only display the first entry. But unfortunately it does not work. 

Another example:

"Umsatz" < 400€ : It shows still the first entry because there is a entry in the next level which has a value of less 400€

 

Thanks in advance.

 

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

Hi @Macwin ,

 

Please try the following formula:

 

Measure = SUMX ( ALLSELECTED ( analysis[Sub_category] ), [Total Revenue] )

 

Then use the measure to filter visual, like this:

 

vkkfmsft_1-1641884035280.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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-kkf-msft
Community Support
Community Support

Hi @Macwin ,

 

Please try the following formula:

 

Measure = SUMX ( ALLSELECTED ( analysis[Sub_category] ), [Total Revenue] )

 

Then use the measure to filter visual, like this:

 

vkkfmsft_1-1641884035280.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Macwin ,based on what I got

if this a parent because of order in rows Customer[Name]  then is always is in scope

so also use not ISINSCOPE for next levels

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors