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
Anonymous
Not applicable

Denominator that removes certain context filters but keeps all visual, page and report filters

Hello,
 
I would like to create a denominator for a drill-down table that drills down on a product's Brand, SubBrand, and then Item. I would need a denominator that can ignore the context filter when drilling down to the Item, but retaining the context filter from the Brand. 
 
Then, I would also like the visual, page and report filters to still work on the Brand, the SubBrand and the Item for both the numerator and the denominator. This functionality is currently being overwritten in my DAX using the ALL() function. Is there any alternative I could try that would allow me to continue to remove context filters from the Item in my drilldown but still keep the Item filters done by the user in the visual, page and report filters?
 
Current DAX example:
CALCULATE(
[Sales], 
filter(
ALL(
'Product'[Brand],
'Product'[Sub Brand],
'Product'[Product Name],
)))
1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

I think the following approach should do what you want. It will give the same value for every row, but still reflects any filters the user applies

CALCULATE(
[Sales], 
ALLSELECTED('Product'[Brand]),
ALLSELECTED('Product'[Sub Brand]),
ALLSELECTED('Product'[Product Name])
)

View solution in original post

1 REPLY 1
d_gosbell
Super User
Super User

I think the following approach should do what you want. It will give the same value for every row, but still reflects any filters the user applies

CALCULATE(
[Sales], 
ALLSELECTED('Product'[Brand]),
ALLSELECTED('Product'[Sub Brand]),
ALLSELECTED('Product'[Product Name])
)

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
Top Kudoed Authors