Forum Discussion

ADSL's avatar
ADSL
Icon for Post Prodigy rankPost Prodigy
4 years ago
Solved

Total Sum Sales Target by Sales Rep

Dear All BI Expert,   As per screenshot attachment I am trying to total sum sales target by sales rep but when I create the measure below, it's not by sales rep and get the grand total. Could you p...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi ADSL ,

     

    According to your statemenet, I know that you want to sum the sales target grouping by Sales Rep. Here I suggest you to try ALLEXCEPT() function in your code.

    Total Sum Sales Target by Sales Rep =
    CALCULATE (
        SUM ( 'Sales Target'[Target_Amount] ),
        ALLEXCEPT ( 'Sales Target', 'Sales Target'[SalesRep Name] )
    )

     

    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.