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
ralba80
New Member

Company VS Cohort Analysis with two Slicers

Hi All, 

 

I am new to the forum and have a basic DAX knowledge. I am trying to build a Company vs Peer Group feature in one dashboard but have not been able to do it. Maybe is easier than I think and I might be approaching the problem in a difficult way. Here is my model:

ralba80_1-1618940487865.png

ralba80_3-1618940579837.png

 

The idea is that Company Slicer (single selection) affects only column Averag Production and Cohort Slicer (Multiple Selection) affects Column Production Cohort AVG 

 

I will be gratefull if you can provide guidance on how to approach this feature @amitchandak @Jihwan_Kim @selimovd

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ralba80 , In the Production Cohort AVG

use

calculate(sum(TFact[Prodcution]), filter(all(TdimCompany), TdimCompany[company] in allselected(TdimCohortCompany[company])))

 

something very similar I dicssued for date

https://www.youtube.com/watch?v=44fGGmg9fHI

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@ralba80 , In the Production Cohort AVG

use

calculate(sum(TFact[Prodcution]), filter(all(TdimCompany), TdimCompany[company] in allselected(TdimCohortCompany[company])))

 

something very similar I dicssued for date

https://www.youtube.com/watch?v=44fGGmg9fHI

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.