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
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
Europe Fabric Conference

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.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.