Forum Discussion
Question on a What If Scenario
Hello all...
I created a What If parameter and named it "% Price Change." It created the below table and measure:
- Anonymous6 years ago
Hi and thank you. I think I figured it out. This code looks to be working:
Revenue after % Price Change =
SUMX('Item Sales','Item Sales'[Net Sales])
+ SUMX('Item Sales','Item Sales'[Qty] * 'Item Sales'[Price]
* '% Price Change'[% Price Change Value]/100)Date Item Qty Gross Sales Discounts Net Sales Unit Price
7/20/2019 1 9 $45.00 ($9.00) $36.00 ea $5.00
9/21/2019 2 8 $40.00 ($8.00) $32.00 ea $5.00
4 Replies
- vik0810
Resolver V
I think your measure is not correct. It should be
Net Sales after % Price Increase = SUM('Item Sales'[Net Sales]) + SUM('Item Sales'[Net Sales])* '% Price Change'[% Price Change Value]/100You must have lines in Item Sales with more than one position, therefore your value is lower, than it should be.- AnonymousNot applicable
Thank you. I tried that as well and while it brings me closer, it's still a few hundred dollars off. I may be overthinking things, but I tested the measure results by going in to the source data, changing the prices by 10%, and then multiplying the new prices by the quantitites instead of just multiplying Net Sales by 10%.
- AnonymousNot applicable
Hi Anonymous ,
Can you please share some sample data and expected the result for test? It will help us clarify your scenario.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
- AnonymousNot applicable
Hi and thank you. I think I figured it out. This code looks to be working:
Revenue after % Price Change =
SUMX('Item Sales','Item Sales'[Net Sales])
+ SUMX('Item Sales','Item Sales'[Qty] * 'Item Sales'[Price]
* '% Price Change'[% Price Change Value]/100)Date Item Qty Gross Sales Discounts Net Sales Unit Price
7/20/2019 1 9 $45.00 ($9.00) $36.00 ea $5.00
9/21/2019 2 8 $40.00 ($8.00) $32.00 ea $5.00