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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.