Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, I have 2 Tables
Fact_Table
AgeGroup-- Facility -- Other fields
Dim_Facility Table
Facility -- -- Organization
1 Organization has Multiple Facilities - Facility can belong to only 1 organization
I have 2 slicers on the Report
Organization and Facilities.
I created 2 Measures
Solved! Go to Solution.
Hi @sabeensp ,
In your scenario, we need to create two other tables which only contains Organization and Facility for the slicer, these two tables has no relationship with the original two tables, then we can create the following measures:
Measure = CALCULATE ( COUNT ( Fact_Table[AgeGroup] ), FILTER ( ALL ( Dim_Facility ), Dim_Facility[Facility] IN ALLSELECTED ( Facility[Facility] ) ) ) Measure 2 = CALCULATE ( COUNT ( Fact_Table[AgeGroup] ), FILTER ( ALL ( Dim_Facility ), Dim_Facility[Organization] IN ALLSELECTED ( Organization[Organization] ) ) )
The result will like below:
Best Regards,
Teige
Hi @sabeensp ,
In your scenario, we need to create two other tables which only contains Organization and Facility for the slicer, these two tables has no relationship with the original two tables, then we can create the following measures:
Measure = CALCULATE ( COUNT ( Fact_Table[AgeGroup] ), FILTER ( ALL ( Dim_Facility ), Dim_Facility[Facility] IN ALLSELECTED ( Facility[Facility] ) ) ) Measure 2 = CALCULATE ( COUNT ( Fact_Table[AgeGroup] ), FILTER ( ALL ( Dim_Facility ), Dim_Facility[Organization] IN ALLSELECTED ( Organization[Organization] ) ) )
The result will like below:
Best Regards,
Teige
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
28 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |