Forum Discussion

rasendrapandey's avatar
rasendrapandey
New Member
9 years ago
Solved

Multiple Criteria Filter

I have to filter " Claimed Amount" Column with two criteria.   I have entered Measure as below:   Remuneration Claimed (INR) = CALCULATE( sum('NKC MM'[Claimed Amount]), filter(all ('NKC MM'[CAT])...
  • Sean's avatar
    9 years ago

    rasendrapandey

     

    This is a single column and to get both values B and C you need to use the OR operator (not AND)

    You want the Column to be either "B "or "C" (but it can't be B and C at the same time - it can be only be B OR C one at a time)

     

    Remuneration Claimed (INR) =
    CALCULATE (
        SUM ( 'NKC MM'[Claimed Amount] ),
        FILTER ( ALL ( 'NKC MM'[CAT] ), 'NKC MM'[CAT] = "B" || 'NKC MM'[CAT] = "C" )
    )

    Hope this helps and makes sense! :smileyhappy: