Forum Discussion

brinky's avatar
brinky
Helper IV
4 years ago
Solved

Get volume (multiplication)

Hello, I'm trying to get the volume sales as follow however I'm getting the wrong values. I'm using measure 2 to get the sales qty then I'm using measure 4 to get volume however volume values a...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi brinky ,

     

    Try this code.

     

    Measure 3 = 
    VAR _Invoiced_QTY = 
    CALCULATE(SUM(Combined_Sales[Invoiced_QTY_PU]),FILTER(Combined_Sales,Combined_Sales[Return_Reason] in {1,BLANK()}))
    VAR _Volumn = CALCULATE(SUM(Volume[Volume]),FILTER(Volume,Volume[CSB_ID_Code] = MAX(Combined_Sales[CSB_ID_Code])))
    RETURN
    _Invoiced_QTY*_Volumn

     

    Result is as below.

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.