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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jja
Helper III
Helper III

Help create relationships on model

Hi

I have folowing tables:

model.png

What i want to do is on table new_components create a column and return linked Treatment value from related data tables.

 

new_treatment,new_ducttreatment and new_constructiontreatment is a raw tables from dataverse where it contains same tipas Value. table concat_treatment is a concatanated table of those 3 earlier mentioned tables so here Tipas is not unique - it has all Tipas and it's related values from those 3 combined tables. table cust_type is just a DISTICT(Tipas) from concat_treatment table.

in table new_components regarding Padengimas i have it in either 3 Separate columns(based on different Tipas) or i have created a calculated column and Concatenated values from these columns. 

in short i want to relate from table new_components columns Padengimas and Tipas and return related Treatment value.

Can you please help to achieve it?

 

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

Hi  @jja ,

"in table new_components regarding Padengimas i have it in either 3 Separate columns(based on different Tipas)" is not very clear, but are you referring to three different [Tipas] in the new_components.

 

You might consider using Power Query – select [Tipas] column - Unpivot Column – to turn it into a column.

vyangliumsft_0-1712636860453.png

vyangliumsft_1-1712636860454.png

According to your description, table concat_treatment is a concatanated table of those 3 earlier mentioned tables, so you can use concat_treatment as a bridge table to connect the rest of the tables to this table via [Tipas].

vyangliumsft_2-1712636879374.png

vyangliumsft_3-1712636879378.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @jja ,

"in table new_components regarding Padengimas i have it in either 3 Separate columns(based on different Tipas)" is not very clear, but are you referring to three different [Tipas] in the new_components.

 

You might consider using Power Query – select [Tipas] column - Unpivot Column – to turn it into a column.

vyangliumsft_0-1712636860453.png

vyangliumsft_1-1712636860454.png

According to your description, table concat_treatment is a concatanated table of those 3 earlier mentioned tables, so you can use concat_treatment as a bridge table to connect the rest of the tables to this table via [Tipas].

vyangliumsft_2-1712636879374.png

vyangliumsft_3-1712636879378.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.