Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 3

Customer No of Visits

Customer 1 1 Frequecy of customer visits to store


Customer 2 2
Customer 3 1 Vistis Frequency
Customer 4 1 1 3
Customer 5 2 2 2
Customer 6 3 3 2
Customer 7 3 4 1
Customer 8 4 6 1
Customer 9 6 8 1
Customer 10 8

I want to find
Date Trans ID Product ID No of Times Sold Expectation
1/1/2021 44197Product 1 Product 1 1
1/1/2021 44197Product 2 Product 2 2 New Object : If( Product ID = Product 1, CO
1/2/2021 44198Product 1 Product 1 2
1/2/2021 44198Product 2 Product 2 3 Answer to be like below
1/3/2021 44199Product 1 Product 1 1
1/3/2021 44199Product 2 Product 2 2 Product1
1/4/2021 44200Product 1 Product 1 2 Produc2
1/4/2021 44200Product 2 Product 2 1
1/5/2021 44201Product 1 Product 1 1 we need to use "new object"
1/5/2021 44201Product 2 Product 2 1
1/6/2021 44202Product 1 Product 1 3
1/6/2021 44202Product 2 Product 2 1
1/7/2021 44203Product 1 Product 1 2
1/7/2021 44203Product 2 Product 2 1
1/8/2021 44204Product 1 Product 1 4
1/8/2021 44204Product 2 Product 2 1
1/10/2021 44206Product 1 Product 1 1
1/10/2021 44206Product 2 Product 2 5
1/11/2021 44207Product 1 Product 1 2
1/11/2021 44207Product 2 Product 2 2
Expectation

If( Product ID = Product 1, COUNTDISTINCT(Trans ID) else Sum(No of Times Sold))

Answer to be like below

10
19

we need to use "new object" in Charts and other calculations ..

You might also like