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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PrachiD
Helper I
Helper I

Span of Control

spanofcontrol.PNG

 

Hello All,
I want to calculate the average span of control.
if 1 has a two child that are 1 and 2 and 1 and 2 again have the subchild that are 1 ,1 as show in fig.
I want to calculate the span of control for each parent node.
In the above example the span of control is 4 for the 1st parent node. Likewise i have to calculate for root node as well as for there parent node also.
So plz help me to get the required result

1 ACCEPTED SOLUTION

I have crunched the data. 
Because the given data was not in the heirarchy format.
i made it in heirarchya and got the result
Thank you all for your help

View solution in original post

6 REPLIES 6
v-shex-msft
Community Support
Community Support

Hi @PrachiD,

 

Is there are columns which similar as 'parent node' to description these relationships? If this is a case, you can try to use path function to analysis the relationship.

 

You can refer to below link to know more about this:

Parent-Child Hierarchies

 

If above not help, please share some detail contents to help us clarify your scenario.


Regards,

XIaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

I have crunched the data. 
Because the given data was not in the heirarchy format.
i made it in heirarchya and got the result
Thank you all for your help

Greg_Deckler
Super User
Super User

Can you provide some sample data? This looks like simple counting. You could get there with my Groups and Super Groups article:

 

https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

No I cannot share the data...numbers in the rectangle aree nothing but ID of employee

Can you share make believe data that is in the same format as your real data? Like, is it:

 

EmployeeID,ManagerID

4,1

5,1

6,4

7,5

 

So 4 and 5 report to 1, 6 reports to 4 and 7 reports to 5?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

yes exactly

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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