Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Farhana110
Frequent Visitor

Dax

Hi,

Hope you are doing well and keeping safe!

 

I need the the advice on below scenario.

In my dataset, I have column " Manager Name"  and employee I'd of their team under each manager. I want to calculate total number of employees under that manager. How to do this using dax.

 

Thanks in advance. Your help would be greatly appreciated.

 

 

 

4 REPLIES 4
FreemanZ
Super User
Super User

hi @Farhana110 ,

 

Could you post some sample data for the mentioned columns?

IMG_20231109_202017.jpg

IMG_20231109_201957.jpg

@FreemanZ, Thanks for the replay. You can use above sample dataset.

I am looking for below result using calculated DAX,

ABC-4

XYZ-2

PQR - 3

hi @Farhana110 ,

 

just plot a table visual with manager column and a measure like:

measure = countrows(tablename)

Dangar332
Super User
Super User

hi, @Farhana110 

@Farhana110 

 

create measure

 

result =
 distinctcount('tablename'[employeeid column])

 

Dangar332_0-1699545728314.png

 

 

 

make table visual drag manager column and measure(result)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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.