Forum Discussion
Slicer that Covers Multiple Columns
- 1 year ago
CMoppet , You need to create a measure that will count the rows where the selected fault appears in any of the four columns.
FaultCount =
CALCULATE(
COUNTROWS('WO Raw Data'),
FILTER(
'WO Raw Data',
'WO Raw Data'[Fault Analysis Task2 Level2.2] IN VALUES(AllFaults[Fault]) ||
'WO Raw Data'[First Fault Level 2.2] IN VALUES(AllFaults[Fault]) ||
'WO Raw Data'[Fault Analysis Task3 Level2.2] IN VALUES(AllFaults[Fault]) ||
'WO Raw Data'[Fault Analysis Task4 Level2.2] IN VALUES(AllFaults[Fault])
)
)Add your bar chart visualization.
Use the FaultCount measure as the value for the bar chart.
Add the AllFaults[Fault] column to the slicer.
CMoppet , You need to create a measure that will count the rows where the selected fault appears in any of the four columns.
FaultCount =
CALCULATE(
COUNTROWS('WO Raw Data'),
FILTER(
'WO Raw Data',
'WO Raw Data'[Fault Analysis Task2 Level2.2] IN VALUES(AllFaults[Fault]) ||
'WO Raw Data'[First Fault Level 2.2] IN VALUES(AllFaults[Fault]) ||
'WO Raw Data'[Fault Analysis Task3 Level2.2] IN VALUES(AllFaults[Fault]) ||
'WO Raw Data'[Fault Analysis Task4 Level2.2] IN VALUES(AllFaults[Fault])
)
)
Add your bar chart visualization.
Use the FaultCount measure as the value for the bar chart.
Add the AllFaults[Fault] column to the slicer.
- CMoppet1 year agoHelper IV
Thank you! This worked perfectly 🙂