cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
rafael1xkr Frequent Visitor
Frequent Visitor

Localtime don't work in Data Flow

I had had a problem with date utc transform in date and hour local

In Power BI Desktop don't have problem, but in Data Flow don't work

Power BI Desktop change hour to my local
Power BI Desktop.png

 

But in Power BI Service o Data Flow don't change
Data Flow.png

I configured in my location in options
Opçõesw.png
Why is it different in Power BI Desktop and Data Flow?Dataflow

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Localtime don't work in Data Flow

Hi @rafael1xkr ,

SwitchZone function not real changes stored date time, it only change displayed datetimezone of datetime values.
For power bi service, it will convert to UTC format. So these values you used SwitchZone function to modify display timezone format will change back to UTC format.

Notice: if you direct calculate on these datetime values, they will keep changed datetime value and convert to UTC format.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Localtime don't work in Data Flow

HI @rafael1xkr ,

AFAIK, current power bi service only support UTC datetime format. If your table contains datetime with local timezone format, it will be converted be UTC formula.

For your scenario, I think 'localidate' not means the data flow datetime zone regions.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
rafael1xkr Frequent Visitor
Frequent Visitor

Re: Localtime don't work in Data Flow

Other example, I used a score card to inform last update

I created the formula in M

= DateTimeZone.SwitchZone(DateTimeZone.LocalNow(),-3,0)

When I updated in Power BI Desktop it return the hour correct
But when update in Power BI Service don't consider timezone

Image below you can see in Power BI Service don't consider timezone of -03:00

Erro Update.png

Community Support Team
Community Support Team

Re: Localtime don't work in Data Flow

Hi @rafael1xkr ,

SwitchZone function not real changes stored date time, it only change displayed datetimezone of datetime values.
For power bi service, it will convert to UTC format. So these values you used SwitchZone function to modify display timezone format will change back to UTC format.

Notice: if you direct calculate on these datetime values, they will keep changed datetime value and convert to UTC format.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)