Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
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 |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!