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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
supersharp
Regular Visitor

Direct Query - Date Format

I am using both Impot and DQ to insert the same table from Azure SQL DB. Both are showing date/time columns in PowerQuery with the correct data type, however when I go to the report the DQ does not show the date/time format. It also appears as a date/time format in the toolbar. Tried all sorts of data conversion methods - any ideas?

 

Date/Time Columns: TimeInserted, TimeRefreshed. Top table is Import.

 

PowerQuery look at DQ table - correct format:

supersharp_1-1630288258376.png

 

Report view of Query Table - incorrect format:

supersharp_0-1630288239371.png

Data type: correct format?

supersharp_2-1630288396322.png

 

 

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @supersharp ,

  • Auto date/time is unavailable in DirectQuery. For example, special treatment of date columns (drill down by using year, quarter, month, or day) isn't supported in DirectQuery mode.

details information refer,the following article tells limitations of use Direct Query:

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery 

 

 

Best Regards

Lucien

amitchandak
Super User
Super User

@supersharp , First of all, make sure it is datetime in power query and then in Column tools(Data tab). I am not seeing a calendar icon , so bit doubtful.

 

Also you can choose a format of you choice in column tools. Choose one with datetime 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak - I tried all those as per the images.

- PowerQuery shows the columns as date and time

- Column Tools shows it as date/time too

- However, in the Report View - Fields Pane, I do not have get date hierarchy to work with - which is odd (see the field selector second table). The exact same table is showing the date/time hierarchy when using Import Mode.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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