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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
User | Count |
---|---|
97 | |
78 | |
77 | |
48 | |
26 |