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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ottmar_W
Helper I
Helper I

Dates in chronological order

Hey,

 

 

By making a line graph I have some difficulties by ranking my dates in chronological order. 

PowerBI.png

How can I solve this problem? I have this with all of my Line Graph i'm making.

 

Thanks in advance!

1 ACCEPTED SOLUTION

HI 

In the Datamodel just you add custom column 

DateKey = ([Year]*10000)+([Month Nbr]*100)+[DayOfMonth])

 

Then go to your report designer and select datecolumn and choose sortby and select DateKey 

 

Hope this will work 

View solution in original post

8 REPLIES 8
BalaVenuGopal
Resolver I
Resolver I

Generate Datekey and select your date column and sort by Datekey it will order your date

@BalaVenuGopal how can I do that? 

thanks in advance

HI 

In the Datamodel just you add custom column 

DateKey = ([Year]*10000)+([Month Nbr]*100)+[DayOfMonth])

 

Then go to your report designer and select datecolumn and choose sortby and select DateKey 

 

Hope this will work 

@BalaVenuGopal

Hi,

 

Is there a possibility that you can make it for me?

Because I really don't understand what I need to do.

 

Thanks in advance

 

 

Hi,

 

Thanks for all the help! 

 

 

Please make this status resolved like my answer if it works for you happy to share knowledge !!!!!!

v-chuncz-msft
Community Support
Community Support

@Ottmar_W,

 

You need to convert the data type from text to date/time.

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

@v-chuncz-msft how can I do that?

 

Thanks in advance

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.