Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello!
I have the following datamodel:
Now what I am trying to do Is look at an itemno in the items table, check for that items related parent items in the Bom components table. Take the itemNos parent item(s) and use them to filter the postedsalesinvoice table and then calculate the sum of the quantity column in the postedsalesinvoice table.
The relationships are all built on the itemno column. itemno in postedsalesinvoice is just "no".
To clarify, the Bom components table is in this case used to store Parent items. So if I have an itemno called "Item1" on the rows in a matrix visual. I want the measure to look at Item1's parentitems and calculate the total quantity sold for those parentitems.
I tried the following but it did not work:
Hi, @JackMarten
Based on your description, you already have a basic understanding of your needs, but there are a few more points that you need to confirm:
Your needs:
1.ultimately want to get the quantity column in the postedsalesinvoice table.
2. realize a matrix, in the matrix can see ItemNo parent_Item_No
Doubtful:
1. what are the specific relationship fields of the three tables
2. I don't see a quantity column in the postsalesinvoice table.
3. most importantly, I hope you can upload the pbix file without sensitive data or provide the datasheet that approximates your goal.
Best Regards,
Yang
Community Support Team
Hello 🙂
The quantity column for the postedsalesinvoice table is present you just cant see it in the screenshot. However I am not able to upload the pbix since it doesn contain some sensetive data. I did however manage to get it to work with the following measure:
It is probably pretty bad in terms of optimization but it did the trick.
The item table and bomcomponents table has a relationship on the itemno field.
The item table and the postedsalesinvoice table has a relationship from 'items'[itemno] to 'postedsalesinvoice'[no].
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 12 | |
| 10 |