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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
robofski
Resolver II
Resolver II

Bill of Materials and Monthly Part Cost

Hi All,

 

I have a Bill of Materials table:

 

Part#Qty
PartA2
PartB3

 

I also have a Part Costs table with the part cost each month

 

Part#YearMonthCost
PartA2019011.25
PartA2019021.3
PartA2019031.5
PartB2019012.6
PartB2019022.1
PartB2019032.7

 

I'm trying show the effect of a price change which is very different if the price goes up $1 and you use 1 of them in an item vs going up by a $1 and use 100 of them in a item.

 

Any ideas?

7 REPLIES 7
v-lionel-msft
Community Support
Community Support

Hi @robofski ,

 

"I'm trying show the effect of a price change which is very different if the price goes up $1 and you use 1 of them in an item vs going up by a $1 and use 100 of them in a item."

I don't particularly understand the effect you want to achieve.

Could you describe in more detail the visual effect you want to achieve? It is best to show it with an example table.

 

Best Regards,
Lionel Chen

@v-lionel-msftmy BOM table earlier was probably incomplete, really it looks more like:

 

Part#Component Part#Qty
12345PartA2
 PartB3
56789PartA100
 PartB3

 

So the resulting table would be something like:

 

YearMonthPart 12345Part 56789
2019012.5125
2019022.6130
2019033150
2019017.87.8
2019026.36.3
2019038.18.1

 

Show that the small price rise in component PartA has a much bigger impact on the cost of Part 56789 than it does on the cost of part 12345 due to the fact Part 56789 uses significantly more of PartA.

 

Make more sense?

 

Hi @robofski ,

 

How is the data in my circle calculated? Could you give me a mathematical formula?
ff4.PNG

 

Best regards,
Lionel Chen

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

@v-lionel-msftSorry both entries should have been added together to get the total cost for the Parent Part so the table should have been

 

YearMonthPart 12345Part 56789
20190110.3132.8
2019028.9136.3
20190311.1158.1

 

Basically

Parent Part Cost = SUM(Component Part Qty X Component Part Cost)

Aron_Moore
Solution Specialist
Solution Specialist

I would guess the Bill of Materials table has a date column.

 

You could create a 'key' with part and date and join the tables, or use the key to LOOKUPVALUE the cost that way.

@Aron_Moorethe BOM table doesn't have a date as it's static data and doesn't change, I do see where you're going though, and I guess I could add fields to that table to represent the months and then do the calculation by looking up the value for that month.  Ummm....Thanks for the idea!

If that's the case, join the tables Part # to Part # and you should be able to create a measure Qty x Cost.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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