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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sagarsahoo_123
Helper IV
Helper IV

How to get Dynamic X-Axis Title based on Slicer Selection

Hi Team,

Need your support to resolve to display Dynamic X axis Title based on Slicer selection.

Requirement:- I have a slicer with Input column having two values like Nippon and Digi ACT. 

If i select Nippon, then in the X axis of Matrix Table it will display title as "Nippon Cumulative Hours"

If i select DigiACT, then in the X axis of Matrix Table it will display title as "DigiACT Average Hours"

If there is no selection or all selection , then in Matrix X axis it would display "Input Hours". Below given image for better understanding on the requirement.

sagarsahoo_123_1-1668530808858.pngsagarsahoo_123_2-1668531337690.png

 

sagarsahoo_123_3-1668531367142.png

 

Regards,

Sagar

 

1 ACCEPTED SOLUTION

Hi @sagarsahoo_123 ,

Can you try replacing Slicer in the Measure formula with SELECTEDVALUE(Slicer) and then try implementing it -
measure = If ( Selectedvalue(Slicer)="Nippon","Nippon Cumulative Hours", If ( SelectedValue(Slicer) = "DigiACT","DigiACT Average Hours","Input Hours"))

View solution in original post

4 REPLIES 4
Avantika-Thakur
Solution Supplier
Solution Supplier

Hi @sagarsahoo_123 ,

 

Currently we don't have the Fx option to apply a dynamic measure in the X-axis title available as part of visual formatting.

But you can create a measure = If ( Slicer ="Nippon","Nippon Cumulative Hours", If ( Slicer = "DigiACT","DigiACT Average Hours","Input Hours"))
and put this measure in a text box/card visual below the x-axis and it will act as a dynamic x-axis title.

 

Hope this helps!

 

Please accept the solution if this answers your query.

 

Thanks,

Avantika

Hello @Avantika-Thakur ,

I am gettig this error  while creating measure for this.

sagarsahoo_123_0-1668581211237.png

Please suggest if anything i am doing wrong here.

Regards,

Sagar

Hi @sagarsahoo_123 ,

Can you try replacing Slicer in the Measure formula with SELECTEDVALUE(Slicer) and then try implementing it -
measure = If ( Selectedvalue(Slicer)="Nippon","Nippon Cumulative Hours", If ( SelectedValue(Slicer) = "DigiACT","DigiACT Average Hours","Input Hours"))

Hi @Avantika-Thakur ,

Thanks a lot for your quick support.

 

Regards,

Sagar

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.