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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Sage2019
Frequent Visitor

Dynamically change x axis for Month Quarter and Year

Hi ,
I am trying to achieve changing the x axis to view sales by month, quarter and year depending on the slicer selection. How could I achieve this using bookmarks or field parameter? 

1 ACCEPTED SOLUTION
olgad
Super User
Super User

Hi, create a field parameter-modelling-field parameter, drag three separate fields year, quarter month (you can drag here yearmonth column if you need 202305/ May 2022,not simply month)-ok. add it as a slicer. Add the parameter to your vizualization. Right click in the viz pane x-axis field parameter-Show values from selected fields. 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

4 REPLIES 4
olgad
Super User
Super User

@Sage2019 Have my answer solved your problem? If so, can you please accept my answer as Solution to help other members find it faster? Thank you very much for your kind cooperation!


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Generally the solution works, I did the same. However, I am facing challenges with the Sorting. Each time I change the x.axis the visual switches to sort the y.axis decending. I can manually change to sort the x.axis ascending but at the moment when I toggle from month to year (or any other thing) the visual moves back to sort the y-axsis
Any thoughts?

Hi @Joerg-Oliver , yes this is a known problem. What you have to do is to make sure that all the columns used in the parameter are sorted. EXample: I pick monthly, and the sorting of months gets alphabetical. I need to sort the column month by the number column, or if i have Jan 2024 column i need to have a corresponding 012024 column, to sort it. Then you sort correctly on the visual one more time and then it works.


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
olgad
Super User
Super User

Hi, create a field parameter-modelling-field parameter, drag three separate fields year, quarter month (you can drag here yearmonth column if you need 202305/ May 2022,not simply month)-ok. add it as a slicer. Add the parameter to your vizualization. Right click in the viz pane x-axis field parameter-Show values from selected fields. 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors