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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
rpinxt
Impactful Individual
Impactful Individual

Using UNION to create new table

We have a lot of data in a table and wanted to split it in 2 part.

Because all the old data will not change anyway so we decided to put 2 years in a separate excel sheet with exactly the same layout as the original one.

 

First I did a append to combine the latest year data with the history data.

That works fine however Append will always refresh the historic data apparantly, also when you switch of load on refresh.

 

So looking around I found you could use UNION to combine the historic data with the new data.

Load in the historic file once and then switch of the refresh for that table.

 

What I now run into is the fact that UNION has changed the format of my columns!

My amount/value columns all changed to text.....

Why is it doing that and how can I tell it to use the original column formatting of the sources?

1 ACCEPTED SOLUTION
rpinxt
Impactful Individual
Impactful Individual

@Greg_Deckler yeah must be something strange. Started from scratch with just the 2 excels and doing a union.

Of course nothing strange there.....union is fine, amounts are amounts, dates are dates...

 

Must be all the other stuff that already has been going on in the existing file.

Also manually changing the fields back resulted time on time for new problems somewhere else.

 

Think it is better to just start clean and rebuild what I already had. Not that big of  problem as I already have the example from all the visuals.

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@rpinxt You can just switch the data types on the created calculated table. Not sure why it would be switching them to text, I can't recreate that behavior. See attached.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
rpinxt
Impactful Individual
Impactful Individual

@Greg_Deckler yeah must be something strange. Started from scratch with just the 2 excels and doing a union.

Of course nothing strange there.....union is fine, amounts are amounts, dates are dates...

 

Must be all the other stuff that already has been going on in the existing file.

Also manually changing the fields back resulted time on time for new problems somewhere else.

 

Think it is better to just start clean and rebuild what I already had. Not that big of  problem as I already have the example from all the visuals.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.