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
Anonymous
Not applicable

How to add a column in a table from another table

Hello guys,

 

I have this table here, that has these columns which I union from the SQL Query:

 

select distinct


aa.*

from (
select
cod_grupo_empresa,
hashcodevida,
data_ref

from tb_contaspagas

union all

select
cod_grupo_empresa,
hashcodevida,
data_ref
from tb_cadastro


) as aa

but now I want to add a extra column, however, it only exists in one of the tables mentioned in the SQL Query, which doesn't allow me to add it on the query since it requires the same number of columns, in order to union the tables. Is there any way that I can bring this extra column to my table using DAX?

1 ACCEPTED SOLUTION
judspud
Solution Supplier
Solution Supplier

Hi @Anonymous ,

 

You can import the table that contains the additional column as a separate query and merge the column to the table using the merge function in query editor

 

Thanks,

George

View solution in original post

1 REPLY 1
judspud
Solution Supplier
Solution Supplier

Hi @Anonymous ,

 

You can import the table that contains the additional column as a separate query and merge the column to the table using the merge function in query editor

 

Thanks,

George

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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