Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello.
I have a dataset with Sales Prices for different Items, Customers and start/ending dates.
Like this:
| Item No | Customer | Starting Date | Unit Price | Ending Date |
| 10000 | A | 01.01.2018 | 100 | 31.12.2018 |
| 10000 | A | 01.01.2019 | 110 | 31.12.2019 |
| 10000 | A | 01.01.2020 | 120 | |
| 10000 | B | 01.01.2018 | 150 | 31.12.2018 |
| 10000 | B | 01.01.2019 | 160 | 31.12.2019 |
| 10000 | B | 01.01.2020 | 170 | |
| 10000 | Dicount A | 01.01.2018 | 10 | 31.12.2018 |
| 10000 | Dicount A | 01.01.2019 | 11 | 31.12.2019 |
| 10000 | Dicount A | 01.01.2020 | 12 | |
| 20000 | A | 01.01.2018 | 50 | 31.12.2018 |
| 20000 | A | 01.01.2019 | 60 | 31.12.2019 |
| 20000 | A | 01.01.2020 | 70 | |
| 20000 | B | 01.01.2018 | 70 | 31.12.2018 |
| 20000 | B | 01.01.2019 | 75 | 31.12.2019 |
| 20000 | B | 01.01.2020 | 80 | |
| 20000 | Dicount A | 01.01.2018 | 5 | 31.12.2018 |
| 20000 | Dicount A | 01.01.2019 | 6 | 31.12.2019 |
| 20000 | Dicount A | 01.01.2020 | 7 |
This is what I want:
IF Customer = A then subtract Discount A from A
IF Customer <> A then no subtraction
Expected result with filter Ending date = (blank):
| Item No | Sales code | Unit Price |
| 10000 | A (minus disc) | 108 |
| 10000 | B | 170 |
| 20000 | A (minus disc) | 63 |
| 20000 | B | 80 |
Thanks!
Regards
Andreas
Solved! Go to Solution.
Oh, ok, I'll post it in the right forum then 🙂
Thanks 🙂
Mvh
Andreas
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 14 | |
| 8 | |
| 8 | |
| 8 |