The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi, I'm stuck on one of the issues on dates for a long time.
All I want to do is, every time my dataflow refreshes a single row single date column table should also refresh along with it but with the US central time zone displayed on the dashboard.
I'm not able to achieve the CT zone part.
Here is my M code that anyone can replicate
let
Source = #table(type table[Date Last Refreshed=datetime], {{DateTime.LocalNow()}}),
#"Changed Type" = Table.TransformColumnTypes(Source, {{"Date Last Refreshed", type datetimezone}}),
#"Calculated Local Time" = Table.TransformColumns(#"Changed Type",{{"Date Last Refreshed", DateTimeZone.ToLocal, type datetimezone}})
in
#"Calculated Local Time"
Solved! Go to Solution.
If your datetime on the refresh server is consistent, you could just add hours using duration to get your local time.
= [DateTime Column] + #duration(0,6,0,0) // to add 6 hours
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
If your datetime on the refresh server is consistent, you could just add hours using duration to get your local time.
= [DateTime Column] + #duration(0,6,0,0) // to add 6 hours
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.