Number of Female = CALCULATE(DISTINCTCOUNT('Pharma Group AG'[Employee ID],FILTER('Pharma…
- User
Number of Female = CALCULATE(DISTINCTCOUNT('Pharma Group AG'[Employee ID],FILTER('Pharma Group AG','Pharma Group AG'[Gender] = "Female"))) Too many arguments were passed to the DISTINCTCOUNT function. The maximum argument count for the function is 1. can yo just correct the dax function
- Assistant
Certainly! It looks like you're trying to count the distinct number of female employees in the 'Pharma Group AG' table. The issue is with the
DISTINCTCOUNTfunction; it only takes one argument. To correctly accomplish this task, you should use theCALCULATEfunction withDISTINCTCOUNTwrapped inside aFILTER. Here's how you can write this DAX expression:DAXNumber of Female = CALCULATE( DISTINCTCOUNT('Pharma Group AG'[Employee ID]), 'Pharma Group AG'[Gender] = "Female" )This expression calculates the distinct count of
Employee IDwhere theGenderis "Female".