tusharmehta
New Member
- Joined
- May 12, 2014
- Messages
- 34
Hello,
I had start learning powerpivot from last few days and generating some test example so I can learn it's concept and features.
During my test I came to now small doubt in which I did not understand which logic statement will be more suitable.
I am here with sending my test table and question what I have.
--------------------
Custom Range Table
--------------------
[TABLE="width: 297"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]ShopCode[/TD]
[TD]Period[/TD]
[TD]MinValue[/TD]
[TD]MaxValue[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Daily[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]25000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Monthly[/TD]
[TD="align: right"]310000[/TD]
[TD="align: right"]750000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Anually[/TD]
[TD="align: right"]3720000[/TD]
[TD="align: right"]9300000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Daily[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]25000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Monthly[/TD]
[TD="align: right"]310000[/TD]
[TD="align: right"]750000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Anually[/TD]
[TD="align: right"]3720000[/TD]
[TD="align: right"]9300000
[/TD]
[/TR]
</tbody>[/TABLE]
--------------------
Transaction Table
--------------------
[TABLE="width: 395"]
<colgroup><col span="2"><col><col span="3"></colgroup><tbody>[TR]
[TD]ShopCode[/TD]
[TD]DocNo[/TD]
[TD]DocDate[/TD]
[TD]DocType[/TD]
[TD]QTY[/TD]
[TD]SalesAmount[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1/1/2014[/TD]
[TD]SAL[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]9000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1[/TD]
[TD]31/12/2013[/TD]
[TD]PUR[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1/2/2014[/TD]
[TD]SAL[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]11000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1/2/2014[/TD]
[TD]SAL[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]26000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2/2/2014[/TD]
[TD]SAL[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]12000[/TD]
[/TR]
</tbody>[/TABLE]
--------------------
Expected result
--------------------
[TABLE="width: 267"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD]ShopCode[/TD]
[TD]Date[/TD]
[TD]SalesAmount[/TD]
[TD]SalesStatus[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1/1/2014[/TD]
[TD="align: right"]9000[/TD]
[TD="align: right"]-1[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1/2/2014[/TD]
[TD="align: right"]11000[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]1/2/2014[/TD]
[TD="align: right"]26000[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]2/2/2014[/TD]
[TD="align: right"]12000[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
------------
Purpose :
------------
salesstatus result value will help to generate KPI status
Custom Range Table will help user to change target values when it is needed
------------
Questions:
------------
How to generate decided result, which logical statement will be better to use it (If, switch or calculation ) and how ?
Kindly let me know if I am missing anything while explaining my concept.
Thanks in Advance.
I had start learning powerpivot from last few days and generating some test example so I can learn it's concept and features.
During my test I came to now small doubt in which I did not understand which logic statement will be more suitable.
I am here with sending my test table and question what I have.
--------------------
Custom Range Table
--------------------
[TABLE="width: 297"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]ShopCode[/TD]
[TD]Period[/TD]
[TD]MinValue[/TD]
[TD]MaxValue[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Daily[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]25000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Monthly[/TD]
[TD="align: right"]310000[/TD]
[TD="align: right"]750000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Anually[/TD]
[TD="align: right"]3720000[/TD]
[TD="align: right"]9300000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Daily[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]25000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Monthly[/TD]
[TD="align: right"]310000[/TD]
[TD="align: right"]750000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Anually[/TD]
[TD="align: right"]3720000[/TD]
[TD="align: right"]9300000
[/TD]
[/TR]
</tbody>[/TABLE]
--------------------
Transaction Table
--------------------
[TABLE="width: 395"]
<colgroup><col span="2"><col><col span="3"></colgroup><tbody>[TR]
[TD]ShopCode[/TD]
[TD]DocNo[/TD]
[TD]DocDate[/TD]
[TD]DocType[/TD]
[TD]QTY[/TD]
[TD]SalesAmount[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1/1/2014[/TD]
[TD]SAL[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]9000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1[/TD]
[TD]31/12/2013[/TD]
[TD]PUR[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1/2/2014[/TD]
[TD]SAL[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]11000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1/2/2014[/TD]
[TD]SAL[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]26000[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2/2/2014[/TD]
[TD]SAL[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]12000[/TD]
[/TR]
</tbody>[/TABLE]
--------------------
Expected result
--------------------
[TABLE="width: 267"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD]ShopCode[/TD]
[TD]Date[/TD]
[TD]SalesAmount[/TD]
[TD]SalesStatus[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1/1/2014[/TD]
[TD="align: right"]9000[/TD]
[TD="align: right"]-1[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]1/2/2014[/TD]
[TD="align: right"]11000[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]1/2/2014[/TD]
[TD="align: right"]26000[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]2/2/2014[/TD]
[TD="align: right"]12000[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
------------
Purpose :
------------
salesstatus result value will help to generate KPI status
Custom Range Table will help user to change target values when it is needed
------------
Questions:
------------
How to generate decided result, which logical statement will be better to use it (If, switch or calculation ) and how ?
Kindly let me know if I am missing anything while explaining my concept.
Thanks in Advance.