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
JayTG123
Advocate I
Advocate I

Dynamic Card Title to show "Multiple Selections" when more than one company selected.

Hi all,

 

I have a card title on my report which shows users the company they have selected when using filters - However if they select more than one company it will only show the last company selected. I would like this to just say "Multiple Companies Selected" if more than 1 is.

 

The current dax measure I have is: 

 

IF(ISFILTERED('Street Works Applications & Works'[Organisation]), MAX('Street Works Applications & Works'[Organisation]), "Kent Totals")
 
Jay
1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @JayTG123 ,

 

Please try this:-

Measure =
IF (
    ISFILTERED ( 'Street Works Applications & Works'[Organisation] ),
    IF (
        COUNTROWS ( VALUES ( 'Street Works Applications & Works'[Organisation] ) ) > 1,
        "Multiple Companies Selected",
        MAX ( 'Street Works Applications & Works'[Organisation] )
    ),
    "Kent Totals"
)

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

2 REPLIES 2
Samarth_18
Community Champion
Community Champion

Hi @JayTG123 ,

 

Please try this:-

Measure =
IF (
    ISFILTERED ( 'Street Works Applications & Works'[Organisation] ),
    IF (
        COUNTROWS ( VALUES ( 'Street Works Applications & Works'[Organisation] ) ) > 1,
        "Multiple Companies Selected",
        MAX ( 'Street Works Applications & Works'[Organisation] )
    ),
    "Kent Totals"
)

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

@Samarth_18 thank you so much!! All working !!

Jay

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.