Forum Discussion

sn64's avatar
sn64
New Member
3 years ago

Sumx across multiple tables

Hello,

    I have 2 tables that i'm having trouble creating a correct calculation for commission with.  One table contains the month, year, client number and sales amount for product 1, 2 and 3.  The second table shows the client number, the sales entity number that receives commission for that client, and which percent of sales for product 1,2 and 3 that sales entity receives commission for.  As an example sales entity 1 receives commission for 1% of client # 1's product # 1 sales, and .5% of their product # 2 sales etc.  Any help would be greatly appreciated, happy to further explain if needed.

 

Thank you

 

 

3 Replies

  • v-zhangti's avatar
    v-zhangti
    Community Support

    Hi, sn64 

     

    Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. I look forward to your response.

     

    Best Regards,

    Community Support Team _Charlotte

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

    • sn64's avatar
      sn64
      New Member

      Below are examples of the tables.  One shows the clients info, their total sales by month and how much they are paying in admin fee for their service.  The next table shows the commission rates for the sales team.  The sales team gets commission on a % of the total sales and/or a % of the total admin fee.

      Customer Financials
      Customer IDCustomer nameMonthTotal SalesTotal Admin fee
      1122Toy shopNovember$1,000,000$5,000
      1122Toy shopDecember$900,000$4,500
      2233Shirt storeNovember$6,000,000$6,000
      2233Shirt storeDecember$3,000,000$3,000
           
           
      Commission Rates 
      Customer IDSales employee IDTotal Sales %Admin Fee % 
      11225001%10% 
           
      22335000%20% 
           
      22335101.50%5% 

       

       

      I would like to be able to update the customer financials by adding each month to the data and be able to have the formula in place so I can filter a report by sales employee to see what their actual commission will be(Total Sales %*total sales, Total Admin Fee* Admin Fee% ) for a commission statement like below:

      Sales IDCustomerMonthSales CommissionAdmin Fee Commission 
      5001122November$10,000$500 
      5001122December$9,000$450 
      5002255November$0$1,200 
      5002255December$0$600 
      Total  $19,000$2,750$21,750
  • sn64's avatar
    sn64
    New Member

    Below are examples of the tables.  One shows the clients info, their total sales by month and how much they are paying in admin fee for their service.  The next table shows the commission rates for the sales team.  The sales team gets commission on a % of the total sales and/or a % of the total admin fee.

    Customer Financials
    Customer IDCustomer nameMonthTotal SalesTotal Admin fee
    1122Toy shopNovember$1,000,000$5,000
    1122Toy shopDecember$900,000$4,500
    2233Shirt storeNovember$6,000,000$6,000
    2233Shirt storeDecember$3,000,000$3,000
         
         
    Commission Rates 
    Customer IDSales employee IDTotal Sales %Admin Fee % 
    11225001%10% 
         
    22335000%20% 
         
    22335101.50%5% 

     

     

    I would like to be able to update the customer financials by adding each month to the data and be able to have the formula in place so I can filter a report by sales employee to see what their actual commission will be(Total Sales %*total sales, Total Admin Fee* Admin Fee% ) for a commission statement like below:

    Sales IDCustomerMonthSales CommissionAdmin Fee Commission 
    5001122November$10,000$500 
    5001122December$9,000$450 
    5002255November$0$1,200 
    5002255December$0$600 
    Total  $19,000$2,750$21,750