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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
newhopepdx
Helper III
Helper III

LIne chart x-axis labels with two data series issue

The table feeding the line chart's x-axis consists of four columns: SundayDt (date), PYSundayDt (date), SundayDtLabel (text created from the SundayDt formatted as "MM/dd") and DashboardWeek (logical). 

Variables in the table (ReportMonth & ReportYear) create a table that has true for a consecutive 4-month range of Sundays and their corresponding Sunday in the previous year.

The data points for the two y-axis ranges are the attendance on each week where DashboardWeek is true for CY & PY.

 

I've sorted the SundayDtLabel column by the SundayDt column. The x-axis label need to be month and day number (as shown in the image below).

 

PROBLEM: date labels are not displaying in chronological order.

2025-08-23-WCC Weekly Dashboard - Power BI DesktopZ000401.jpg

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

Hi @newhopepdx,

Thank you for reaching out to the Microsoft fabric community forum. Also, thanks to @Shahid12523, @danextian, for those inputs on this thread. I reproduced the scenario, and it worked on my end. I used my sample data and successfully implemented it.

vkpolojumsft_0-1756103871920.png

I am also including .pbix file for your better understanding, please have a look into it:

Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.

Thank you for using the Microsoft Fabric Community Forum.

View solution in original post

4 REPLIES 4
v-kpoloju-msft
Community Support
Community Support

Hi @newhopepdx,

Thank you for reaching out to the Microsoft fabric community forum. Also, thanks to @Shahid12523, @danextian, for those inputs on this thread. I reproduced the scenario, and it worked on my end. I used my sample data and successfully implemented it.

vkpolojumsft_0-1756103871920.png

I am also including .pbix file for your better understanding, please have a look into it:

Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.

Thank you for using the Microsoft Fabric Community Forum.

Thanks that's the trick.

Shahid12523
Community Champion
Community Champion

Use SundayDt as the x-axis (continuous).
Create SundayDtLabel = FORMAT([SundayDt], "MM/dd") and set Sort by column → SundayDt.
This way labels show MM/dd, but sort in correct date order.1.png2.png

Shahed Shaikh
danextian
Super User
Super User

Hi @newhopepdx 

If you have the actula date column, use that instead, go to data format and format the date as MM/dd

danextian_0-1756004932742.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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