Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I'm trying to create a custom column using
DateTime.AddZone([Time],0) this formula , but getting error
Solved! Go to Solution.
DateTime.AddZone adds timezone information to the dateTime value. Is your [Time] column in datetime type? If not, it will cause an error. For example, if the [Time] column is Time type, it will have the following error.
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
DateTime.AddZone adds timezone information to the dateTime value. Is your [Time] column in datetime type? If not, it will cause an error. For example, if the [Time] column is Time type, it will have the following error.
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Click in the cell beside the error please, and post it.
Also, can you show us what the column looks like before the error step?
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |