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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
aris
Frequent Visitor

link alternate part numbers

Table A requested part number

partnoqty request
A10

 

Table B alternate partno

partno alternate partno
AC

 

Table C ordered partno

ordernopartnoqty
PO1A5
PO2B3

 

2 visual tables:

1st shows partno and qty request from table A

2nd shows orderno partno and qty from table C

 

I want to make it so that when a partno is highlighed in visual 1, visual 2 shows both partno and alternate partno.

ex. partno A selected, will result in showing PO1 and PO2. if no line is selected then visual 2 is blank.

 

anyone can help me with this? many thanks

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @aris 

 

First add a custom step in Table B to transform it into the following format. 

= Table.Combine({#"previous step", Table.AddColumn(Table.SelectColumns(#"previous step", {"partno"}), "alternate partno", each [partno])})

vjingzhang_1-1687762137458.png

Then create relationships:

Table A (partno) 1-->* Table B (partno)

Table B (alternate partno) 1-->* Table C (partno)

 

Create a measure as a flag. Apply it to the second table visual as a filter and set it to show items when value is 1. 

flag = IF(ISFILTERED('Table A'[partno]),1,0)

vjingzhang_2-1687762597201.pngvjingzhang_3-1687762677187.png

I have attached a sample file at bottom. Hope it helps. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

4 REPLIES 4
aris
Frequent Visitor

i managed 🙂 many thanks again

v-jingzhang
Community Support
Community Support

Hi @aris 

 

First add a custom step in Table B to transform it into the following format. 

= Table.Combine({#"previous step", Table.AddColumn(Table.SelectColumns(#"previous step", {"partno"}), "alternate partno", each [partno])})

vjingzhang_1-1687762137458.png

Then create relationships:

Table A (partno) 1-->* Table B (partno)

Table B (alternate partno) 1-->* Table C (partno)

 

Create a measure as a flag. Apply it to the second table visual as a filter and set it to show items when value is 1. 

flag = IF(ISFILTERED('Table A'[partno]),1,0)

vjingzhang_2-1687762597201.pngvjingzhang_3-1687762677187.png

I have attached a sample file at bottom. Hope it helps. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

hi again 🙂

there seem to be some issue with relations... i cant get it to work. 😕

Would it be possible that you apply to attached and return?

 

https://drive.google.com/file/d/1KjKWkN2cP4UHifM2ijTH2i0RcoBd7Gz-/view?usp=sharing

 

Thank you very much in advance:)

Rgds

Aris

thank you so much v-jingzhang

I am on holiday now, i will check it next week when back. it seems to be exactly what i need but will let you know 🙂 thanks again

 

PREVIEW
 
 
 
 

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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