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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
EZimmet
Resolver I
Resolver I

Syntex for a count with 2 filters

Good day 
I'm off on this syntex if someone an assist please.
 ________________
This works with a single condition:
 
VAR _ceused =
    COUNTROWS ( FILTER ( ( '_Rack Metrics Report'),'_Rack Metrics Report' [_All Rack Conditions] = "Installed Client Used" ))
_____________________
 
I need to add a second condition to pull a specfic Site:
 
VAR _ceused =
    COUNTROWS ( FILTER ( ( '_Rack Metrics Report'),'_Rack Metrics Report' [_All Rack Conditions] = "Installed Client Used" ),
                                          ( '_Rack Metrics Report' ),'_Rack Metrics Report'[Site] = "xxxx"))
   
Too many arguments were passed to the COUNTROWS function. The maximum argument count for the function is 1.
1 ACCEPTED SOLUTION

You are close. Check your closing ).

FILTER(<table>,<filter>) returns a table. So substitute another FILTER for the table and you get this:

FILTER FILTER ( <table>,<filter> ) ,<filter> )

You have this:

FILTER FILTER ( <table>   )   ,<filter> ) ,<filter> )

 




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





View solution in original post

4 REPLIES 4
ToddChitt
Super User
Super User

Try nested FILTER statements
FILTER ( FILTER ( ... ) ...)



Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





like this ?

 

EZimmet_0-1661540091797.png

Too few arguments were passed to the FILTER function. The minimum argument count for the function is 2.

You are close. Check your closing ).

FILTER(<table>,<filter>) returns a table. So substitute another FILTER for the table and you get this:

FILTER FILTER ( <table>,<filter> ) ,<filter> )

You have this:

FILTER FILTER ( <table>   )   ,<filter> ) ,<filter> )

 




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





I can't thank you enough - your spot on 😀

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors