Forum Discussion
text to time
- 1 year ago
I see you mentioned using Direct query, I would suggest using Native query
1. Creating your model with the property "Direct Query Mode: Off".
-Then, If you create your own query, using Sql.Database()
let database name Source = Sql.Database("MyConnection", "DATABASE", [Query=" SELECT departure_time, -- Convert departure_time (HH:MM) to total minutes CAST(split_part(departure_time, ':', 1) AS INTEGER) * 60 + CAST(split_part(departure_time, ':', 2) AS INTEGER) AS total_minutes FROM transport_schedule "]), // if needed CleanedData = Table.SelectRows(Source, each [total_minutes] > 0) // Example of filtering in CleanedData-Once transformation is done you may switch to "Direct Query Mode: On"
That might work!
Hi Christian2320,
Thanks for reaching out to the Microsoft fabric community forum.
It looks like you are looking for a way to convert text type column to data type column. As Hakuna_matata and Akash_Varuna both already responded to your query, can you please verify if you were able to solve your issue or went through their responses.
I would also take a moment to thank Hakuna_matata and Akash_Varuna, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support Team
If this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.
- Anonymous1 year agoNot applicable
Hi Christian2320,
As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.
If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.