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! Learn more

Reply
Ramyaajithkumar
Frequent Visitor

Hi i am trying to write a DAX for the count of On Notice, Active, Inactive employees, and i wrote

Hi i am trying to write a DAX for the count of On Notice, Active, Inactive employees, and i wrote this below command and i am new to powerbi

 

M_Act_emp1 = CALCULATE(COUNTROWS('Attrition 1'),FILTER('Attrition 1',('Attrition 1'[Status] ="Active"),FILTER('Attrition 1',('Attrition 1'[Status] = "On Notice"))))
 
It says
Too many arguments were passed to the FILTER function. The maximum argument count for the function is 2.
 
can anyone can help and send your suggestion raaj@enabl.dk
1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

M_Act_emp1 = CALCULATE(COUNTROWS('Attrition 1'),'Attrition 1'[Status] IN {"Active","On Notice"})

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

M_Act_emp1 = CALCULATE(COUNTROWS('Attrition 1'),'Attrition 1'[Status] IN {"Active","On Notice"})

Thank you very much

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.