Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I'm a bit stuck on something. What i'm trying to do is get a distinct count of unique employees and then based on these unique employees, i want to get the total sales made by employees who are Full Time.
So for example, i have a empNo field, EmpStatus field (which contains full time, part time, and casual), and a sales field.
I can't seem to get my formula to work. I did DISTINCTCOUNT([empNo.] to get unique employee numbers but i can't seem to figure out how to then filter this to return total sales for employees who are full time.
Thanks all
Solved! Go to Solution.
hi, @Anonymous
You could use "FILTER" in your dax formula.
For example:
Measure = CALCULATE( DISTINCTCOUNT([empNo.] , FILTER( 'Table', [EmpStatus] = "full time"))
If not your case, please share some sample data and expected output.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Best Regards,
Lin
hi, @Anonymous
You could use "FILTER" in your dax formula.
For example:
Measure = CALCULATE( DISTINCTCOUNT([empNo.] , FILTER( 'Table', [EmpStatus] = "full time"))
If not your case, please share some sample data and expected output.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Best Regards,
Lin
Hi,
Show some data and also the expected result.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
97 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |