Forum Discussion
Anonymous
8 years agoNot applicable
Once Slicer for multiple columns
Hi, I am trying to create a single slicer for the below table, i would like to see all of the table when i first load the report, but when i come to slicer "Part One/Part Two/Part Three/Part Four/Par...
- 8 years ago
Hi Anonymous,
There is a solution below. Please check out the demo in the attachment.
1. Create a new table as slicer table.
SlicerTable = DISTINCT ( UNION ( VALUES ( Table1[Part One] ), VALUES ( Table1[Part Two] ), VALUES ( Table1[Part Three] ), VALUES ( Table1[Part Four] ), VALUES ( Table1[Part Five] ) ) )2. Rename the column name of the new table. (optional)
3. Do not establish any relationships!
4. Create a measure.
Measure = IF ( MIN ( 'Table1'[Part One] ) IN VALUES ( SlicerTable[values] ) || MIN ( 'Table1'[Part Two] ) IN VALUES ( SlicerTable[values] ) || MIN ( 'Table1'[Part Three] ) IN VALUES ( SlicerTable[values] ) || MIN ( 'Table1'[Part Four] ) IN VALUES ( SlicerTable[values] ) || MIN ( 'Table1'[Part Five] ) IN VALUES ( SlicerTable[values] ), 1, BLANK () )Best Regards,
Dale
v-jiascu-msft
8 years agoMicrosoft Employee
Hi Anonymous,
There is a solution below. Please check out the demo in the attachment.
1. Create a new table as slicer table.
SlicerTable =
DISTINCT (
UNION (
VALUES ( Table1[Part One] ),
VALUES ( Table1[Part Two] ),
VALUES ( Table1[Part Three] ),
VALUES ( Table1[Part Four] ),
VALUES ( Table1[Part Five] )
)
)
2. Rename the column name of the new table. (optional)
3. Do not establish any relationships!
4. Create a measure.
Measure =
IF (
MIN ( 'Table1'[Part One] ) IN VALUES ( SlicerTable[values] )
|| MIN ( 'Table1'[Part Two] ) IN VALUES ( SlicerTable[values] )
|| MIN ( 'Table1'[Part Three] ) IN VALUES ( SlicerTable[values] )
|| MIN ( 'Table1'[Part Four] ) IN VALUES ( SlicerTable[values] )
|| MIN ( 'Table1'[Part Five] ) IN VALUES ( SlicerTable[values] ),
1,
BLANK ()
)
Best Regards,
Dale
selpaqm
6 years agoHelper V
Hi v-jiascu-msft , your solution is worked for extended version 6 different column. unless, it takes ages when i click the slicer. is there any faster way? Regards,
