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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
KarenQ
Frequent Visitor

Apply a value filed of one item to a related item using references in a separate table

I have cost of Component A $4 and cost of Finished Goods B $5. A and B share the same Item Code "220".

Since A is part of B in the case, I intend to build a seperate column for Finished Goods B naming " Component A" along side the total cost of Finished Goods B $5. There are thousands of other items with the similar setup. Aiming to finally come up with a Finished Goods table with total cost, components etc. to disiplay the cost breakdown. 

 

Here A is uniquie to B, then maybe more than one FG itmes like B exists, say, C and D. 

A,B,C,D share the uniqure item type code "220"

 

Wonder how to make it happen. 

 

Below an example.

 

 Table 1   Table 2  
 ItemCost  ItemCodeType
A22050 $        4.00  22050220Component
B22050DD001 $        5.00  22050DD001220FG
C22050DD002 $        6.00  22050DD002220FG
D22050DD003 $        7.00  22050DD003220FG
        
        
 Aim to have the below :     
  Cost TotalComponent Cost    
 22050DD001 $        5.00 $                      4.00    
 22050DD002 $        6.00 $                      4.00    
 22050DD003 $        7.00 $                      4.00    
1 ACCEPTED SOLUTION
rubayatyasmin
Super User
Super User

Hey, @KarenQ 

 

Thanks for reaching out. I tried to solve it using PQ. 

 

Here is the output. 

rubayatyasmin_0-1691675422374.png

FindOneItem.pbix 

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


View solution in original post

3 REPLIES 3
rubayatyasmin
Super User
Super User

Hey, @KarenQ 

 

Thanks for reaching out. I tried to solve it using PQ. 

 

Here is the output. 

rubayatyasmin_0-1691675422374.png

FindOneItem.pbix 

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Thanks.

Could you send me the rawdata file?

copied de,o data that you provided for table 1 and table 2.

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.