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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

X-axis using field parameter

Hello everyone

I currently have a data board in which I have generated columns to calculate daily and monthly indicators according to casuistry.

In order not to generate too many tabs I have generated a field parameter using the date column (dd/mm/yyyy) and the month name, and I am using this parameter as the X-axis in my charts.

But I have the question that if it is possible that when using the field parameter on the X axis and selecting the case of the month name order it correctly by time.

Attached image of the values of the date and month name columns that were passed in the field parameter

Davidhc_0-1738550253008.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from shafiz_p , please allow me to provide another insight:

Hi, @Syndicate_Admin 
Thanks for reaching out to the Microsoft fabric community forum.

Has shafiz_p's response resolved your issue? If it has, please accept it as the solution. This will help other users with similar problems find solutions more quickly.

vlinyulumsft_0-1738823896844.png

In my tests, it was effective. Below is an image of my results:

vlinyulumsft_1-1738823896845.png

To generate a month number column, you can use the MONTH() function to create a calculated column. In my tests, this did not result in any circular dependency issues.

MONTH function (DAX) - DAX | Microsoft Learn

 

For more details on shafiz_p's solution, you can refer to the following documentation:

Sort one column by another column in Power BI - Power BI | Microsoft Learn

 

Please find the attached pbix relevant to the case.

 
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
 

Best Regards,

Leroy Lu

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks for the reply from shafiz_p , please allow me to provide another insight:

Hi, @Syndicate_Admin 
Thanks for reaching out to the Microsoft fabric community forum.

Has shafiz_p's response resolved your issue? If it has, please accept it as the solution. This will help other users with similar problems find solutions more quickly.

vlinyulumsft_0-1738823896844.png

In my tests, it was effective. Below is an image of my results:

vlinyulumsft_1-1738823896845.png

To generate a month number column, you can use the MONTH() function to create a calculated column. In my tests, this did not result in any circular dependency issues.

MONTH function (DAX) - DAX | Microsoft Learn

 

For more details on shafiz_p's solution, you can refer to the following documentation:

Sort one column by another column in Power BI - Power BI | Microsoft Learn

 

Please find the attached pbix relevant to the case.

 
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
 

Best Regards,

Leroy Lu

shafiz_p
Super User
Super User

Hello, chart basically sort text field in alphabetically order (e.g., April, August, December...). To sort by time or chronological order, you need to overrid alphabetical sorting behaviour.

 

To achieve this, need a month number column and sort month name by month number column. Here is how:

shafiz_p_0-1738554282433.png

 

After that, field parameters dynamically switch between fields while retaining their underlying sort logic.

 

 

Hope this answered your question!!

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.