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
DataVizGuy
Frequent Visitor

Dynamic Title Based on Date Hierarchy

I am trying to implement a dynamic title displaying Fiscal Year (calculated column within a date table), but only when the full Fiscal Year is displayed within the visual.

 

If the end user selects a specific quarter and/or month from the date hierarchy, I would want the title to show up as blank.

 

Any ideas on how to implement this? So far I have the following DAX:

 

FYLabel = 
VAR SelectedFY =
    IF(ISFILTERED('Date Table'[FY]),VALUES('Date Table'[FY]))
    RETURN
    SELECTEDFY

 

 

However the code above still shows the selected Fiscal Year, even when only certain quarters or months are selected underneath that Fiscal Year. 

1 REPLY 1
ChiragGarg2512
Super User
Super User

@DataVizGuy , this happens because quarters and months do filter the fiscal years. Keep only the fiscal year slicer and add blank in the if statement for when it's false.

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.