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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
KasperKP
New Member

Comparing different aggregations levels

So, this problem involves 3 tables. A master data table let's call it customer table. A category table, that related a customer number to a category. Finally i have a fact table holding transactions. 

I wan't to create a visualization that shows summed amount for each customer and i also want to see how much that amount corresponds in relation to the entire category. 

Below i have tried to create a demo of what i would want end users to see. 

KasperKP_0-1718800584755.png


The problem is i don't know how to make the measure to right "Total Category Amount" ignore every filter on this table. Remember that the link between the table that holds the category is via the customer number. The customer master data is then linked to the fact table with the measures. It seems that power bi is troubled when i want to remove the customer number filter from the measure.

 

Here is also a very simplified version of the data model

KasperKP_0-1718801082463.png

 



Please help and tell me if you need more clarification.

1 ACCEPTED SOLUTION
AilleryO
Memorable Member
Memorable Member

Hi,

If I get well your issue, you are looking for the ALL function.

Using ALL( [CustomerKey] ) in your CALCULATE will remove the filter based on Customer key.

Depending on your visual but according to your screenshot it might be :

ALL( [CustomerKey], [CustomerName] )

Hope it helps, let us know

View solution in original post

1 REPLY 1
AilleryO
Memorable Member
Memorable Member

Hi,

If I get well your issue, you are looking for the ALL function.

Using ALL( [CustomerKey] ) in your CALCULATE will remove the filter based on Customer key.

Depending on your visual but according to your screenshot it might be :

ALL( [CustomerKey], [CustomerName] )

Hope it helps, let us know

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors