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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Analytics1
Frequent Visitor

Date format in Direct Query not working

Hi,

I am using a direct query setup to make my dashboard and the date in the SQL table is in the format "dd-mm-yy" (example: 25-01-23).

 

I changed the date format in the front end of Power BI Desktop as shown below (snippet 1) and then load the column in a table. However, I am getting a "out of range" error (snippet 2). Can anyone please help.

 

Please note that the exact same process works when using import mode (without using Power Query).

 

Snippet 1

Analytics1_0-1680675803111.png

 

 

Snippet 2

Analytics1_1-1680675846150.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Analytics1 ,

Please try to get  it as a TEXT rather than DATE datatype in Power BI.

 

I have also found a similar post, please refer to it to see if it helps you.

Solved: Text to date conversion problems - Microsoft Power BI Community

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Analytics1 ,

Please try to get  it as a TEXT rather than DATE datatype in Power BI.

 

I have also found a similar post, please refer to it to see if it helps you.

Solved: Text to date conversion problems - Microsoft Power BI Community

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.