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
Suganthy
New Member

Using Decomposition Tree as Organization chart

Hi All, 

 

I am trying to use the decomposition tree  as an org chart, and below is how the data that am trying to use 

 

Unique IdentifierLevelDepartmentUltimate parent ParentLevel 1Level 2 Level 3 level 4
aL0Marketinga     
BL1salesaaB   
CL1salesaaC   
DL1salesaaD   
eL1Marketingaae   
fL1salesaaf   
gL1salesaag   
hL1Marketingaah   
iL1salesaai   
jL1salesaaj   
kL1Marketingaak   
lL1salesaal   
mL2salesaeem  
nL2salesaeen  
oL2Marketingaeeo  
pL2Marketingaeep  
qL2Marketingaeeq  
rL2Marketingaeer  
sL2salesaees  
tL2Marketingaeet  
uL2Marketingaeeu  
vL3salesaeev  
wL3salesaeemw 
xL3Marketingaeemx 
yL3Marketingaeemy 
zL4salesaeemwz

 

When I use this I get the below view, and I could see blanks as they will not be existing in other levels but we need that to have in the unique identifier column so that when we filter the name we can see which level the name is in.

Is there a way we can end the node or remove the blanks if it is not present in other levels? see picture below 

 

Suganthy_0-1642083318065.png

 

Any help would be greatly appreciated.

 

Thanks,

Suganthy

 

1 ACCEPTED SOLUTION

Use the DAX PATH functions, and ISINSCOPE() to suppress blanks.

View solution in original post

5 REPLIES 5
RealSir
Frequent Visitor

In your table create a column 'IsLeaf':

IsLeaf = 1*(ISBLANK(LOOKUPVALUE([Parent],[Parent],[Name])))

 

Leaf can't be a parrent, so it checks if given member exist on parent list, if it doesn't the result of lookup is blank. Add that to your visual as a filer and set it to be eaqual 1.

Guido_Beulen
Frequent Visitor

What exactly would that look like using ISINSCOPE() combined with the PATH function? I can't seem to get this to work... 

lbendlin
Super User
Super User

No, you cannot suppress the display of the blanks. Decomposition trees do not support ragged hierarchies.

Hi,

Thanks for the reply.  I have tried using the org charts in the marketplace instead of the decomposition tree but the filters are not working. for eg: if I have to filter a person in level 9 I should see the nodes and flow which is not happening. Do you have any other suggestions?

 

Use the DAX PATH functions, and ISINSCOPE() to suppress blanks.

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.

Top Solution Authors