Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am trying to do some analysis around the order in which customers purchase products. I have a table that has customers, date purchased, and product type. I was able to find the first product purchased using the measure:
Customer | Date | Product |
Cust 1 | 11.19.2014 | Product 1 |
Cust 1 | 4.4.2015 | Product 1 |
Cust 1 | 8.13.2015 | Product 4 |
Cust 1 | 8.15.2015 | Product 4 |
Cust 1 | 9.2.2015 | Product 3 |
I am trying to write a measure to return product 4 as the second unique product they purchased, and then product 3 as the 3rd in a separate measure.
The goal would be to combine the measures to look like this:
Customer | Product Sequence |
Cust 1 | Product 1, Product 4, Product 3 |
Thank you for the help!
Solved! Go to Solution.
Hi,
Try these measures
Hi,
Try these measures
@ejhornyak , Try like
concatenatex(summarize(Table,Table[customer],Table[Product],"_1",firstnonblankvalue(table[product],min(Table[Date]))),[product])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |