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
Anonymous
Not applicable

Change Reprt Title bsed on a filter selection

Hi!

 

I want to change the title of my report based a particular filter I have .

Basically if the filter is on "A", I should show "Text 1" and if I seelect "B" it should show " Text 2". The text 1 and 2 are just random text that I want to put. 

Help will be greatly appreciated.

2 ACCEPTED SOLUTIONS

You need to write a measure that returns the text you want. You could use something like this

 

title = switch(selectedvalue(table[column]),"A","text 1","B","text 2")

 

then go to the chart title setting, click on the 3 dots (hidden unless you hover), and set the conditional format based on the measure



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

There are lots of options.

 

title 2 = switch(selectedvalue(table[column]),"A","text 1","B","text 2","you must select only one value")

 

or set the slicer to single selection only. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

4 REPLIES 4
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

If you referring to Page Name, the simple answer is it can not be done.

image.png

 

But you can add it as an Idea if it hasn't been added yet.
https://ideas.powerbi.com/forums/265200-power-bi-ideas

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

You need to write a measure that returns the text you want. You could use something like this

 

title = switch(selectedvalue(table[column]),"A","text 1","B","text 2")

 

then go to the chart title setting, click on the 3 dots (hidden unless you hover), and set the conditional format based on the measure



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Anonymous
Not applicable

How to handle when there is none selected or all selected?

There are lots of options.

 

title 2 = switch(selectedvalue(table[column]),"A","text 1","B","text 2","you must select only one value")

 

or set the slicer to single selection only. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

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.