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
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.

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.


@ 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!:
The Definitive Guide to Power Query (M)

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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.