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

Calculation doesn't work with filters (slicers)

Hi

I have  a table (BronData) with a Revenue column and a Productgroup column. In my report there's an overview of revenues per week per product and a seperate one for the top 10 customers. I'm using 2 slicers: Productgroup and Customers.

 

For the report I want to calculate the percentage of revenue per customer for the top 10 visual. 

I use  a measure for that: FactorTotal = sum(BronData[Revenue])/CALCULATE(SUM(BronData[Revenue]),ALL(BronData)). It works just for the visual totals. But when I want to filter on ProductGroup, the FactorTotal measure is still based on the total revenue, instead of the total revenue for that product group.

 

What am I doing wrong here?

 

For your information: I studied Power BI one day many years ago and  now I am refreshing my memory, just by trying. So if my solution sounds stupid: I'm just trying..

 

Gerard van Daalen

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

The ALL is removing all filters from the table, including the filter applied to product group. Try instead ALLEXCEPT(BronData, BronData[product group)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks John, it works!

johnt75
Super User
Super User

The ALL is removing all filters from the table, including the filter applied to product group. Try instead ALLEXCEPT(BronData, BronData[product group)

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.