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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
user_dil
Frequent Visitor

Customised Dates

Hi All,

 

I'm trying to create a simple line chart with a customized date format using as the X-axis. 

Date type: Dec 1- Th, Dec 2-Fr, ....., Jan 31-Tu, Feb 1-We, Feb 2-Th likewise up to current date.

 

I was able to create the date format by merging the relevant columns. But the issue I'm facing is how to sort them correctly.

 

Hope someone can give me guidance on that.

Thanks!

 

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @user_dil 

you can get the column with one step, like:

Column = FORMAT([Date], "mmm-dd") &"-"& LEFT( FORMAT( [Date],"ddd"), 2)

 

to sort a visual, you can still pull the original [date] column to the tooltip of the visual and use the [Date] column to sort the axis. 

View solution in original post

3 REPLIES 3
FreemanZ
Super User
Super User

hi @user_dil 

you can get the column with one step, like:

Column = FORMAT([Date], "mmm-dd") &"-"& LEFT( FORMAT( [Date],"ddd"), 2)

 

to sort a visual, you can still pull the original [date] column to the tooltip of the visual and use the [Date] column to sort the axis. 

danextian
Super User
Super User

Hi @user_dil ,

 

Does the table that has this calculated column have an actual dates column? If so you can create a calculated column to sort the custom date format by

=( 'Table'[Date], "mmdd" )




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.

Hi @danextian 

I did as you said but not getting the sort as I want.

 

user_dil_0-1675400772689.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.