Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
rasendrapandey
New Member

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]), 'NKC MM'[CAT]= "B" && 'NKC MM'[CAT]= "C"))

 

The Filter does not show any value in the dashboard.

 

I want to filter "Claimed Amount" with Categories " B" AND "C" both

 

 

Can someone help!

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

@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! Smiley Happy

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

@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! Smiley Happy

Hi,

 

I have been trying to get a sum work with multiple criteria using the above example, and it's not working.  I have tried both the following formulas. Both of these formulas are seem to be correct in desktop, meaning I am not getting an error on the actual syntax of these formulas. 

 

This formula does give a result, however it is not the correct result.

Quality Sales = CALCULATE([Total Sales],

'Fact Agency Data'[Status] in {"Issue Paid", "Issue Paid|ARF", "Issue Paid|PDR", "Issued Paid|NY PIF", "Issued Paid|PDR|NY PIF" }

)

 

This formula doesn't return any results.

Quality Sales2 = CALCULATE(SUM('Fact Agency Data'[Original Sales]),
FILTER ('Fact Agency Data','Fact Agency Data'[Status] = "Issue Paid"),
FILTER ('Fact Agency Data','Fact Agency Data'[Status] = "Issue Paid|ARF"),
FILTER ('Fact Agency Data','Fact Agency Data'[Status] = "Issue Paid|PDR"),
FILTER ('Fact Agency Data','Fact Agency Data'[Status] = "Issue Paid|NY PIF")
)
 
I am simply trying to get the value [Total Sales] when the [Status] = A or B or C or D, can someone give a suggestion on how to create this simple measure?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.