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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Giorgi1989
Advocate II
Advocate II

Calculate Min, Max, AVG whilst ignoring slicer selection

Dear All,

 

What I am trying to achieve:

 

Calculate Min, Max, and AVG gross profit % for 'Product Category', whilst ignoring the slicer selection of 'Product'. 

 

So, when I select a 'Product' (e.g. Galaxy S20) in the slicer selection, I don't want my Min/Max/AVG gross margin % measures to show values only for 'Galaxy S20' (i.e. 'Product'), but instead I want to see Min/Max/AVG for the entire 'Product Category' (e.g. 'Smartphones').  

 

In other words, at the end of the day, I want to compare 'Product' gross margin % with the entire 'Product Category' gross margin %. 

 

Any tips appreciated! I have tried a few measures so far to no avail, but I will continue trying new things out! 

 

Thank you all!

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Giorgi1989 

try something like

CALCULATE ( [measure], REMOVEFILTERS ( 'Product' ), VALUES ( 'Product'[Category] ) )

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Giorgi1989 

try something like

CALCULATE ( [measure], REMOVEFILTERS ( 'Product' ), VALUES ( 'Product'[Category] ) )

Thank you so much! This works like a charm! Thank you!!!

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.