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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
dw700d
Post Patron
Post Patron

combining multiple columns into one column for a table visual

I have a table of employees. That table shows a hierarchy of who each employee roles up to in the organization. So for example in row 1 Dan reports to his Director Tina. Tina reports to her Vice president Michael  and Michael reports to the president Jenny. See the table below.

 

Employee    Director    Vice President  President        
DanTinaMichaelJenny
Dave MichaelJenny
BobCecilThomasJenny
Bill Carl SusanDannytony
SteveSusanDannytony
Cheryl GretaDannytony
Sam  Jim
DanaCandaceGaryPaul
Joe  Paul

 

 

I am trying to create a table visual that groups the director column , vice president column and president column into one Column and calculates the total count of employees for each director, vice president and president. So for example Jenny(president) has 3 employees that roll up to her (Dan, Dave, Bob).  Michael(vice president) has 2 employees that roll up to him (Dan and Dave). below is what the visual would look like. Any thoughts on how I can accomplish this ?

 

 

LeaderCount of Employees
Jenny   3
tony   3
jim   1
paul   2
Michael   2
Thomas   1
Danny   3
Gary   1
Tina   1
Cecil   1
Susan   2
Greta   1
Candace   1
1 ACCEPTED SOLUTION
FreemanZ
Community Champion
Community Champion

hi @dw700d 

you may try to add a calculated table like:

Table = 
FILTER(
    UNION(
        ADDCOLUMNS( VALUES(data[President]), "Count", CALCULATE(COUNTROWS(Data))),
        ADDCOLUMNS( VALUES(data[Vice President]), "Count", CALCULATE(COUNTROWS(Data))),
        ADDCOLUMNS( VALUES(data[Director]), "Count", CALCULATE(COUNTROWS(Data)))
    ),
    [President]<>BLANK()
)

 

FreemanZ_0-1682434306626.png

 

View solution in original post

1 REPLY 1
FreemanZ
Community Champion
Community Champion

hi @dw700d 

you may try to add a calculated table like:

Table = 
FILTER(
    UNION(
        ADDCOLUMNS( VALUES(data[President]), "Count", CALCULATE(COUNTROWS(Data))),
        ADDCOLUMNS( VALUES(data[Vice President]), "Count", CALCULATE(COUNTROWS(Data))),
        ADDCOLUMNS( VALUES(data[Director]), "Count", CALCULATE(COUNTROWS(Data)))
    ),
    [President]<>BLANK()
)

 

FreemanZ_0-1682434306626.png

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.