Forum Discussion
_power_bi
1 year agoHelper I
Power Query reading date as datetime datatype while using Direct Query
I have a very large table that I have to use direct query. The source is SQL Server. One of the fields is a datetime. When I connect to this source, it reads the field as datetime. This doesn't work...
Kedar_Pande
1 year agoSuper User
You can create a calculated column
Date_Only =
DATE(YEAR('YourTable'[DatetimeField]), MONTH('YourTable'[DatetimeField]), DAY('YourTable'[DatetimeField]))
After creating this column, you can now use this column (Date_Only) to join with your Date dimension table.
If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
_power_bi
1 year agoHelper I
"the step results in a query that is not supported in directy query mode"