tusharmehta
New Member
- Joined
- May 12, 2014
- Messages
- 34
Hello Everyone,
I am finding fundamental understanding issue, While doing calculation for below mentioned table.
To would like to generate Grand Total value with using below mentioned type calculation (01 + 02 - 03)
-------------
Data Sheet
-------------
<tbody>
</tbody>
After trying below mentioned formula to convert type 03 to negative value for correct calculation I am still getting getting wrong grand total result for ITM0002 and ITM0003.
Formula which I though will help me:
NetValue:=SUMX('Transaction',IF('Transaction'[Type]<>"03", CALCULATE(SUM('Transaction'[Amount])),SUM('Transaction'[Amount])*-1))
<tbody>
</tbody>
----------------------------------------------------------
Expected result value would be mentioned below:
----------------------------------------------------------
<tbody>
</tbody>
Thanks in Advance.
I am finding fundamental understanding issue, While doing calculation for below mentioned table.
To would like to generate Grand Total value with using below mentioned type calculation (01 + 02 - 03)
-------------
Data Sheet
-------------
DocNo | Lcode | DocDate | Icode | Type | Discount | Amount |
1 | LOC1 | 01/01/2015 | ITM0001 | 01 | 1,000.00 | |
1 | LOC2 | 01/01/2015 | ITM0001 | 02 | 200.00 | 25,800.00 |
2 | LCO1 | 01/01/2015 | ITM0002 | 01 | 2,080.00 | |
2 | LOC1 | 01/01/2015 | ITM0003 | 01 | 4,800.00 | |
2 | LOC1 | 01/01/2015 | ITM0004 | 01 | 300.00 | |
2 | LOC1 | 01/01/2015 | ITM0005 | 01 | 5,500.00 | |
3 | LOC3 | 06/01/2015 | ITM0002 | 02 | 687.00 | 55,000.00 |
1 | LOC4 | 06/01/2015 | ITM0003 | 02 | 50,000.00 | |
3 | LOC2 | 25/02/2015 | ITM0003 | 03 | - | 46,000.00 |
1 | LOC1 | 26/03/2015 | ITM0006 | 01 | 890.00 | |
3 | LOC3 | 27/03/2015 | ITM0002 | 03 | 50,000.00 | |
4 | LOC4 | 28/03/2015 | ITM0004 | 02 | 89.90 | 888.00 |
<tbody>
</tbody>
After trying below mentioned formula to convert type 03 to negative value for correct calculation I am still getting getting wrong grand total result for ITM0002 and ITM0003.
Formula which I though will help me:
NetValue:=SUMX('Transaction',IF('Transaction'[Type]<>"03", CALCULATE(SUM('Transaction'[Amount])),SUM('Transaction'[Amount])*-1))
Row Labels | 01 | 02 | 03 | Grand Total |
ITM0001 | 1000 | 25800 | 26800 | |
ITM0002 | 2080 | 55000 | -50000 | -50000 |
ITM0003 | 4800 | 50000 | -46000 | -46000 |
ITM0004 | 300 | 888 | 1188 | |
ITM0005 | 5500 | 5500 | ||
ITM0006 | 890 | 890 | ||
Grand Total | 14570 | 131688 | -192000 | -338258 |
<tbody>
</tbody>
----------------------------------------------------------
Expected result value would be mentioned below:
----------------------------------------------------------
Row Labels | 01 | 02 | 03 | Grand Total |
ITM0001 | 1,000.00 | 25,800.00 | 26,800.00 | |
ITM0002 | 2,080.00 | 55,000.00 | -50,000.00 | 7,080.00 |
ITM0003 | 4,800.00 | 50,000.00 | -46,000.00 | 8,800.00 |
ITM0004 | 300.00 | 888.00 | 1,188.00 | |
ITM0005 | 5,500.00 | 5,500.00 | ||
ITM0006 | 890.00 | 890.00 | ||
Grand Total | 14,570.00 | 131,688.00 | -96,000.00 | 50,258.00 |
<tbody>
</tbody>
Thanks in Advance.