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
ConorHG
Helper I
Helper I

PowerBI ordering Dates

Hi, 

 

I have two columns an Admission Date and a Discharge Date. 

 

I am trying to do a datediff() between the two columns but I have noticed in the data view that every row of the two columns are the exact same, although they are not the same in the query editor? 

 

Both columns are set as date-time fields, and both are sorted by there own columns. Is powerbi somehow changing the sort of the data? 

I just want the data to look to look the exact same as it does in the source, which it does in the query editor but not in the data view? 

 

Any help would be appreciated. 

 

Thanks, 
Conor.

1 ACCEPTED SOLUTION

Hi All, 

 

Thanks for replies and sorry for the delay in replying. 

Managed to resolve the issue.

 

PowerBI was automatically formatting the columns as DateTime fields but when I converted them to Date fields (as a new step) 

this seemed to resolve the issue. 

 

Thanks, 
Conor.

View solution in original post

3 REPLIES 3
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @ConorHG,

What formula do you use, please share the screenshot as @parry2k posted for further analysis.

Best Regards,
Angelia

Hi All, 

 

Thanks for replies and sorry for the delay in replying. 

Managed to resolve the issue.

 

PowerBI was automatically formatting the columns as DateTime fields but when I converted them to Date fields (as a new step) 

this seemed to resolve the issue. 

 

Thanks, 
Conor.

parry2k
Super User
Super User

caan you share the screen shot? I never seen this, try to refresh data and see if it works.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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