Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
DJBAJG
Helper III
Helper III

Incorporate multiple columns into one slicer

Probably an easy one but I was't able to fidn the right terminology to search for a good result. I've got 4 calculated columns that return True/False values based on my criteria. What I need is a single slicer that will take into account all criteria columns in the dropdown and filter any visuals based on the Target Field. 

 

If I drop down the slicer and select Criteria A or C the data in Filter 1  and 3 will be applied to all visuals.

If I drop down the slicer and select Criteria B the data in Filter 2 and 3 will be applied to all visuals.

If I drop down the slicer and select Criteria C the data in Filter 1, 2 and 3 will be applied to all visuals.

 

Target Field | Criteria A | Criteria B |  Criteria C |

Filter 1           True           Fales           True

Filter 2           False          True            True

Filter 3           True           True            True

 

 

I tried using a SWITCH staement but becasue the combinations are not mutually exclusive it didn't work. Only the first criteria met was retuned which makes sense. I spent 3 hours on thisand couldn't do it. Please help!

 

Thanks. 

5 REPLIES 5
DJBAJG
Helper III
Helper III

Ok, so I went ahead and did this. I copied the table and did the unpivot to the new one and used it in the slicer. The results were not as expected. I had to put two columns from the new table into the slicer to get it to function which made the slicer act like a hierarchy which functions but isn't the desired result. I was hoping to have a sungle selection like a typical slicer.

 

I've include a copy of the original table and the unpivoted table for reference. - I tried but there's no way to upload an excel file??

 

I've also inclued a screenshot of the slicer output.

 

slicer.png

I do not understand your statement but yes, you may have to rewrite some existing measures. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

4 fields cannot be displayed in a single slicer.  You will have to rewrite your DAX calculated column formulas in the Query Editor (to get the TRUE/FALSE) and then Unpivot your data so that all TRUE/FALSE appear in a single column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

The columns were already in TRUE/FALSE form. See the screenshots below. What am I missing?

 

Original Table:

DJBAJG_0-1620559580506.png

 

 

New unpivoted table:

 

DJBAJG_1-1620559601135.png

 

Hi,

There should be 2 slicers - one for Attribute and another for Value.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.