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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Create # of Slicers dynamically based on nonNull columns

Hello All,

I want to create Slicer visuals based on columns retuned in data. 

 

For example: 

As shown in below image, I have fields like AreaLevel1, AreaLevel2, AreaLevel3 etc.. 

 Most time these columns have values upto level 3 but sometimes AreaLevel4 or AreaLevel5 might have values. 

 

3333.JPG

I want to determine first if column has any nonNull value which makes it eligible column for this case. 

I want to create Slicers on page for each column that has values. 

 

Kindly help. 

1 ACCEPTED SOLUTION
AnkitBI
Solution Sage
Solution Sage

Hi @Anonymous 

 

We can't create dynamic slicers in Power BI. To create Slicers you need to Drag drop Columns into Report canvas. So, fields will always be shown even all are Null or NonNull values.

 

Thanks
Ankit Jain
Do Mark it as solution if the response resolved your problem. Do Kudo the response if it seems good and helpful.

 

 

View solution in original post

7 REPLIES 7
AnkitBI
Solution Sage
Solution Sage

Hi @Anonymous 

 

We can't create dynamic slicers in Power BI. To create Slicers you need to Drag drop Columns into Report canvas. So, fields will always be shown even all are Null or NonNull values.

 

Thanks
Ankit Jain
Do Mark it as solution if the response resolved your problem. Do Kudo the response if it seems good and helpful.

 

 

Anonymous
Not applicable

Yes that I am aware of. I was just wondering if there was a way. 

Thanks for your time 

Anonymous
Not applicable

@AnkitBI Thanks for your time Ankit. 

 

I actually got an alternate solution. and I am puttint it here so others can use it. 

I am using this custom visual for Slicers which let me put multiple fields in slicers as hierarchy and also gives flexibility to hide empty columns. 

 

44.JPG

 

As displayed in image, it shows only 5 columns but actually there wer 15 columns added in field well (totally emptry columns are not displayed)

Hi - Great.. Which Custom slicer are you using??
Anonymous
Not applicable

Ok Thanks

Ok. Then the answer is "NO", not possible to create dynamic slicers

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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