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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Loubot3000
Resolver II
Resolver II

Create a slicer using multiple columns of a table - NOT NESTED

I want to create slicers that list categories representing multiple different columns in my dataset in a non-nested way.

 

For example, I have in my central demographics table a bunch of columns representing subscription status to various different services, and the rows are each unique respondent (with a UUID column giving them unique keys). The values of the subscription columns are Yes/No. So for example a snippet of this demographics table would look something like:

 

UUIDNetflix subscriberAmazon Prime SubscriberHulu Subscriber
frbshkgasirfgsYesNoYes
feisahgjkarfaNoYesYes
efhvnakinhakNoNoYes

 

(Though obviously realistically there would be way more columns for other data that visuals are built off of, and thousands of rows, and other unpivoted tables that are related to these tables via multi way many-to-one relationships via UUID.)

 

What I want is a slicer with a drop down menu that would be like:

 

Subscription \/

Netflix []

Amazon Prime []

Hulu []

 

Where that first row is the slicer name, \/ is the drop down button, and [] are the tick boxes

 

By ticking, you're filtering that page to just people answering "Yes" (I image you'd just apply a bunch of "Yes" filters to the slicer in the filter pane).

 

From what I've tried, adding multiple fields to a slicer makes them nested.

Having those columns as a seperate unpivoted table, with a both way many-to-one relationship via UUID to the central table, and adding the unpivoted column filtered by "Yes" response seems to not work either.

 

Any ideas?

19 REPLIES 19
nikhilbordekar
Regular Visitor

Even I am facing similar problem, i want TRx(all rows), NRx and NBRx in one filter nut all three may or may not be overallping. I tried to download the solution .pbix file from wetransfer link but unfortunately  transfer has expired and is not available any more. It will be great if anyone can help here. @lucadelicio 

nikhilbordekar_0-1711528803091.png

 

Hi @nikhilbordekar as attachment excel data and pbix.
You have to create a single column to filter your rows for any combination.
Then put the Filter Column in the slicer.

Filter Column =
IF(ISBLANK(Tabella1[NRx]) && ISBLANK(Tabella1[NBRx]), "TRx"
    ,IF(ISBLANK(Tabella1[NRx]), "TRx-NBRx",
        IF(ISBLANK(Tabella1[NBRx]), "TRx-NRx", "TRx-NBRx-NRx")
    )
)


Luca D'Elicio

LinkedIn Profile

I just want 3 filters TRx, NRx and NBRx, if I select TRx means all rows should come irrespective of what is there in the rest of the columns. If i select NRx all rows should come where NRx is there irrespective of what are there in rest of the columns. and same for NBRx. can you suggest me a formula for this as I am new to this Power BI tool. One more doubt have you created new column calculation for this or new measure? or anything else. This information will be really helpful.

lucadelicio
Super User
Super User

PLEASE MARK IT AS A SOLUTION TO HELP OTHER PEOPLE



Luca D'Elicio

LinkedIn Profile

I tried to find the option "Mark as a solution" but didn't find 🙃 otherwise would have done that. 

😪



Luca D'Elicio

LinkedIn Profile

Hey sorry when I have time to check your solution I shall mark it if it works for what I need.

jitendracs2004
Frequent Visitor

Thanks for your help. I have prepared the data in excel. What i have is 5 Dimensions, 

EnterpriseserviceFE1FE2FE3

and 3 measures

MoUNoUCNoSC

I want to have a slicers with Enterprise, service and Features (FE1, FE2 and FE3 as values) respectively. If some one select FE1 or FE2 or FE3, only Yes of respective columns get filtered out. User can have multi select option enabled.

 

jitendracs2004_0-1688358913963.png

 

Not able to attach the link, so sending the data here itself..

 

DateEnterpriseserviceFE1FE2FE3MoUNoUCNoSC
20230601Eri000000_1IPTFYesNoNo10150
20230602Eri000000_2DTFNoYesNo12160
20230603Eri000000_3DTFYesNoYes20010
20230604Eri000000_4DTFNoNoNo21020
20230605Eri000000_5DTFNoYesNo16030
20230606Eri000000_1DTFYesNoYes182612
20230607Eri000000_2DTFYesNoNo291014
20230608Eri000000_3DTFNoYesNo301215
20230609Eri000000_4IPTFYesNoYes252010
20230610Eri000000_5IPTFYesNoNo162120
20230601Eri000000_3IPTFNoYesNo181630
20230602Eri000000_4IPTFYesNoYes291812
20230603Eri000000_5IPTFYesNoNo302914
20230604Eri000000_1DTFNoYesNo253015
20230605Eri000000_2DTFYesNoYes102550
20230606Eri000000_3DTFYesNoNo121660
20230607Eri000000_1IPTFNoYesNo201810
20230608Eri000000_2IPTFYesNoYes211020
20230609Eri000000_3IPTFYesNoNo161230
20230610Eri000000_4IPTFNoNoNo182012
20230601Eri000000_5IPTFYesNoYes292130
20230602Eri000000_1IPTFYesYesYes301612
20230603Eri000000_2IPTFNoYesNo251814
20230604Eri000000_3IPTFYesNoYes182915
20230605Eri000000_4IPTFYesNoNo293010
20230606Eri000000_5DTFNoYesNo302520
20230607Eri000000_3DTFYesNoYes251830
20230608Eri000000_4IPTFYesNoNo162912
20230609Eri000000_5IPTFNoYesNo183014
20230610Eri000000_1IPTFYesNoYes29015

Upload it on wetransfer it is free.
https://wetransfer.com/
Thank you



Luca D'Elicio

LinkedIn Profile

Thanks.

https://we.tl/t-jufs4v4x5A

 

I hope you will get the file

Hi ji
here the link of the pbix
https://we.tl/t-6Xtz2nj6sQ
You have to manage two table that corrispond to two parameter.
They manage you column.
The first parameter "Columns ever show" is the first column of your table and are show indipendent from the choose of your slicer FE.
The secondo parameter "Column Parameter" show the column based on the FE slicer.
A filter of a measure is apply on the table to select only the rows you want.
So the combination of those things returns your result.
Not so simply to do, but i did it!


I hope I have been helpful.
Mark it as a solution if resolve your problem.

Ciao!



Luca D'Elicio

LinkedIn Profile

Hi Luca,

By any chance you still have the PBI file for the solution of this matter? 

I have a similar question and would much appreicated your help!

I tried to click the link to download the PBI in the link you provided but its expired.

Thank you!

@lucadelicio You are genious. Never thought of this before... Ealier i had to show everything in case no Features are selected and filter only when something gets selected. But i will try to ammend the requirenet to have atleast one selected.

Thanks a ton 

thank you for your compliments.
With two parameter combinated i had never try, but it goes good! 😉
PowerBI is a brain teaser 😄
PLEASE MARK IT AS A SOLUTION TO HELP OTHER PEOPLE



Luca D'Elicio

LinkedIn Profile
lucadelicio
Super User
Super User

Hi,
try to go into the power query transform data mode:
 - REFERENCE the table
 - Unpivot all the columns
 - Remove other columns
 - Distinct value
Then put the filed into the slicer.
In this way you have the slicer connected to the column of your starting table.
Here the pbix link:
https://we.tl/t-mVLwIdW6ZI

I hope I have been helpful.
Let me know if resolve your problem.
It's more easier to help you if you upload your pbix.
Mark it as a solution if resolve your problem.

Ciao!



Luca D'Elicio

LinkedIn Profile
Idrissshatila
Super User
Super User

Hello @Loubot3000 ,

You could acheive this using field parameters.

 

https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Bro thank you 🙏 been trying to do this for ages. Crazy you can't just do it in normal slicers.

It still doesn't affect anything though because it's just selecting that column overall - but everybody has some response for that column. I just want it to select "Yes" values. If I add the relevant fields to the filter pane of that field paramenter slicer, and have them only select "Yes", it doesn't affect anything when I select that category in the field parameter slicer.

 

Any idea how to achieve the behaviour I want?

 

Thanks

Hi Loubot,

 

I have the exact request but unable to find any soultion. Did you get anything on this. Please share in case you cracked it.

 

Thanks,

Jit

Can you send me the pbix or the excel wirth the data?

I try to look at this.

Thank you



Luca D'Elicio

LinkedIn Profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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