Forum Discussion

jlaroo33's avatar
jlaroo33
Frequent Visitor
4 years ago
Solved

Dynamic Title with Time Hierarchy

Hello!   I am working on creating a dynamic title for a card that summarizes the total number of hires in a certain time period, based on where the user is drilled into a related bar graph. I found...
  • jlaroo33's avatar
    4 years ago

    JirkaZ Thank you for the suggestion! I couldn't quite get that to work, but here is what I found in case others come across a similar issue. Please forgive my formatting, I'm new to DAX. ๐Ÿ™‚

     

    Selected Value =
    IF(ISFILTERED('Date Table'[Date].[Month]),""& SELECTEDVALUE('Date Table'[Date].[Month])&" "&SELECTEDVALUE('Date Table'[Date].[Year],", "),
    IF(ISFILTERED('Date Table'[Date].[Quarter]),""& SELECTEDVALUE('Date Table'[Date].[Quarter])&" "&SELECTEDVALUE('Date Table'[Date].[Year],", "),
    IF(ISFILTERED('Date Table'[Date].[Year]),""& SELECTEDVALUE('Date Table'[Date].[Year],", "),"YTD")))