I am trying to calculate sum from a calculated field
sum(Productions201801.Piece * Item.Factor) (sql code)
This is the DaxQuery for calculate simple the Sum. All table are in directly ralation with the Fact Table (Productions201801)
EVALUATE CALCULATETABLE (
SUMMARIZE (
Productions201801,
Times[TimeID],
Color[Code],
st[Name],
OOR[OOCode],
"Qty", SUM ( Productions201801[Pieces] )
),
st[Name] = "Bor1",
OOR[OOcode] = "OO-1" ) ORDER BY
[TimeID],
[Code],
Now I want to modify the dax query for SUM value this
SUM ( Productions201801[Pieces] * Item[Factor])
but Item table is not directly related with table Productions201801, is realted with table OOR by Id filed.
Someone can help me to find the right solution?
Add Realtion image enter image description here