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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.