Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have gender field which has values like Male. Female. I want to create a measure called Male and then another one called Female and I want to count number of male and female.
I tired to write this measure
Solved! Go to Solution.
pls try
calculate(COUNTA(tdEmployee[Gender]), tdEmployee[Gender]="Male")
Proud to be a Super User!
Hi, @lastnn30
You can also try the following methods.
Male =
CALCULATE(COUNT(tdEmployee[Gender]),FILTER(ALL(tdEmployee),[Gender]="Male"))Female =
CALCULATE(COUNT(tdEmployee[Gender]),FILTER(ALL(tdEmployee),[Gender]="Female"))
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @lastnn30
You can also try the following methods.
Male =
CALCULATE(COUNT(tdEmployee[Gender]),FILTER(ALL(tdEmployee),[Gender]="Male"))Female =
CALCULATE(COUNT(tdEmployee[Gender]),FILTER(ALL(tdEmployee),[Gender]="Female"))
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
pls try
calculate(COUNTA(tdEmployee[Gender]), tdEmployee[Gender]="Male")
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!