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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Citegetse
Regular Visitor

Removing blanks in custom hierarchy

Hello experts, 

I have an employee table which has an employee and supervisor relationship. But when I create a hierarchy from the desktop visual by using create hierarchy and add a field to hierarchy , I only get  one level direct report, although , for instance , for the CEO, I should have VP->Directors-Managers-Team Leader-Employee. 

 

So, I created a customer hierarchy using path functions. But for some reasons I have blanks at the beginning of each level.

I tried to use Inscope function and use blanks as in the video below but, I still have the blanks. 

 

Remove_Blanks = (SWITCH (TRUE (),

             AND (ISINSCOPE (Employee_Hieararchy[DCC Org Level2] ),ISBLANK(SELECTEDVALUE(Employee_Hieararchy[DCC Org Level2]))), BLANK())

 

Although this seems to hide the blank, I don't know how I can use to work for mor my hierarchy with 8 levels. 

 

 

Does anyone know what the issue and how I can resolve it? hier.png

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Citegetse , refer if the solution given at end of this post can help

 

https://forum.enterprisedna.co/t/control-blanks-in-hierarchy/19153/16

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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