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
feralvarez994
Helper II
Helper II

UTC TODAY CHANGE HOUR

Hi everyone! I have an issue here

 

I have published a report in PBI Service that have some dax formulas with TODAY(). The thing is that at 21 o'clock in Argentina, the values return 0 because it changes the day in Service, but in Argentina its still the day before for 3 hours else. I need PBI Service to manage the day as it is in Argentina (from 00:00 to 23:59 Argentina timezone) that it's from 03:00am to 02:59am UTC time (Argentina is -3 UTC Time).

 

I have a column (DEMORA RVA) that counts the delay (in days) between today and the booking day, so when

- Delay is 0 =   booking day -> TODAY 

- Delay is 1 =  booking day -> Yesterday (in working days)

 

The DAX formulas that i use

 

DEUDA NUEVA AYER =
VAR asd =            CALCULATE (SUM ( RESERVA[RE_SALCONT] ), RESERVA[DEMORA RVA] = 1)
RETURN                 IF ( ISBLANK ( asd ), 0, asd )
 

I dont have the hour in the date column, only the date. How can I change the today in PBI Service so it shows today in LocalTimeZone?

 

thank you all!

2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @feralvarez994 ,

Current power bi service only support UTC datetime. It not contain any features can auto transform datetime based on location.

 

Maybe you can vote at below idea submitted by other user:

Handle local time zone in Power BI service

 

I have also found a similar post, please refer to it to see if it helps you.

display date/times in local timezone rather than UTC 

  • you can create a custom column in Query Editor  DateTime.LocalNow() and #duration() function.

https://docs.microsoft.com/en-us/powerquery-m/sharpduration 

For example:

DateTime.LocalNow()+#duration(0,2,0,0)

 

changing timezone of powerbi service? 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

otravers
Community Champion
Community Champion

TODAY() in the Power BI service is always computed against UTC so you'll have to add offset logic in your report.

https://docs.microsoft.com/en-us/dax/now-function-dax

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

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.

Top Solution Authors
Top Kudoed Authors