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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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