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
Keerthika
Helper I
Helper I

Dynamic change in X-axis when filtered by YTD,QTD,MTD slicer

Hi,
I am having YTD,QTD and MTD as a slicer. When I select YTD, the axis must show "year" scale. When I select QTD, the axis must show "Quarter " scale and MTD in the same way. I use line chart to display my values(Revenue). Is there any solution to solve this issue?
Thanks in advance.

1 ACCEPTED SOLUTION
Keerthika
Helper I
Helper I

Hi,

 I found a solution. Please refer to the below link

https://www.kasperonbi.com/dynamically-switching-axis-on-visuals-with-power-bi/

This provides clear and better solution.

Thanks. 

View solution in original post

4 REPLIES 4
Keerthika
Helper I
Helper I

Hi,

 I found a solution. Please refer to the below link

https://www.kasperonbi.com/dynamically-switching-axis-on-visuals-with-power-bi/

This provides clear and better solution.

Thanks. 

Mariusz
Community Champion
Community Champion

Hi @Keerthika 

 

You can use combination of Bookmaks and Buttons to switch between your slicer selections and your visual setting at the same time, please watch the video.

 

https://www.youtube.com/watch?v=0m-PCX1uCG4

 

Regards,
Mariusz

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

Hi @Mariusz 

     Thanks for the reply. When I publish it in my Power Bi Service, Bookmarks and buttons doesnt work in Dashboard. Is there any solution without using bookmarks and buttons?
Thanks. 

Hi @Keerthika 

 

Combination of Bookmarks and Buttons is the only way that I know of to dynamicly change the visuals axis.

 

sorry

Mariusz

 

 

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.