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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register 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

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors