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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Can't use FILTER in quick measure twice

Good day,

 

Trying to create quick measure using FILTER command twice, but error "Too many arguments were passed to the FILTER function. The maximum argument count for the function is 2". How to fix it?

 

The formula itself that I come up with: 

ReportPassed3GI% = CALCULATE(COUNTA(Append_RFO_Details_New[Status]),FILTER(Append_RFO_Details_New,Append_RFO_Details_New[SubGroup]="3GI",FILTER(Append_RFO_Details_New,Append_RFO_Details_New[Status]="Ok")))
/CALCULATE(COUNTA(Append_RFO_Details_New[Personnel ID]))+0

1 ACCEPTED SOLUTION

@Anonymous 

Please try

ReportPassed3GI% =
CALCULATE (
COUNTA ( Append_RFO_Details_New[Status] ),
FILTER (
Append_RFO_Details_New,
Append_RFO_Details_New[SubGroup] = "3GI"
&& Append_RFO_Details_New[Status] = "Ok"
)
)
/ CALCULATE (
COUNTA ( Append_RFO_Details_New[Personnel ID] ),
KEEPFILTERS ( Append_RFO_Details_New[SubGroup] = "3GI" )
) + 0

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @Anonymous 

please try

ReportPassed3GI% =
CALCULATE (
COUNTA ( Append_RFO_Details_New[Status] ),
FILTER (
Append_RFO_Details_New,
Append_RFO_Details_New[SubGroup] = "3GI"
&& Append_RFO_Details_New[Status] = "Ok"
)
)
/ CALCULATE ( COUNTA ( Append_RFO_Details_New[Personnel ID] ) ) + 0

Anonymous
Not applicable

Hi Tamer J,

 

by filter no argument, thanks a lot to you, but I've mistaken only in one part. If we / by Personnel ID, it will count all others as well, and final percent and result will be not quite correct. Can we / to SubGroup only with 3GI values?

 

@Anonymous 

Please try

ReportPassed3GI% =
CALCULATE (
COUNTA ( Append_RFO_Details_New[Status] ),
FILTER (
Append_RFO_Details_New,
Append_RFO_Details_New[SubGroup] = "3GI"
&& Append_RFO_Details_New[Status] = "Ok"
)
)
/ CALCULATE (
COUNTA ( Append_RFO_Details_New[Personnel ID] ),
KEEPFILTERS ( Append_RFO_Details_New[SubGroup] = "3GI" )
) + 0

Anonymous
Not applicable

It works completely fine! Thank you a lot

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.