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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Creating average benchmark for all "Costumers" except the one filtered.

Hello everybody.

In a performance dashboard with numerous KPIs, we have data for 10 key customers. We have a frontpage where we choose (i.e. slice) the customer we want to see data for on all the remaining pages.

Our challenge is that we need to show benchmark (that is, the average value for all customers) for all KPIs in the dashboard. However, we are not interested in including the selected customer in the benchmark.
We have figured out how to get the average value by using the DAX formula “ALL” (so it ignores the filter on the frontpage), but we need help on how to exclude the selected customer (which is chosen in the frontpage).

 

This dax calculation is the closest we have come to an option, but it's not showing the right number as when we calculated it manually:

Benchmark = CALCULATE( [KPI] ,EXCEPT(ALL(CompanyTable),CompanyTable))


Our dataset is confidential, so we can not provide you with it.
Thank you. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

Benchmark = CALCULATE( [KPI] ,EXCEPT(ALL(CompanyTable[Company]),allselcted(CompanyTable[Company])))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try like

Benchmark = CALCULATE( [KPI] ,EXCEPT(ALL(CompanyTable[Company]),allselcted(CompanyTable[Company])))

Anonymous
Not applicable

Thanks for the quick answer! 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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