Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a query that contains two columns:
Currently, the times are associated with the timezone in the Zone ID field. If a time is 06:00 and the Zone ID is America/Chicago, it means it is 6:00 AM CST. I am trying to convert all times to UTC (GMT). To do that, I have:
DateTimeZone.From([times], [Zone ID])
This is giving me the following error:
DataFormat.Error: The specified culture is not supported.
Details:
America/Chicago
I am wondering if anyone has tips on getting around this? I've made sure the report is in English - US format. I'm under the impression you need to use the TZ format. Other things I've tried include creating a new duration column based off the GMT adjustment and adding that. However, that won't work, either!
Hi @willchamp ,
Based on your description, you want to raise a query about time zone conversion using the TZ database format. Your method does not directly support TZ database identifiers (e.g., "America/Chicago") as input to the time zone parameter. This method typically requires a numeric offset from UTC, not a named time zone identifier.
You can create a region column to map to the TZ data to match the offset and then use DateTimeZone.SwitchZone().
DateTimeZone.From - PowerQuery M | Microsoft Learn
DateTimeZone.SwitchZone - PowerQuery M | Microsoft Learn
How-To: Convert UTC to Your Local Time Zone in Pow... - Microsoft Fabric Community
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly