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
Anonymous
Not applicable

Changing the X label axis with a text data

Hi,

 

I'm relatively new to Power BI and I've got a custom X axis which I need to sort from Monday to Sunday.

 

It currently has the days mixed up (Friday till Tuesday).

 

Previously I've just created a seperate column with 1 to 9 which has labelled each of the corresponding days but I'll be dumping this data daily so I'm hoping for an easier solution.

 

Can anybody help? Thank you so much!Power Bi issue.png

 

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

According to your description ,you can follow these steps:

1)change the date format , such  as”(ddd,MMMM d,yyyy)”

xxx.png

2) create two calculated columns :

WEEKDAY = FORMAT('Table'[Date],"DDD")
WEEKDAY-NR = WEEKDAY('Table'[Date],2)

 

3)sort by column WEEKDAY-NR in Data view

zzz.png

4) create table visual ,put field ‘WEEKDAY’ into Axis and  put field ‘Value’ into Values     

Here is  a sample I  made:

BBB.png

 

URL: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/ETBzTumG7cNOjWnvEVqJKeoBAj9V5EjX0Vgsi30GqTRoPA?e=rl4heI

 

For more details ,you can also refer to this Video tutorials on third-party websites:

Power BI Desktop - Preview Features and Weekday Sorting

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

According to your description ,you can follow these steps:

1)change the date format , such  as”(ddd,MMMM d,yyyy)”

xxx.png

2) create two calculated columns :

WEEKDAY = FORMAT('Table'[Date],"DDD")
WEEKDAY-NR = WEEKDAY('Table'[Date],2)

 

3)sort by column WEEKDAY-NR in Data view

zzz.png

4) create table visual ,put field ‘WEEKDAY’ into Axis and  put field ‘Value’ into Values     

Here is  a sample I  made:

BBB.png

 

URL: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/ETBzTumG7cNOjWnvEVqJKeoBAj9V5EjX0Vgsi30GqTRoPA?e=rl4heI

 

For more details ,you can also refer to this Video tutorials on third-party websites:

Power BI Desktop - Preview Features and Weekday Sorting

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.