cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

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

Accepted Solutions
Highlighted

Re: Change Reprt Title bsed on a filter selection

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 a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

Highlighted

Re: Change Reprt Title bsed on a filter selection

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 a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

4 REPLIES 4
Highlighted

Re: Change Reprt Title bsed on a filter selection

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 a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

Highlighted
Super User IV
Super User IV

Re: Change Reprt Title bsed on a filter selection

Hi @aagni2000 

 

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

 

Highlighted
Helper V
Helper V

Re: Change Reprt Title bsed on a filter selection

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

Highlighted

Re: Change Reprt Title bsed on a filter selection

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 a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors