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.
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
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 |
---|---|
56 | |
27 | |
23 | |
15 | |
11 |
User | Count |
---|---|
78 | |
63 | |
47 | |
17 | |
12 |