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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

6 REPLIES 6
die77777777
New Member

I solved this issue. You need to make a hierarch first in your table. lets say it goes: L0_ID,  L1_ID, L2_ID, L3_ID, L4_ID.

Next drag that into Explain By for Decomposition Tree Visual. 

Now use the code that Curbal Suggests for Matrix in this video:

 

Remove_Blanks = Switch(  True(), 
AND(ISINSCOPE(Hierarchy_Tbl[L0_ID), ISBLANK(VALUES(Hierarchy_Tbl[L0_ID]))) ||
AND(ISINSCOPE(Hierarchy_Tbl[L0_ID), ISBLANK(VALUES(Hierarchy_Tbl[L0_ID]))) ||
AND(ISINSCOPE(Hierarchy_Tbl[L0_ID), ISBLANK(VALUES(Hierarchy_Tbl[L0_ID]))) ||
AND(ISINSCOPE(Hierarchy_Tbl[L0_ID), ISBLANK(VALUES(Hierarchy_Tbl[L0_ID]))),
BLANK(),
COUNTROWS(Hierarchy_Tbl)-1  )

 

and use this Remove_Blanks as the Analyze field in the Decomposition Tree Visual.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Kudoed Authors