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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Claudineysilva
Regular Visitor

DAX - criar coluna de outra tabela relacionada

Boa Tarde!

tenho duas tabelas em meu projeto elas extão relacionadas no dax.
Necessito cria uma coluna onde o valor dela será o valo da coluna da outra tabela.

ex:
Tabela 1
- Pedido

- Data

- Cod Processo

 

Tabela 2

- Nome Diretor

- Cod Processo

- Nome Head

 

As tabelas estão relationship2 através do campo Cod Processo.
Desta foma necessito criar na Tabela 1 uma coluna com nome Diretor da Tabela 2

1 ACCEPTED SOLUTION
v-jiewu-msft
Community Support
Community Support

Hi @Claudineysilva ,

If I understand correctly, the issue is that you want to create a column in Table 1 with the Director from Table 2. Please try the following methods and check if they can solve your problem:

1.Create the simple Table 1 and Table 2. 

vjiewumsft_0-1706578367653.png

vjiewumsft_1-1706578383272.png

2.Relationship between two tables.

vjiewumsft_2-1706578394980.png

3.Select the Table 1 and add the new column. Enter the following DAX formula.

Column = RELATED('Table 2'[Nome Diretor])

4.Drag the column to the Table visual.

vjiewumsft_3-1706578432072.png

5.The result is shown below.

vjiewumsft_4-1706578440468.png

 

Best Regards,

Wisdom Wu

 

 

 

View solution in original post

1 REPLY 1
v-jiewu-msft
Community Support
Community Support

Hi @Claudineysilva ,

If I understand correctly, the issue is that you want to create a column in Table 1 with the Director from Table 2. Please try the following methods and check if they can solve your problem:

1.Create the simple Table 1 and Table 2. 

vjiewumsft_0-1706578367653.png

vjiewumsft_1-1706578383272.png

2.Relationship between two tables.

vjiewumsft_2-1706578394980.png

3.Select the Table 1 and add the new column. Enter the following DAX formula.

Column = RELATED('Table 2'[Nome Diretor])

4.Drag the column to the Table visual.

vjiewumsft_3-1706578432072.png

5.The result is shown below.

vjiewumsft_4-1706578440468.png

 

Best Regards,

Wisdom Wu

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.