Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Data Suppression After Drill Down in Visual

Hello,

I am trying to apply data suppression on a 100% column chart based on a management hierarchy. I have a table of employees, their employee type, their manager, and the manager by hierarchy level. Ideally, at the top level, all data is displayed, however after the user drills down, if there is only an employee with no direct reports, their data is suppressed. I'm attaching a sample of the table below.

Employee NameManager NameEmployee TypeManager Level 1Manager Level 2Manager Level 3
Employee 1 AEmployee 1  
Employee 2Employee 1BEmployee 1Employee 2 
Employee 3Employee 1BEmployee 1Employee 3 
Employee 4Employee 1BEmployee 1Employee 4 
Employee 5Employee 1AEmployee 1Employee 5 
Employee 6Employee 2AEmployee 1Employee 2Employee 6
Employee 7Employee 2BEmployee 1Employee 2Employee 7
Employee 8Employee 2AEmployee 1Employee 2Employee 8
Employee 9Employee 3BEmployee 1Employee 3Employee 9
Employee 10Employee 3AEmployee 1Employee 3Employee 10
Employee 11Employee 4AEmployee 1Employee 4Employee 11


I'm also attaching images of the intended behavior. At level 1, the data for all 11 employees is shown. After drilling down, two employees are excluded from the visual on the right(employee 5 and the blank corresponding to employee 1). I've tried using the IsInScope function to get the visual behavior I'm looking for.

 

Any help would be appreciated!

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous ,

     

    I made a sample for you with IsInScope function.

    Measure = SWITCH(TRUE(),
        ISINSCOPE(Table1[Manager Level 3]),IF(MAX(Table1[Manager Level 3]) IN FILTER( ALL('Table1'[Manager Name]),NOT(ISBLANK([Manager Name]))), COUNTROWS('Table1'),BLANK()), 
        ISINSCOPE(Table1[Manager Level 2]),IF(MAX(Table1[Manager Level 2]) IN FILTER( ALL('Table1'[Manager Name]),NOT(ISBLANK([Manager Name]))), COUNTROWS('Table1'),BLANK()), 
        ISINSCOPE(Table1[Manager Level 1]),COUNTROWS('Table1'))

     

    Best Regards,

    Wearsky

2 Replies

  • use PATH and PATHITEMREVERSE. If the current employee is at position 1 in PATHITEMREVERSE for all PATHs they are in then they have no direct reports.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    I made a sample for you with IsInScope function.

    Measure = SWITCH(TRUE(),
        ISINSCOPE(Table1[Manager Level 3]),IF(MAX(Table1[Manager Level 3]) IN FILTER( ALL('Table1'[Manager Name]),NOT(ISBLANK([Manager Name]))), COUNTROWS('Table1'),BLANK()), 
        ISINSCOPE(Table1[Manager Level 2]),IF(MAX(Table1[Manager Level 2]) IN FILTER( ALL('Table1'[Manager Name]),NOT(ISBLANK([Manager Name]))), COUNTROWS('Table1'),BLANK()), 
        ISINSCOPE(Table1[Manager Level 1]),COUNTROWS('Table1'))

     

    Best Regards,

    Wearsky