cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wilson_smyth
Helper V
Helper V

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 IV
Super User IV

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

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors