Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Problema con las zonas horarias

Hola, tengo un KPI en mi informe que muestra la última actualización. El problema es que cambia cuando lo publico en el servidor, tal vez es un problema con la zona horaria. Estos son los pasos que he hecho:

1. Script de Power Query:

1.png

2. Resultado de la consulta de energía:

2.png

3. DAX

3.png

4. Resultado del KPI (el tiempo está bien):

4.png

5. Servidor: La información sobre herramientas con Datos actualizados muestra el momento adecuado, pero el KPI en el informe tiene +3 horas.

5.png

¿Qué puedo hacer para arreglar esto?

Gracias

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Solution in Power Query;
 
Source = DateTimeZone.SwitchZone(DateTimeZone.FixedUtcNow(), -4), #"Converted to Table" = #table(1, {{Source}}), #"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "LastRefreshDate"}}), #"Added Custom" = Table.AddColumn(#"Renamed Columns", "AsOf", each "As of "&DateTimeZone.ToText([LastRefreshDate], "MM/dd/yyyy hh:mmtt")),

Show less

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Solution in Power Query;
 
Source = DateTimeZone.SwitchZone(DateTimeZone.FixedUtcNow(), -4), #"Converted to Table" = #table(1, {{Source}}), #"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "LastRefreshDate"}}), #"Added Custom" = Table.AddColumn(#"Renamed Columns", "AsOf", each "As of "&DateTimeZone.ToText([LastRefreshDate], "MM/dd/yyyy hh:mmtt")),

Show less

 
amitchandak
Super User
Super User

@milomilo , compruebe si esta configuración en el servicio power bi puede ayudar

https://support.helpshift.com/kb/article/how-do-i-set-my-timezone-in-power-bi/

Anonymous
Not applicable

Gracias, pero no encuentro esa sección. ¿Dónde se supone que debe estar en el servicio Power BI?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.