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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
KadenB
Frequent Visitor

Converting UTC to Local Time Without Adding New Columns or Using DAX

Hello all.

We have the following issue:

Our dynamics instance is set to CEST time, and we export the database to one in azure, where time is UTC.

 

(We found this  and this, but it does not solve our problem)

 

We are not happy about doing transformations in DAX which include duplicate columns that will remain in the model.

 

Currently, we have been able to use a custom function to convert my dates to the appropriate timezone, however we have several date columns that need this conversion and the duplication of several of these columns will add complexity to our tables as they are already quite large.

 

Is there any possible way to convert the date/time inplace or in a smarter way?

1 ACCEPTED SOLUTION
Gazzer
Resolver II
Resolver II

It's a little bit 'clunky' but you could simply remove the donor columns after creating the duplicated/converted columns, so you would end up with the same number of columns as you started with. You could also rename the new column to the name of the donor column after removing it, so your column names would remain constant.

View solution in original post

3 REPLIES 3
Gazzer
Resolver II
Resolver II

It's a little bit 'clunky' but you could simply remove the donor columns after creating the duplicated/converted columns, so you would end up with the same number of columns as you started with. You could also rename the new column to the name of the donor column after removing it, so your column names would remain constant.

KadenB
Frequent Visitor

@GazzerThank you for your response, however we are curious would deleting the original date columns at the end of the query still maintains the complexity issues of our tables since the query would still need to calculate all of the duplicate date columns even if they are removed at the end of the query?

The reason we would like to avoid this in general is that we have tables with 2-3 million rows and already 10-15 columns so it takes a long time to refresh our data, and we are similarly worried about the impact the calculation of several custom columns may have on our memory. 

 

Kind Regards, 

 

Kaden 

 

 

 

I'm sorry, but I don't know what kind of memory impact you will experience here - I can only suggest to try it and measure the effect.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors