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
MB123
New Member

dynamically chang the title of a bar chart based on selections made within the same chart

Hi,

I'm currently working on a scenario where I need to dynamically change the title of a bar chart based on user interaction. I have a bar chart that displays test cases automated on a week-by-week basis. When a user clicks on a specific week within the same chart, I want the chart title to update accordingly, showing something like "Test Cases Automated in Week 1" if Week 1 is selected.

(Not Using Slicer selection )

To achieve this, I've written the following DAX measure named WeekDynamic:

DAX...........
WeekDynamic =
VAR SelectedWeek =
IF(
ISFILTERED('Calendar'[WeekOfMonth]),
"Test Cases Automated in Week " & SELECTEDVALUE('Calendar'[WeekOfMonth]),
"Test Cases Automated"
)
RETURN
SelectedWeek
I've tried using this measure in the chart title settings, but it doesn't seem to update as expected when I click on different weeks. I also attempted another approach: "Test Cases Automated" & SELECTEDVALUE('Calendar'[WeekOfMonth]), but encountered similar issues.

Could anyone please assist me in identifying what might be causing this issue?

1 REPLY 1
Anonymous
Not applicable

Hi @MB123 ,

 

I think you're on the right path, but implementing it seems to necessitate the use of a slicer. You could make an attempt to filter by filter and silcer respectively and see what isfilter returns.

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

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.