Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Good Morning,
I am hoping you can help me.
i am not sure how to describe my problem statement but hopefully with the attached and examples it will make sense
In my dataset i have 4 columns (See below), i would like to produce analysis based on those 4 Columns.
Emp ID (Column A)
Manager ID (Column B)
Department Name (Column C)
For a given Hierarchy determined by "Column A & "Column B count the DISTNICTCOUNT for the Department name for all childs based on the parent
this is example from the measure i wrote
Solved! Go to Solution.
Hi @Mohamedali ,
Please update the formula of measure [MC_DepartmentName] as below and check if it can get your expected result...
MC_DepartmentName = DISTINCTCOUNT('All_employees'[Department Name])
If the above one can't help you get the desired result, please provide some sample data in your table 'All_employees' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @Mohamedali ,
Please update the formula of measure [MC_DepartmentName] as below and check if it can get your expected result...
MC_DepartmentName = DISTINCTCOUNT('All_employees'[Department Name])
If the above one can't help you get the desired result, please provide some sample data in your table 'All_employees' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
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!
| User | Count |
|---|---|
| 104 | |
| 82 | |
| 71 | |
| 50 | |
| 46 |