Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
satishorre20
Helper I
Helper I

Dynamic page title based on slicer selection in Power BI Report

Greetings,

 

I am just checking and see if there is any option to append to page title/header based on slicer selection using VALUES(slicer) and HASONEVALUE DAX Functions.

 

I have created DAX measure and wanted to use this measure in the page header. page header/title like " Sales Trends in Multiple Projects(s)" if user selected more than 2 values from slicer.  "Multiple" is derived from measure based on slicer selection.

 

 

 

 

 

 

 

Project List = 
var  _cnt = COUNTROWS( values(slicer column/attribute))
var   _names = IF ( _cnt <=2, CONCATENATEX(VALUES(slicer column/attribute), slicer column/attribute, ",", slicer column/attribute, ASC), "Multiple")
RETUNR
  _names

 

 

 

 

 

 

 

 

Any thoughts to create Dynamic page title ( not visualization title)?

 

6 REPLIES 6
Anonymous
Not applicable

Hi @satishorre20 ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

HI @satishorre20,

Any update on this? Did the above suggestion help for your scenario?

Regards,

Xiaoxin Sheng

rohit1991
Super User
Super User

Hi @satishorre20 ,
Yes, you can create a dynamic page title based on slicer selection using a DAX measure and a Card visual in Power BI. While Power BI does not allow direct modification of the actual report page title dynamically, you can achieve a similar effect by displaying a dynamic title in a Card visual at the top of the page. To do this, you can create a measure that evaluates the selected slicer values and constructs a title accordingly. A refined version of your measure would be:

DynamicPageTitle = 
VAR _cnt = COUNTROWS(VALUES('Table'[SlicerColumn]))
VAR _names = 
    IF(
        _cnt <= 2, 
        CONCATENATEX(VALUES('Table'[SlicerColumn]), 'Table'[SlicerColumn], ", "),
        "Multiple Projects"
    )
RETURN 
    "Sales Trends in " & _names

 

This measure checks the number of selected values from the slicer. If one or two values are selected, it concatenates them into a readable string; otherwise, it returns "Multiple Projects" to indicate a broader selection. To implement this, add a Card visual to the report, set its value to this measure, and format it as a page header by adjusting the font, size, and position to make it visually resemble a title. While this does not change the actual page/tab name in Power BI, it serves as an effective workaround to reflect dynamic titles based on user selections.

tharunkumarRTK
Super User
Super User

@satishorre20 

 

If you are referring to changing the report page dynamically then as @danextian mentioned, its not possible. 

 

I case if you want to change the Text/Shapre/Blank button element that you have used as a report page title/header then its possible 

 

For example, insert a blank button on the report canvas and under format setttings you will find "Style" -> "Text"

there you will find "Fx" button, click on it and you will be able to select the DAX measure you created for the dynamic title logic 

 

Screenshot 2025-02-16 at 12.42.22 PM.png

 

Hope that answers your question

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png
danextian
Super User
Super User

Hi @satishorre20 

 

If you're referring to the name of a page, that isn't possible. You can't configure page names with DAX.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

You can not dynamivcal change the page name but you can create dynamic measure and display it in a card at ten top of page, so it looks like a page heading.

 

For example ...

Heading = 
var mytext =
SWITCH(DISTINCTCOUNT(yourdata[Country]),
1, SELECTEDVALUE(yourdata[Country]),
2, 
CONCATENATEX ( 
        FILTERS ( yourdata[Country] ),
        yourdata[Country] , 
        " and " ),
 "Multiple"        
)
RETURN
    "Page heading is " & mytext

 

speedramps_0-1739708034702.png

 

speedramps_1-1739708071867.png

 

speedramps_2-1739708103821.png

 

Please click thumbs up and accept solution, thank you

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.