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

Dynamic title to display multiple selected

I know this has already been covered, and probably asked by me before, but I am finding multiple and confusing solutions which i'm not sure are what I need. 

I have a date slicer holding month and year of the last twelve months, so report consumers can filter the data. 

I want a dynamic title which appears, if they apply this slicer. And shows all the months they have picked. 

I can do the measure for if they pick one month, but as soon as they pick two, it breaks. 

 

HELP!

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Could you tell me whether your problem have been solved?

You can also try measure as below to create dynamic title:

Selected Month = 
VAR selectedmonth =
    VALUES ( 'financials'[Date].[Month] )
RETURN
    "Sales by Month: "
        & IF (
            COUNTROWS ( selectedmonth ) = COUNTROWS ( ALL ( 'financials'[Date].[Month] ) ),
            "All",
            CONCATENATEX ( VALUES ( 'financials'[Date].[Month] ), 'financials'[Date].[Month], "," )
        )

 62.png

 

Please check my sample pbix file for more details.

Best Regards,
Community Support Team _ Eason
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

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Could you tell me whether your problem have been solved?

You can also try measure as below to create dynamic title:

Selected Month = 
VAR selectedmonth =
    VALUES ( 'financials'[Date].[Month] )
RETURN
    "Sales by Month: "
        & IF (
            COUNTROWS ( selectedmonth ) = COUNTROWS ( ALL ( 'financials'[Date].[Month] ) ),
            "All",
            CONCATENATEX ( VALUES ( 'financials'[Date].[Month] ), 'financials'[Date].[Month], "," )
        )

 62.png

 

Please check my sample pbix file for more details.

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

selimovd
Super User
Super User

Hey @Anonymous ,

 

can you post your measure?

This makes it easier to help you.

 

Did you put multiple values together with CONCATENATEX?

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Hey @Anonymous ,

 

I've seen you deleted the reply.

The reason there was that you used the FORMAT function on the already concatenated string.

So if the string looks like "01 20201, 02 2021, 03 2021" and you use the FORMAT function on it, it would not work because the format doesn't fit.

 

Does this solve your issue?

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

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.