The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all,
I am trying to find out how many users have purchased products and plot in a visual to give an idea about the sales within the date slicer selected by the end user of the report.
I have tried with calculated columns; however, it takes into account all the product purchases made by users instead of within the date range picked as I hoped it would.
My data (for 14th Feb as the date picked by the end-user) currently looks like this -
User ID | Product ID | Dates |
user01 | p1 | 14/02 |
user023 | p2 | 14/02 |
user12 | p3 | 14/02 |
user12 | p4 | 14/02 |
user023 | p3 | 14/02 |
user05 | p1 | 14/02 |
user99 | p2 | 14/02 |
user12 | p3 | 14/02 |
user01 | p2 | 14/02 |
The output I expect to see - How many users have purchased the product how many times?
2 users have purchased 2 products
1 has purchased 3 products
2 have purchased 1 product
Users | Products |
2 | 2 |
1 | 3 |
2 | 1 |
Please feel free to ask for more information. Thank you!
User | Count |
---|---|
15 | |
12 | |
7 | |
6 | |
6 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |