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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.