cancel
Showing results for 
Search instead for 
Did you mean: 
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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors