tusharmehta
New Member
- Joined
- May 12, 2014
- Messages
- 34
Dear Everyone,
While doing inventory base calculation most frequently asked questions I had seen is calculation of item wise discount from today invoice/document discount.
I am here with sharing test example in that I would like to see how to calculate Discount % and DiscountValue so please can you look into and guide which will be the best calculation method is more suitable while using PowerPivot (Best practice).
Below are two tables one is header and second is child (Summary and Detail tables), Today invoicediscount value need to be divide for each item base on it's SalesAmt (Ratio).
[TABLE="class: grid, width: 811"]
<tbody>[TR]
[TD]DocDate[/TD]
[TD]DocNo[/TD]
[TD]InvoiceAmt[/TD]
[TD]InvoiceDiscount[/TD]
[TD][/TD]
[TD]DocDate[/TD]
[TD]DocNo[/TD]
[TD]Itemcode[/TD]
[TD]SalesAmt[/TD]
[TD]Discount%[/TD]
[TD]DiscountValue[/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]2000[/TD]
[TD][/TD]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD]ABC1[/TD]
[TD="align: right"]3000[/TD]
[TD] ??[/TD]
[TD]??[/TD]
[/TR]
[TR]
[TD="align: right"]2/1/2015[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD]BEC1[/TD]
[TD="align: right"]2000[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD]EDG3[/TD]
[TD="align: right"]1000[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD]ABC1[/TD]
[TD="align: right"]4000[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/1/2015[/TD]
[TD="align: right"]2[/TD]
[TD]ABC1[/TD]
[TD="align: right"]1000[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/1/2015[/TD]
[TD="align: right"]2[/TD]
[TD]BEC1[/TD]
[TD="align: right"]950[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/1/2015[/TD]
[TD="align: right"]2[/TD]
[TD]RTSF[/TD]
[TD="align: right"]50[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
</tbody>[/TABLE]
FYI
In document number 1 (One) item is getting repeated twice (ABC1).
Thanks in Advance.
While doing inventory base calculation most frequently asked questions I had seen is calculation of item wise discount from today invoice/document discount.
I am here with sharing test example in that I would like to see how to calculate Discount % and DiscountValue so please can you look into and guide which will be the best calculation method is more suitable while using PowerPivot (Best practice).
Below are two tables one is header and second is child (Summary and Detail tables), Today invoicediscount value need to be divide for each item base on it's SalesAmt (Ratio).
[TABLE="class: grid, width: 811"]
<tbody>[TR]
[TD]DocDate[/TD]
[TD]DocNo[/TD]
[TD]InvoiceAmt[/TD]
[TD]InvoiceDiscount[/TD]
[TD][/TD]
[TD]DocDate[/TD]
[TD]DocNo[/TD]
[TD]Itemcode[/TD]
[TD]SalesAmt[/TD]
[TD]Discount%[/TD]
[TD]DiscountValue[/TD]
[/TR]
[TR]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]2000[/TD]
[TD][/TD]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD]ABC1[/TD]
[TD="align: right"]3000[/TD]
[TD] ??[/TD]
[TD]??[/TD]
[/TR]
[TR]
[TD="align: right"]2/1/2015[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD]BEC1[/TD]
[TD="align: right"]2000[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD]EDG3[/TD]
[TD="align: right"]1000[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]1/1/2015[/TD]
[TD="align: right"]1[/TD]
[TD]ABC1[/TD]
[TD="align: right"]4000[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/1/2015[/TD]
[TD="align: right"]2[/TD]
[TD]ABC1[/TD]
[TD="align: right"]1000[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/1/2015[/TD]
[TD="align: right"]2[/TD]
[TD]BEC1[/TD]
[TD="align: right"]950[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]2/1/2015[/TD]
[TD="align: right"]2[/TD]
[TD]RTSF[/TD]
[TD="align: right"]50[/TD]
[TD] ??[/TD]
[TD] ??[/TD]
[/TR]
</tbody>[/TABLE]
FYI
In document number 1 (One) item is getting repeated twice (ABC1).
Thanks in Advance.
Last edited: