Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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.
User | Count |
---|---|
84 | |
76 | |
64 | |
51 | |
46 |
User | Count |
---|---|
101 | |
42 | |
41 | |
39 | |
36 |