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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Adding Kit Component Costs to Compare

I am brand new to Power BI and am trying to match soon to be outdated company reports. One of the services we provide is product kits comprised of several other kits. The only functionality I am unable to mirror is adding the costs of the components to compare with the stored cost of the master kit. I would like the TTL CC of Components to be the sumproduct of ComponentCurrentCost and Quantity for the MasterItemNumber.

 

TTL CC of Components = CALCULATE(SUMX(vwFactKitComponentCurrent,vwFactKitComponentCurrent[Quantity]*RELATED(DimInventoryItemComponent[ComponentCurrentCost])))

 
 

 

 

I have tried using ALL to return all of the component table, but to no avail. It returns the same result. 

TTL CC of Components = CALCULATE(SUMX(vwFactKitComponentCurrent,vwFactKitComponentCurrent[Quantity]*RELATED(DimInventoryItemComponent[ComponentCurrentCost])), ALL(DimInventoryItemComponent[ComponentItemNumber]))

 

 

 

image.png

 

Ideally whatever the solution, I would then be able to filter/sort by the difference between the summed cost and the stored cost of the Kit. 

image.png

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You may modify the measure using dax below:

TTL CC of Components =
CALCULATE (
    SUMX (
        vwFactKitComponentCurrent,
        vwFactKitComponentCurrent[Quantity]
            * RELATED ( DimInventoryItemComponent[ComponentCurrentCost] )
    ),
    ALL ( DimInventoryItemComponent )
)

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

@v-yuta-msft 

 

The issue is that now returns every component number in the component table for each master number even though the relationship table has relationships defined.

 image.png

When I don't include this measure, the components are properly listed. 

image.png

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors