Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Sum from other table

Hi,

 

I have 2 tables as follow:

How can I get the sum of purchase amount in Table 3?

Table 1   Table 2   Table 3    
CustomerDateDiscount CustomerDatePurchase amount CustomerDateDiscountPurchase amount 
A1/5/201910 A1/5/2019100 A1/5/201910150 
A3/5/201920 A1/5/201920 A3/5/201920200 
B1/5/20195 A1/5/201930 B1/5/20195100 
B2/5/20199 A2/5/201940 B2/5/20199100 
C3/5/201910 A3/5/2019200 C3/5/201910100 
C6/5/201910 B1/5/2019100 C6/5/20191050 
D1/5/20191 B2/5/2019100 D1/5/2019150 
    C1/5/201950      
    C2/5/2019100      
    C3/5/2019100      
    C6/5/201950      
    D1/5/201950      
    D2/5/2019100      
             
  • check below:

     

    1. Create a Date Table

    Date Table = DISTINCT(Table2[Date])

    2. Create Customers Table

    Customers = DISTINCT(Table1[Customer])

    3. Now, Create relationship like below.

    4. Now, Use table visual to arrange the data.

1 Reply

  • rocky09's avatar
    rocky09
    Solution Sage

    check below:

     

    1. Create a Date Table

    Date Table = DISTINCT(Table2[Date])

    2. Create Customers Table

    Customers = DISTINCT(Table1[Customer])

    3. Now, Create relationship like below.

    4. Now, Use table visual to arrange the data.