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
nrk001
Regular Visitor

Sort Date axis (Year, Month, Day) on app.powerbi.com

Hi Team, I'm directly pushing the data from streaming job and creating a report on app.powerbi.com

 

Would like to know how to sort hierarchies in a correct way? From the timestamp, I've extracted Year, Month & Day columns.

 

I'm getting the below output,

 

2017 Feb 1,

2017 Jan 29,

2017 Jan 30,

2017 Jan 31

 

Correct sort output,

2017 Feb 1,

2017 Jan 31,

2017 Jan 30,

2017 Jan 29

 

Please assist!

 

Best Regards

1 ACCEPTED SOLUTION

Thanks for the response! What I've done is I've extracted Month (as varchar), Day (as Int) and Hour (as Int) such that I can sort on continuous variables and still have the desired sort order and it worked.

 

Best Regards

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @nrk001,

In Power BI Service, I am afraid that you are not able to achieve the above requirement.

In Power BI Desktop, you are able to add another column defining orders for the date field  to your dataset, then use the Data Tools Modeling tab to sort date column by the newly added column. For more details, please review this blog.


Thanks,
Lydia Zhang

Thanks Zhang for the response!

 

Challenge is that the streaming dataset cannot be connected to Power BI desktop to create a custom sort column.

Is there a workaround which can be implemented?

 

Best Regards

 

Anonymous
Not applicable

Hi @nrk001,

I am afraid that there is no workaround in Power BI Service side.

Thanks,
Lydia Zhang

Thanks for the response! What I've done is I've extracted Month (as varchar), Day (as Int) and Hour (as Int) such that I can sort on continuous variables and still have the desired sort order and it worked.

 

Best Regards

 

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 Kudoed Authors