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.
Hello
I try to create a datetime based on a IF condition but i can't manage to do it. I would like to transform any datetime that starts after 09 AM to a datetime that starts at 09AM.
I guess it should be simple and i apologize for being so dull
This is the formula i am using :
Problem is "29/05/2020 08h00" is transformed to "29/05/2020 00h00", not to "29/05/2020 09h00".
If anyone has time to help me, i would greatly appreciate it.
Best regards
Solved! Go to Solution.
@Anonymous , Try like
if(hour([datetime])<9 , [datetime].date + time(9,0,0) , [datetime])
@Anonymous , Try like
if(hour([datetime])<9 , [datetime].date + time(9,0,0) , [datetime])
Thank you so much, works like a charm
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 |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |