Hi everyone its me again.. 
I wanna ask something easy and simple :D
I have two table, the first one is sales table:
The second one is the dim product:
I created a relationship between sales table and dim product through "Dim Product" Column.
After that I created a calculation sum of quantity:
and I want to create another calculation like this:
but it doesnt work at all,
Actually The simplest way is create another column in sales table that calculate quantity*(lookupvalue or related function to get price), but i dont want to do that.
i want to do that calculation in measure, is that possible?
Well the logic is very easy, i just want to calculate Gross sales(Qty*Price) from each product.
Can you help me?
Sorry for my bad english
Thanks,

I wanna ask something easy and simple :D
I have two table, the first one is sales table:

The second one is the dim product:

I created a relationship between sales table and dim product through "Dim Product" Column.
After that I created a calculation sum of quantity:
Code:
[B]sum qty[/B]:=SUM([Quantity])
and I want to create another calculation like this:
Code:
[B]sum gross[/B]:=[sum qty]*LOOKUPVALUE(DIM_PRODUCT[PRICE],DIM_PRODUCT[DIM PRODUCT],SALES[PRODUCT]
Actually The simplest way is create another column in sales table that calculate quantity*(lookupvalue or related function to get price), but i dont want to do that.
i want to do that calculation in measure, is that possible?
Well the logic is very easy, i just want to calculate Gross sales(Qty*Price) from each product.
Can you help me?
Sorry for my bad english
Thanks,
Last edited: