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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
wilson_smyth
Post Patron
Post Patron

Why does powerbi desktop append 00:00 to my date field?

In my date dimension i have a Date column. In the database this is just a date, not a date time. When i try to filter based on this date column in powerBIDesktop however, i have to select 00:00:00 as the time or i get no values back. PowerBIDesktop is appending on a time value that shouldnt be there and doesnt exist. - why is this added? - is there a way I can disable it? Note, i tried using a string version of the date, but it is sorted incorrectly in the powerBIDesktop filter panel. its sorted correctly in the tabular database but PowerbiDesktop ignores this.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Edit your query, select the column and switch it to "Date" versus "Date/Time". This is the "Data Type" in the Transform area of the ribbon.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Edit your query, select the column and switch it to "Date" versus "Date/Time". This is the "Data Type" in the Transform area of the ribbon.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

im not using power query, im querying the data model directly.

I'm not understanding what you are saying here. You are using Power BI Desktop, correct? When you create your query in Power BI Desktop (which is basically "Power Query" in Excel terminology), instead of just next, next finishing your way through, enter the path to your data source, choose "Edit" button that appears in bottom right of the preview window. Then, you can choose your column and set the data type as described. Then choose "Close & Apply" from the ribbon.

 

If you already have your query created, then on your "Home" tab, you can click "Edit Queries" in your "External Data" area of the ribbon and do the same thing.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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