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
Ritaf
Responsive Resident
Responsive Resident

Dynamic Title of chart besed hyerarchy

Hi, 

I'm trying to create a dynamic chart title, which will be changed according to the hierarchy level' for example when it is Month the title will be " total XXXX by month" and if it day-mont "total zzz by day-month" etc.

I need to create a measure for it because my titles are not in English so the automatic titles of charts aren't helping me.

I tried to use functions as isinscope / isfiltered, but they didn't work because there is no filter context, the drill-down is not from one of the bars it is on chart level .
Is there is some way to create a measure like that?

Thank you,

Rita

9 REPLIES 9
VahidDM
Super User
Super User

Hi @Ritaf 

 

Can you create a sample of your report with a visual and share the PBIX file here?

 

Appreciate your Kudos✌️!!

Ritaf
Responsive Resident
Responsive Resident

Hi,
This is a standard model, I put it on Contoso Database, here:
https://drive.google.com/file/d/18VVnq6XKxDyQa18r1XXzBR6j1kSkdDeu/view?usp=sharing

@Ritaf This may give you some additional ideas on what you can do with your dynamic title:

The Most Amazing, Mind Blowing Dynamic Slicer Titl... - Microsoft Power BI Community


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
aj1973
Community Champion
Community Champion

Hi @Ritaf Rita,

Try this 

MY_testTitle = IF(SELECTEDVALUE('Calendar'[DayOfMonth]),"Day Title", IF(SELECTEDVALUE('Calendar'[Month No]),"Month Title" , "Year Title"))

aj1973_0-1632062308580.png

 

aj1973_1-1632062367794.png

 

But first you will need to add Month No column to the calendar Table

aj1973_2-1632062447124.png

 

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Ritaf
Responsive Resident
Responsive Resident

Thank you for your response , but i need the date slicer as is ...if i need to choose between it and title...the slicer is more important for my users

aj1973
Community Champion
Community Champion

Hi Rita

Try to watch this video, it might help

https://www.youtube.com/watch?v=XXv13mkjV2Y

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Hi, @Ritaf 

As a workaround, you can consider changing the model language setting and restarting the application, then re-creating the report.

26.png

27.png

28.png

 

Best Regards,
Community Support Team _ Eason

Changing model language is very problematic, Hebrew has a lot of sides issues ...so it doesn't work well with numbers. I need a dax solution, otherwise, I will stay with my static title, it is not so dramatic.   I just was sure that this is not an insurmountable problem.

Hi,  @Ritaf 

I'm afraid this is difficult to implement . It is not possible to use functions to identify the current hierarchy level in a chart without additional slicers.

 

Best Regards,
Community Support Team _ Eason

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.