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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
MP_123
Microsoft Employee
Microsoft Employee

date format in pbi

hi

im connecting direct query to ADW, in the database, i have a date field that for some reason, pbi convert it to date time. (for all dates show date + 12:00AM)

because im in direct, i cant transform the column but i can't tranform when connecting (sql query), im converting the colum and still, pbi add the time

is someone have an idea for me?

thanks a lot

2 ACCEPTED SOLUTIONS

The column has not changed data types,. It is just a format. You can change the format on measures and on individual visualisations. Sorry I don't have my direct query instance in front of me to be more specific. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

@MP_123 Here is the snapshot of options I get in query editor using DirectQuery mode. Are you sure you don't get these options ?

 

2016-05-23_22-39-21.png

 

 

 

 

 

 

 

 

 

View solution in original post

9 REPLIES 9
jirineoral
Post Patron
Post Patron

@MP_123

Matt is right. It is just format. In field list on right side pick date column that displays as datetime and, on ribon go to modeling tab and pick correct format in format drop down

screenshot_pbi.png

Jiri

 

MattAllington
Community Champion
Community Champion

I doubt PBI is converting it to date/time. More likely the column is formatted as date/time (In the same way I can format an integer as a decimal, like 1.00 and 2.00).  

In Power BI, just change the number format to Date, and all should be fine. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

@MattAllington@ankitpatira

 

i know that i can transform a column.. but it disabled in direct query. "The step result in a query that is not supported on a DirectQuery mode" .

and i really checked it a few times, in the DB the data shown in date, and pbi adds the 12:00 AM to all of the data...

 

thanks again.. hope you'll have an idea

@MP_123 as a test, instead of using pbi desktop you can connect straight to adw from power bi service and check that way if it gives same behaviour.

thank you both!!

i understood what the format is... my mistake

 

and anyway, i think the DirectQuery capabilities is due to the data source too

 

thanks again

@MP_123 Here is the snapshot of options I get in query editor using DirectQuery mode. Are you sure you don't get these options ?

 

2016-05-23_22-39-21.png

 

 

 

 

 

 

 

 

 

The column has not changed data types,. It is just a format. You can change the format on measures and on individual visualisations. Sorry I don't have my direct query instance in front of me to be more specific. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

@MattAllington thank you

actually i don't know what do you mean by format, and it's not a measure but date.

i just want to show the date in slicer without the time.

ankitpatira
Community Champion
Community Champion

@MP_123 Can you not click on Edit Queries, go to Query Editor, under Transform tab, change Data Type to Date.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.