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
Anonymous
Not applicable

How to make a title with multiple slicer values using conditional formatting for visual titles

 

I have a Filter that contains approx 8 values ...   as shown by ... below ... I would like the Visual Table below it to show something like "Selected Subject Categories: Carriers , Plant " 

 

It  will show if I only select one ... 

 

I did see the one where they Similiar Question wanted something from a slicer than all the Stacked columns  

 

Filter.PNG

Thanks for any help ...

Kathy

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous , try this DAX measure:

 

Dynamic Title =
VAR Part1 = "Selected Subject Categories: "
VAR Part2 =
    IF (
        ISFILTERED ( TableName[Subject Categories] ),
        CONCATENATEX (
            VALUES ( TableName[Subject Categories] ),
            TableName[Subject Categories],
            ", "
        ),
        "All"
    )
RETURN
    Part1 & Part2

This first checks to see if the user filtered that column.  If they didn't, return "Selected Subject Categories: All".  

 

If they did, it will return the list separated by a comma.  Bear in mind if they select more than 3, this title may be too big.  There is a way to display "Selected Plant, Carriers, and 3 more..." if that is necessary.  Since you have a small amount of values, I think you're ok.

 

Cheers,

 

~ Chris

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous , try this DAX measure:

 

Dynamic Title =
VAR Part1 = "Selected Subject Categories: "
VAR Part2 =
    IF (
        ISFILTERED ( TableName[Subject Categories] ),
        CONCATENATEX (
            VALUES ( TableName[Subject Categories] ),
            TableName[Subject Categories],
            ", "
        ),
        "All"
    )
RETURN
    Part1 & Part2

This first checks to see if the user filtered that column.  If they didn't, return "Selected Subject Categories: All".  

 

If they did, it will return the list separated by a comma.  Bear in mind if they select more than 3, this title may be too big.  There is a way to display "Selected Plant, Carriers, and 3 more..." if that is necessary.  Since you have a small amount of values, I think you're ok.

 

Cheers,

 

~ Chris

 

 

Cmcmahan
Resident Rockstar
Resident Rockstar

Sure.  Your measure would look like this:

 

TableTitle = "Selected Subject Categories:  
" & CONCATENATEX(data_table, [category], ", ")

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.