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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
scuderia
Frequent Visitor

Dynamic Title based on quarter selection

Hello BI Community

I have a slicer where users have the possibility to filter data based on quarter figures, so for e.g. in 2020 "Q1/20" up to "Q4/20" can be choosen individually or all together.

So the Title within the report should therefore indicate which filter has been set with the following layout:

 

Q1/20 up to Q4/20                                                  => "Q1/20 - Q4/20"

Q1/20, Q2/20 and Q4/20 (no Filter  on "Q3/20")    => "Q1/20 - Q2/20 | Q4/20"

 

Any help would be greatly appreciated!

4 REPLIES 4
ERD
Community Champion
Community Champion

Hello @scuderia ,

For the first formatting option you can use something like this:

Title = 
IF(
    ISFILTERED(QY),
    IF(
        COUNTROWS(ALLSELECTED(QY[Q])) = COUNTROWS(ALL(QY)),
        COMBINEVALUES("-",MIN(QY[Q]),MAX(QY[Q])),
        "Data for " & CONCATENATEX(ALLSELECTED(QY[Q]), QY[Q], ",")
    ),
    "Data"
)

The second formatting option looks interesting, but quite complicated. You need to somehow cut the resulting string into pieces defining when values go not one by one. 

Here is a nice video for other dynamic title options: Multi-select Dynamic Titles in Power BI Desktop 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

amitchandak
Super User
Super User

@scuderia ,

Not very clear

you can create a measure like

concatenatex(Table, Table[Qtr], "-")

 

and use that in title

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you amitchandak for your input but I'm looking for a smarter solution where both requested formats are shown.

@scuderia , can share data input and output data in table format.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.