Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Dear Reader,
I'm trying to confert a Desktop Dashboard to a Direct Query Dashoard since I could not find a proper way to refresh every 15 minutes automatically. Now in Desktop i used the following DAX code:
Shift_date = format(if((TBM_PRODUCTION_DATA[ProducedOn]-TBM_PRODUCTION_DATA[ProducedOn].[Date])<0.25,TBM_PRODUCTION_DATA[ProducedOn].[Date]-1,TBM_PRODUCTION_DATA[ProducedOn].[Date]),"dd-mm-yyyy")
In direct querry in cannot use the Format command, so I tried to change the format (ribbon) from Date/time (1/25/2019 1:23:29 PM) to Date (1/25/2019) when i plot the result in a table it actually only shows the Date, BUT when i plot as x-as in a graph all of a sudden it does not have seem to forgetten the time. I appreciate all solutions.
reg martijn
Solved! Go to Solution.
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 @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,
Did you ever get a solution for this issue?
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
I dont have access to the database and was looking into implementing this change using power query customr column
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |