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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Convert a text to DATE/TIME and Date Format - Direct Query

Hi,

 

I have a table called Tracker which is on Direct Query

Loan IDLink Sent On (type Text)Funded On (Type Text)
1

2022-11-05 19:31:58

2022-11-05 19:25:58
22022-11-03 19:31:582022-11-04 19:37:46

 

The Link Sent On and Funded On Column is of type Text.

How do i change the text format to Date/Text and Date 

Since the table is in direct query i couldn't change the format in power query or using format in Dax. 

 

I want the resultant table to be,

 

Loan IDLink Sent On (type Text)Funded On (Type Text)format_Link Sent On_(type Date/Time)format_Link Sent On___(type Dat)
1

2022-11-05 19:31:58

2022-11-05 19:25:58

2022-11-05 19:31:58

2022-11-05 

22022-11-03 19:31:582022-11-04 19:37:462022-11-03 19:31:582022-11-03 

 

Please Help

@Ashish_Mathur 

 

 

 

Thanks,

Dharani

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous You would have to use DATEVALUE in a measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

I do not know to o this in Direct Query.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Community Champion
Community Champion

@Anonymous You would have to use DATEVALUE in a measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi Sir,

 

It is throwing the below error,

 

dharanisrees_0-1670440966198.png

 

If i write it as calculated column, and when i use it as visual, this is what it looks like

 

dharanisrees_1-1670441062766.png

 

Thanks

@Anonymous Wrap your column reference in an aggregation like MAX.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.