Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
From below table i want to calculate sum(Price) for each unique ItemID price must come only once.
Means result will be sum(Price)=80 not 170
ItemID Price
1 10
1 10
1 10
2 20
2 20
3 50
3 50
=Sum(Aggr(Only(Price), ItemID))
Maybe
=Sum( Aggr( Only(Price), ItemID))
But I would rather fix this in the data model, seems like you joined a table where a linked table might be better.
may be:
Take ITemID as a Dimension
Expression: sum(<total ITemID> Price)
Thanx to all guys