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.
Dear All,
I have the following db:
DocNum | RowNum | Discount% |
A | 1 | 30 |
A | 1 | 5 |
A | 2 | 15 |
A | 2 | 15 |
Is there a way I can create two additional columns as follows?
DocNum | RowNum | Discount% | Discount1 | Discount2 |
A | 1 | 30 | 30 | 5 |
A | 1 | 5 | 30 | 5 |
A | 2 | 15 | 15 | null |
A | 2 | 15 | 15 | null |
- When there are two distinct Discount%, count the former as Discount1 and the latter as Discount2
- When there is one distinct Discount%, count it only once as Discount1
Thank you for your help
Solved! Go to Solution.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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 |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |