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.
Issue moved from the old issue site.
In Power Query - Edit queries you can select a column with data type date/time/timezone and then choose for Transform - Date - Age.
This will generate code like:
= Table.TransformColumns(SampleData,{{"DateTimeZone1", each DateTime.LocalNow() - _, type duration}})
which will generate errors due to different data types.
My suggestion would be
either not allow Age calculation for date/time/timezone data,
or have working code generated like:
= Table.TransformColumns(SampleData,{{"DateTimeZone1", each DateTimeZone.From(DateTime.LocalNow()) - _, type duration}})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.