Forum Discussion

floarea_pitu's avatar
floarea_pitu
Frequent Visitor
3 years ago
Solved

Calculating Intake value for a product

Hello, can you please help me with the folowing question? How can I calculate the Target Intake? What formula for measure should I use? Thank you!

IntakeProductTargetTarget Intake
JanuaryA100(Target A+Target B) for January Intake
JanuaryB100(Target A+Target B) for January Intake
MarchA200(Target A+Target B) for March Intake
MarchB150(Target A+Target B) for March Intake
  • Hi, floarea_pitu ;

    Try it.

    Target Intake = CALCULATE(SUM('Table'[Target]),ALLEXCEPT('Table','Table'[Intake]))

    the final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies

  • Hi floarea_pitu ,

    try with this measure

     

    CALCULATE(

           SUM('Table'[Target]),

         ALL('Table'[Product])

     )

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

    • floarea_pitu's avatar
      floarea_pitu
      Frequent Visitor

      I just tried, it doesn't work, I obtain the same values as in the target column....

       

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Community Support

    Hi, floarea_pitu ;

    Try it.

    Target Intake = CALCULATE(SUM('Table'[Target]),ALLEXCEPT('Table','Table'[Intake]))

    the final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.