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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Veles
Advocate V
Advocate V

Region date query problems - Desktop vs. Dataflow - Cannot convert value #date to type Text

Hi,

 

Trying to turn a query I have on desktop into a dataflow. The main issue I am having now is that my date formats are dd/mm/yyyy which on my desktop query doesn't cause any problems. When I recreate the query in a dataflow I get a conflict of the data formats (it looks like dataflow is ignoring our region setting).

 

To get around this I'm trying to change the query step so instead of changing the column type to date I'm trying to put in a custom column using the #date function. I'm hoping this will get around the region issues.

 

= Table.AddColumn(#"Added Prefix", "Order Date1", each 
#date( 
    Number.FromText(
        Text.End([Order Date],4)
    ),
    Number.FromText(
        Text.Middle([Order Date],4,2)
    ),
    Number.FromText(
        Text.Start([Order Date],2)
    )
),type date)

However, I'm getting the below error

Capture.PNG

 

 

Not sure why this is happening as I'm not trying to convert to text Smiley Frustrated

2 REPLIES 2
Anonymous
Not applicable

What you need to do is use the change type with locale, this can be done when you right click on the column go to the change type drop down and click with locale.

 

I do not know of a way to do locale type changes using the "type date" synatx.

I had never spotted that before! Brilliant stuff I'll give that a go.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors