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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
DCS2011
Helper I
Helper I

How to use multiple tables to relate a task to a group

I have two table that have hierarchy and a task table, but I need to reference one to get the other binned correct.

 

Table 1 (Groups with manager and parent)

NameManagerParent
Eng JohnnyCorp

 

Used to create hierarchy for this with 3 levels (max path length)

 

Table 2 (Personnel Org Chart)

NameReports ToJob Title
JohnnyJonny's BossMan, Eng
MikeJohnnyJohny's Minion
JoanJohnnyJohnny's Other Minion

 

Again created a hierarchy with 8 levels.

 

Then there is a 3rd table that has tasks assign by Org. This table has a relationship with Table 1, that is working.

TaskAssignee 
Task 1Mike 
Task 2Joan  
Task 3Johnny 


How can I relate these to show that Eng has 3 total tasked assigned to them. 

 

TIA!!!

2 REPLIES 2
Anonymous
Not applicable

Hi @DCS2011 ,

 

Here I create a sample to have a test.

Table1:

vrzhoumsft_0-1683180318619.png

Table2:

vrzhoumsft_1-1683180331495.png

Table3:

vrzhoumsft_2-1683180343441.png

Data model:

vrzhoumsft_3-1683180356741.png

Measure:

Count = 
VAR _Manager =
    MAX ( 'Table 1'[Manager] )
VAR _NAME =
    CALCULATETABLE ( VALUES ( 'Table 2'[Name] ) )
RETURN
    IF (
        ISBLANK ( MAX ( 'Table 1'[Name] ) ),
        BLANK (),
        CALCULATE (
            COUNT ( 'Table 3'[Task] ),
            FILTER (
                'Table 3',
                'Table 3'[Assignee]
                    IN _NAME
                    || 'Table 3'[Assignee] = _Manager
            )
        )
    )

Result is as below.

vrzhoumsft_4-1683180388161.png

 

Best Regards,
Rico Zhou

 

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

 

Thank you I will test later today or tomorrow and report back.

 

Here is a follow up question in the mean time. Will it matter if a manager oversee more than one group?I will also confirm, but I think that relationship will be many to many. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors