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
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
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.