Hi,
I have a data set looking like this:
Cust__SalesRep___Invoice#___GL Account#_____Amount$
A_____John______21108______GrossSales_____1000.00
A_____John______21108______FreightCharges___133.00
B_____Eric_______21109______GrossSales______888.00
I need to calculate a 3% sale commission as follows:
1- For invoices with freight charges shown on invoice, commission is 3% of gross sales amount. By example, on invoice 21108, commission is (1133-133)*3%=30.00$
2- For invoices without freight charges shown on invoice (ie included in sale price), commission is 3% of 98% of gross sales amount. By example, on invoice 21109, commission is 888*98%*3%=26.11$
Obviously, my pivot table will summarize by customer and sales rep so I suppose I need a calculated column in my powerpivot data.
My problem is to determine if that "distinct" invoice has freight charge on it (another line) and how the commission must be calculated knowing that...
Thanks,
Guillaume
I have a data set looking like this:
Cust__SalesRep___Invoice#___GL Account#_____Amount$
A_____John______21108______GrossSales_____1000.00
A_____John______21108______FreightCharges___133.00
B_____Eric_______21109______GrossSales______888.00
I need to calculate a 3% sale commission as follows:
1- For invoices with freight charges shown on invoice, commission is 3% of gross sales amount. By example, on invoice 21108, commission is (1133-133)*3%=30.00$
2- For invoices without freight charges shown on invoice (ie included in sale price), commission is 3% of 98% of gross sales amount. By example, on invoice 21109, commission is 888*98%*3%=26.11$
Obviously, my pivot table will summarize by customer and sales rep so I suppose I need a calculated column in my powerpivot data.
My problem is to determine if that "distinct" invoice has freight charge on it (another line) and how the commission must be calculated knowing that...
Thanks,
Guillaume