Forum Discussion
Once Slicer for multiple columns
- 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
Even if it is not a slicer, can this be done in a table as show with filters?
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
- Anonymous7 years agoNot applicable
This solution is quite elegant and is exactly what I am looking for.
Now a twist. What if the data is coded and converted via links and relationships?
- Anonymous5 years agoNot applicable
Is this only available for tables? What if I wanted to use this for a stacked column chart?
- selpaqm6 years agoHelper VHi 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,
- Anonymous6 years agoNot applicable
Really helpful solution, thanks!
- Anonymous5 years agoNot applicable
Hello, thank you so much for your solution.
I have done it step by step and I have downloaded your powerbi file and did the same. However, its not filtering based on the "values" slicer. Any idea why or how I can solve it?
Your help is very much appreicated.
Thanks,
- Anonymous5 years agoNot applicable
In case if some one faces the same issue. Add the Measure to the table viz.
- sanjanarama4 years agoResolver I
I tried same solution for matrix and it is not working, can anyone help out
- akhilduvvuru3 years agoHelper IV
v-jiascu-msft - This slicer is impacting the other slicers. If I apply any other filter from filter pane, the table is not filtering. Can you help me with the same please? Thanks!
- pbijess8573 years agoFrequent Visitor
This is so helpful. I hope you have a great day - you deserve it.
- Anonymous2 years agoNot applicable
HI This is working for 1 slicer what I want to design 3 slicers to look in 6 columns.
My data looks like Name A, Name B, City A , City B , State A , State B . I tried the above solution and Name in ( Name A , Name B ) slicer is working, But if I configure the same along with (City A, City B ), (State A, State B) its not working for me. Please advise.