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.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |