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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
skaha7
Frequent Visitor

Employee hierarchy count bar chart?

Hi All,

 

Bit of a newbie to this so I'm not sure if this is the appropriate place to ask. It's the visual I'm hoping for but could also see it potentially as a DAX related question or maybe even a data model question? So please feel free to punt me in the right direction if this is the wrong spot!

 

My data will look similar to below, mainly employees, department and divisions:

EmployeeDepartmentDivision
BobDept ADivison 1
JohnDept ADivison 1
MaryDept BDivision 2
SueDept BDivision 2
CarsonDept CDivison 1
AaronDept BDivision 2
NormanDept ADivison 1

 

What I'm hoping to do is to visualize all three levels on one bar chart. similar to something like this: (it's a mock up and for sure not accurate!)

 

skaha7_0-1726248791688.png

Where I struggle is I think to have all three together I would need to "double/tripple" count the employee in order for it to count on all three bars? 

 

My first thought was to union my table together three times and create a single column for dept/division/company but that "feels" ineeficient? 

 

So I guess I'm wondering if there's a better way to do this? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @skaha7 ,

Perhaps you could try the following.

The data source is as follows.

vdengllimsft_0-1726455427383.png


Select the Employee column and then unpivot the other column

vdengllimsft_1-1726455502872.png


You can then rename the Attribute column and the Value column to get the following result.

vdengllimsft_2-1726455618909.png


Then select the cluster's column chart visual and put in the appropriate columns.
In this way Department, Division, and Company hierarchies are put into the chart.

vdengllimsft_3-1726456070383.png


Please see attached pbix for reference.

Best Regards,

Dengliang Li

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @skaha7 ,

Perhaps you could try the following.

The data source is as follows.

vdengllimsft_0-1726455427383.png


Select the Employee column and then unpivot the other column

vdengllimsft_1-1726455502872.png


You can then rename the Attribute column and the Value column to get the following result.

vdengllimsft_2-1726455618909.png


Then select the cluster's column chart visual and put in the appropriate columns.
In this way Department, Division, and Company hierarchies are put into the chart.

vdengllimsft_3-1726456070383.png


Please see attached pbix for reference.

Best Regards,

Dengliang Li

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

dharmendars007
Super User
Super User

Hello @skaha7 , 

 

You can just write 3 measure each filtering  "Dept", "Div", "Comp" and add the same to the Bar chart it will work..

 

If you find this helpful , please mark it as solution and Your Kudos are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

Thanks for responding! 

 

I think I might be missing something. If I filter for Department A. It will limit the row counts for Div and Comp as well won't it? 

 

I could Hard code the company count since that wouldn't change. 

 

But filtering between Department A / B / C should also change between Division 1 & 2, but just at a different grain?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors