Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 2 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Most of the times while importing date data from different sources the format is in UTC time format. For the accurate reporting and visuals in Power BI dashboards we need to have this in local time format. In this post we will see how you can convert the UTC date data into local time format.
For example if we have the following Opportunity data from Dynamics CRM, there is a column called EstimatedCloseDate which is in the UTC format. We want to convert this date into our local time zone format.
First of all lets rename this column to EstimatedCloseDateUTC. Then go to the “Transform” tab in the ribbon and change its datatype to Date/Time/TimeZone. Next we can use the Add Column transformation to insert new column in the Query. To do this, we can go to the Add Column tab in the ribbon and click on the Date->DateOnly menu item. This will add a second column with the date as shown below.
When you add this transformation the following M code was generated for this step.
= Table.AddColumn(#”Changed Type”, “Date”, each DateTime.Date([EstimatedCloseDateUTC]), type date)
In this M code we need to manually replace the DateTime.Date function with the DateTimeZone.ToLocal function. Next the data type of this new column can set to Date Only. When this is done we get the following result
To finish we can remove the EstimatedCloseDateUTC column and rename Date to EstimatedCloseDate.
And thats it , you have successfully transformed a UTC time format date to your local time zone format.
Business Applications communities