Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |