Forum Discussion

Narender's avatar
Narender
Icon for Resolver I rankResolver I
8 years ago
Solved

How to use multiple tables in single filter in DAX?

Hello   I am using the DAX expression during preparation of chart. I have some problem in it. I want to use multiple tables in the filter like:   CALCULATE ( SUM (TAX_TRANSACTION[TAX_SUB_TRANS....
  • dasingh9's avatar
    8 years ago

    Hi Narender,

     

    You may use the AND operator to put another condition to the expression. You may even use multiple conditions in the expression as per your requirement. Here is an example how you could do that.

     

    CALCULATE (
    SUM (TAX_TRANSACTION[TAX_SUB_TRANS.AMOUNT]),
    FILTER ( ALL(TAX_TRANSACTION),TAX_TRANSACTION[TAX_SUB_TRANS.CHARGE_TYPE_NO]=2) AND TAX_TRANSATION(TAX_SUB_TRANS.[YEAR]) = 2015)

     

    Cheers,

    Davinder