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.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |