Forum Discussion
Multiple Filter Application for Totals
- 9 years ago
Hi, One way to solve this:
1. Create a New Table with the Cities. (Modeling-New Table)
Cities = DISTINCT(UNION(VALUES(Table1[Inbound]),VALUES(Table1[Outbound])))
2. Related Both Tables: (Inbound & Outbound with Cities)
Both with Cities
3. Create a measure to Count.
TotalCompliants = CALCULATE ( COUNT ( Table1[Inbound] ), USERELATIONSHIP ( Cities[Cities], Table1[Inbound] ) ) + CALCULATE ( COUNT ( Table1[Outbound] ), USERELATIONSHIP ( Cities[Cities], Table1[Outbound] ) )Insert a Slicer with the cities and also a slicer to Compliants. (or in a Page Filter)
Ready.
Is there anyway to have that connected with a slicer? That way tthe viewer can select which location and the report will display the number of yes complaint results.
Hi, One way to solve this:
1. Create a New Table with the Cities. (Modeling-New Table)
Cities = DISTINCT(UNION(VALUES(Table1[Inbound]),VALUES(Table1[Outbound])))
2. Related Both Tables: (Inbound & Outbound with Cities)
Both with Cities
3. Create a measure to Count.
TotalCompliants =
CALCULATE (
COUNT ( Table1[Inbound] ),
USERELATIONSHIP ( Cities[Cities], Table1[Inbound] )
)
+ CALCULATE (
COUNT ( Table1[Outbound] ),
USERELATIONSHIP ( Cities[Cities], Table1[Outbound] )
)
Insert a Slicer with the cities and also a slicer to Compliants. (or in a Page Filter)
Ready.