Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Power BI stores dates and times as a number representing the number of days since 1900-Jan-0 , plus the fractional portion of a 24 hour day: ddddd.tttttt . The values to the left of the decimal place is the number of days and the value to the right of the decimal place is the decimal representation of the 24 hr clock.
So for eg if you want to subtract 4 hrs from the Now() or UTCNOW() function , 4/24 = 0.16667 , so your DAX would be
now() - .16667
similarly if you would like to subtract 5 hrs it be 5/24 = 0.20833
now() - 0.20833
Hope this helps someone
Hi @yuvaraj86 ,
Thanks , it is really helpful.
Also , a link of how it can be done in Power Query
https://community.powerbi.com/t5/Desktop/Convert-utc-to-local-time-zone-using-Power-Query/m-p/555571
Regards,
Harsh Nathani
User | Count |
---|---|
59 | |
22 | |
18 | |
18 | |
16 |
User | Count |
---|---|
85 | |
54 | |
45 | |
39 | |
21 |