Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
I have a large dataset of product sales for the last 5 years that creates a new row if the customer bought more than one product in the sale. I want to be able to add a custom column (Orders) that will place a 1 next to the first row with a matching Order Date and Customer ID and then a null for any repeat rows for that order.
For example
Order Date | Customer ID | Orders |
2/2/2024 | 121212 | 1 |
2/2/2024 | 121212 | null |
2/2/2024 | 123456 | 1 |
3/2/2024 | 444444 | 1 |
3/2/2024 | 343434 | 1 |
3/2/2024 | 121212 | 1 |
3/2/2024 | 444444 | nulll |
What is the easiest way to do this?
Thanks for your help,
A
Solved! Go to Solution.
maybe you can try this
1. create an index column in PQ
2. use DAX to create a column
Proud to be a Super User!
maybe you can try this
1. create an index column in PQ
2. use DAX to create a column
Proud to be a Super User!
User | Count |
---|---|
64 | |
59 | |
47 | |
33 | |
32 |
User | Count |
---|---|
84 | |
75 | |
56 | |
50 | |
44 |