cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
rafaelxkr
Level: Power Up

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
Administrator
Administrator

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

3 REPLIES 3
Administrator
Administrator

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

rafaelxkr
Level: Power Up

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

Administrator
Administrator

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 340 members 4,368 guests
Please welcome our newest community members: