cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Measure based on slicer for dynamic title

I want to create a measure that reflects my slicer selection (if there is only one selection) and "Multiple" if i have selected more than two options. So with my slicer below...

 

If i select ONLY one option, i would like the measure to return that value, i.e. I select Tom, it returns Tom. 

 

If i select more than one option, say both Tom and Jane, i would like the measure to return back a text; I will probably use "Multiple" for now. 

 

I have used concatenatex before for something similar, but not sure how to return a test if multiple options are selected.

 

SLICER:

JOHN

JANE

TOM

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Measure based on slicer for dynamic title

Hi @thampton

 

Try this for your measure and place it in a card visual:

 

 

Measure =
IF (
    ISFILTERED ( Table1[SlicerField] ),
    SELECTEDVALUE ( Table1[SlicerField], "Multiple" ),
"" )

This will not display anything when nothing is selected in the slicer. You can change this in the last argument of the IF . You can also change the "Multiple" message if so required.

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: Measure based on slicer for dynamic title

Hi @thampton

 

Try this for your measure and place it in a card visual:

 

 

Measure =
IF (
    ISFILTERED ( Table1[SlicerField] ),
    SELECTEDVALUE ( Table1[SlicerField], "Multiple" ),
"" )

This will not display anything when nothing is selected in the slicer. You can change this in the last argument of the IF . You can also change the "Multiple" message if so required.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors