Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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]))
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.
@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.
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.
When I don't include this measure, the components are properly listed.
User | Count |
---|---|
130 | |
108 | |
101 | |
67 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |