Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
If I have a slicer that contains YTD, MTD, QTD and has a bar chart of sales vs date. when we click on YTD it will show only one bar on the Bar chart, when I click on QTD then it will show 4 bars according to quarter when we click on MTD it will show monthly data bars.
How can we achieve this?
Solved! Go to Solution.
Hi @Anonymous ,
Agree with @amitchandak .
Below is my simple sample, which used Bookmarks and Selections:
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @amitchandak @Anonymous,
Thanks for giving the solution.
I have also worked on it and I got a solution. I am sharing that with you.
Creating a Switch table by using above DAX.
Create a calendar table.
Take slicer and put Type of table switch in it
Take a bar chart and put values and table values in it .
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Thanks for your sharing !!! It's much more efficient than my workaround.
Please Accept yours as the solution. More people will benefit from it.
Best Regards,
Eyelyn Qin
This is so usefull Thank you for sharing Yashashri....!!!!
Hi @Anonymous ,
Agree with @amitchandak .
Below is my simple sample, which used Bookmarks and Selections:
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , If you want to change the axis. In this case the best option is to use bookmarks
Axis Slicer
Dynamically change chart axis in Power BI
bookmark -https://blog.crossjoin.co.uk/2018/04/20/dynamically-changing-a-chart-axis-in-power-bi-using-bookmarks-and-buttons/
https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive