Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Weighted distribution column

Hi,   I need to calculate Sum of Sales for all Clients where a specific product was sold. EX.:   I have a matrix table, with the products as Rows and I need the Total sales, Sum of Sales for all ...
  • v-lili6-msft's avatar
    v-lili6-msft
    6 years ago

    hi  Anonymous 

    Just adjust the formula as below:

     

    All products QTY at Clients where P was sold 2 = 
    var _allclients=VALUES('Sales Table'[Client ]) 
    Return
    CALCULATE(SUM('Sales Table'[Qty]),FILTER(ALLEXCEPT('Sales Table','Sales Table'[Date]),'Sales Table'[Client ] in _allclients))

     

     

     

    Regards,

    Lin