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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kylefox101
Frequent Visitor

Using Slicer as Visual Title

Hello! 

 

I am attempting to use slicers as visualization titles, that when selected pulls the location into the corresponding table. I am running into issues when selecting more than one, presumably the table is treating the slicers as an 'and' rather than 'or'. Any thoughts or ideas on how to get this to work?

 

Screen Shot 2022-07-25 at 10.31.30 AM.png

 

Thank you!

Ky

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @kylefox101 ,

 

Is this you want?

vchenwuzmsft_0-1659001462075.gif

 

If yes, please create a new table via values('fact table'[category]) for one slicer. if two slicers then two tables.

Then create measure like the following and put it in filter pane and set it show items when is 1.

 

 

Measure =
IF (
    SELECTEDVALUE ( 'Table'[Category] )
        IN VALUES ( Slicer1[Category] )
            || SELECTEDVALUE ( 'Table'[Category] ) IN VALUES ( Slicer2[Category] ),
    1
)

 

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

View solution in original post

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @kylefox101 ,

 

Is this you want?

vchenwuzmsft_0-1659001462075.gif

 

If yes, please create a new table via values('fact table'[category]) for one slicer. if two slicers then two tables.

Then create measure like the following and put it in filter pane and set it show items when is 1.

 

 

Measure =
IF (
    SELECTEDVALUE ( 'Table'[Category] )
        IN VALUES ( Slicer1[Category] )
            || SELECTEDVALUE ( 'Table'[Category] ) IN VALUES ( Slicer2[Category] ),
    1
)

 

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

lbendlin
Super User
Super User

Not clear what your issue is.  Generally you use CONCATENATEX() to gracefully handle situations where more than one value is selected.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.