tusharmehta
New Member
- Joined
- May 12, 2014
- Messages
- 34
Hello Everyone,
I have situation where I want to exclude selected itmtype using table value.
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
----------------
Exclude Table
----------------
<colgroup><col></colgroup><tbody>
</tbody>
I would like to calculate amount sum using Exclude Table value, it means amount sum will include for ItmType = "DI".
I have tried:
DocTot:=SUMX(FILTER('Transaction','Transaction'[ItmType]<>"GL"),'Transaction'[Amount])
In above mentioned example I can get value but it will be fixed so I am trying to crate table so it will be dynamic.
DocTot1:=CALCULATE(SUM([Amount]),ALLEXCEPT('Exclude','Exclude'[ItmType]))
In above mentioned calculate error I am getting error, so suggestion will be highly appreciate.
Thanks.
I have situation where I want to exclude selected itmtype using table value.
ItmType | ItmCode | Qty | Amount |
GL | ITM0001 | 1 | 500.000 |
DI | ITM0002 | 1 | 1,500.000 |
DI | ITM0003 | 1 | 1,800.000 |
ST | ITM0004 | 1 | 200.000 |
GL | ITM0005 | 1 | 500.000 |
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
----------------
Exclude Table
----------------
ItmType |
GL |
ST |
<colgroup><col></colgroup><tbody>
</tbody>
I would like to calculate amount sum using Exclude Table value, it means amount sum will include for ItmType = "DI".
I have tried:
DocTot:=SUMX(FILTER('Transaction','Transaction'[ItmType]<>"GL"),'Transaction'[Amount])
In above mentioned example I can get value but it will be fixed so I am trying to crate table so it will be dynamic.
DocTot1:=CALCULATE(SUM([Amount]),ALLEXCEPT('Exclude','Exclude'[ItmType]))
In above mentioned calculate error I am getting error, so suggestion will be highly appreciate.
Thanks.