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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Kopek
Helper IV
Helper IV

Preselected slicer help needed

Hello!

I am having an issue with using a preselcted slicer vizualization.
I was able to figure it out how to use with dates, but i want to use it with a text entries right now.

Preselected Slicer (microsoft.com)

I am having different data labesl for different clients:

 

Data LabelClientDefault ? Label id
Label 1111Yes1
Label 2111No 2
Label 3111No 3
Label 2222Yes2
Label 3222No 3
Label 1333Yes1
Label 2333No 2
Label 3333No 3
Label 4333No 4
Label 1444Yes1
Label 2444No 2
Label 3444No 3
Label 4444No 4
Label 1555No 1
Label 2555Yes2
Label 3555No 3

 

I have also created true / false table for Dirty Status: (made sure format = true/false)

 

Column1

True
False

 

This is my fields set up for the preselcted slicer:

 

Kopek_0-1716911418185.png

 

Can somebody help me in creating a proper measure for Pre Selection filed, so that labels makred as "Yes" in Default? column are picked up by slicer from default ?

 

Thanks in advance!

 

ps report is filtered by client id from report lvl filter, so there is always only data for one client visible.

2 REPLIES 2
v-zhengdxu-msft
Community Support
Community Support

Hi @Kopek 

 

Please try this:

I create a measure:

MEASURE =
VAR _selectedDefault =
    SELECTEDVALUE ( 'Table'[Default ? ] )
RETURN
    _selectedDefault = "Yes"

The result is as follow:

vzhengdxumsft_0-1716947155149.png

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, thanks for thath, but to the slicer i want to take data labels, not yes, no.
Yes, no column is only an idicator showing which label to be selected from default

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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