Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Create a Dynamic Title Using a Hierarchy

I am trying to create a dynamic title for a table based on what the user selects in a hierarchy slicer. I created the hierarchy as a new field. When I try to create the measure for the SELECTEDVALUE, the hierarchy does not appear as an option for me to select. An example of the hierarchy is below. My expected results for the table title would be something like "Annual Performance for" Chief A, Director B, Manager C.

 

Any assistance would be much appreciated! Thanks!! 

 

 

  • Anonymous the image you shared was not representing you have turned on a single selection. Anyhow, it is good then it should be just concatenating 3 columns

     

    SELECTEDVALUE ( Table[ChiefColumn] ) & " " & 
    SELECTEDVALUE ( Table[DirectorColumn] ) & " " &
    SELECTEDVALUE ( Table[ManagerColumn] )

     

    Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

4 Replies

  • Anonymous ,

    A measure like this

    maxx(allselected(Table, Table[Chief])) & " " & maxx(allselected(Table, Table[Director]))& " " & maxx(allselected(Table, Table[Manager]))

  • Anonymous Question you need to ask yourself, what happens if more than one selection is made, how would you like to see that? Giving a solution is easy but looking forward and making it scalable is also critical. Thoughts?

    • Anonymous's avatar
      Anonymous
      Not applicable

      I have the slicer set for Single Selection so users can only make one selection at a time.

  • Anonymous the image you shared was not representing you have turned on a single selection. Anyhow, it is good then it should be just concatenating 3 columns

     

    SELECTEDVALUE ( Table[ChiefColumn] ) & " " & 
    SELECTEDVALUE ( Table[DirectorColumn] ) & " " &
    SELECTEDVALUE ( Table[ManagerColumn] )

     

    Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.