Forum Discussion
Direct Query - transform Date TIme to Date
- 7 years ago
Hi martijnth,
Could you have tried use the measure with FORMAT function? Based on my test, it could work on my side:
You can use the Format function in DQ mode if you go to Options -> DirectQuery and click "Allow unrestricted measures in DirectQuery mode". Note that this will enable other functions whose performance is poor in DirectQuery mode, so save often.
Regards,
Daniel He
Hi Daniel, thanks for your support, I made the changes in the options however, now I get the following notice:
something similar happens when I try to use RELATE in direct query:
the relation between the direct query SQL and the Related Excel is there....
Any advise is appreciated.
reg martijn
copied wrong picture above,
- Anonymous3 years agoNot applicable
Did you ever get a solution for this issue?
- martijnth3 years agoHelper II
well i actually solved it by using a native querry in SQL, something like
SELECT FORMAT (getdate (), 'dd/MM/yyyy ') as date
or look here:
https://www.mssqltips.com/sqlservertip/1145/date-and-time-conversions-using-sql-server/
u use this command like:
than it works. Good luck
- Anonymous3 years agoNot applicable
I dont have access to the database and was looking into implementing this change using power query customr column