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
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
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.