Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I wish to create a matrix that shows the number of customers that made purchases in a month while segmenting it against the last purchase date.
April | May | June | July | August | Sept | |
0-30 days | 700 | 520 | ||||
31-60 days | 200 | 180 | ||||
61-90 days | 100 | 140 | ||||
91-120 days | 120 | 160 | ||||
121-150 days | 70 | 50 | ||||
151-180 days | 50 | 20 | ||||
180 + days | 10 | 40 | ||||
Total customers | 1250 | 1110 |
I have tried the below codes, but I am not able to create the exact table.
Q1 | Q2 | |||
Number of Orders | number of customers | Average Order value | number of customers | Average Order value |
1 | 700 | 10000 | ||
2 | 800 | 12000 | ||
3 | 200 | 14000 | ||
4 | 400 | 11000 | ||
5 | 500 | 20000 | ||
5+ | 1000 | 80000 | ||
Total customers | 3600 | 147000 |
Hi @Anonymous ,
Please share some sample data so that we could test the formula.
Best Regards,
Jay
please find demo table as requested
Billing Doc No | Billing Date | Sales Order | Sales Order Date | Customer Name |
29 | 12.04.2022 | 21 | 16.03.2022 | am |
30 | 07.05.2022 | 22 | 21.03.2022 | am |
31 | 16.04.2022 | 22 | 21.03.2022 | am |
31 | 16.04.2022 | 22 | 21.04.2022 | am |
32 | 14.04.2022 | 23 | 30.03.2022 | ch |
33 | 05.04.2022 | 24 | 31.03.2022 | ch |
33 | 05.04.2022 | 24 | 31.03.2022 | ch |
33 | 05.04.2022 | 24 | 31.03.2022 | ar |
34 | 12.04.2022 | 24 | 31.03.2022 | ar |
34 | 12.04.2022 | 25 | 31.04.2022 | ar |
34 | 12.04.2022 | 25 | 31.04.2022 | ar |
34 | 12.04.2022 | 25 | 31.04.2022 | ar |
34 | 12.04.2022 | 25 | 31.04.2022 | ar |
34 | 12.04.2022 | 25 | 31.04.2022 | ar |
34 | 12.04.2022 | 26 | 31.05.2022 | ar |
34 | 12.04.2022 | 26 | 31.05.2022 | ar |
34 | 12.04.2022 | 26 | 31.05.2022 | ar |
34 | 12.04.2022 | 26 | 31.05.2022 | ar |
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
37 | |
29 | |
17 | |
13 | |
8 |
User | Count |
---|---|
48 | |
39 | |
33 | |
17 | |
16 |