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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Ankh-Morpork
Frequent Visitor

Slicer using filtered Hierarchy

Hi, I have some Survey data in which  i have Organisational Levels 1 to 4. When responding to the survey respondents would select where they are on the organisation levels and their response would be counted in there. 

 

I created a Hierarchy using the Org Levels 1-4

 

I want to only show data which has >= 10 responses. But for the slicer functionality, i need it to be a rolled up figure. So for example, the table below may be the response count for some Org groups. I would need the Slicer to showas follows:

 

Lvl 1: show Team 1 (31 responses) & Team 2 (20 responses)

Lvl 2: show Group 2 (11 responses) & Group 3 (15 responses) & Group 4 (20 responses)

Lvl 3: show Team A (11 responses) & Team B (20 responses)

Lvl 4: Show Division C (20 responses)

 

Lvl 1Lvl 2Lvl 3Lvl 4Responses
Team 1Group 1  5
Team 1Group 2Team ADivision A7
Team 1Group 2Team ADivision B4
Team 1Group 3  15
Team 2Group 4Teram BDivision C20

 

  • Team 1
    • Group 2
      • Team A
    • Group 3
  • Team 2
    • Group 4
      • Team B
        • Division C

 

Currently everything i have tried, where i would filter out or look to remove Division A and Division B but keep Team A which would meet the >=10 criteria, it still removes the Team A option as well from the slicer.

 

I would welcome any help/advice on this.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Ankh-Morpork ,
According to your description, you can either create a new table or create columns on the original table following the logic of this table creation

Table 2 = 
SUMMARIZE(
    'Table',
    'Table'[Lvl 1],
    'Table'[Lvl 2],
    'Table'[Lvl 3],
    'Table'[Lvl 4],
    "Level 1",
    IF(
        CALCULATE(
            SUM('Table'[Responses]),
            ALLEXCEPT(
                'Table',
                'Table'[Lvl 1]
            )
        ) >= 10,
        'Table'[Lvl 1],
        BLANK()
    ),
    "Leve 2",
    IF(
        CALCULATE(
            SUM('Table'[Responses]),
            ALLEXCEPT(
                'Table',
                'Table'[Lvl 1],
                'Table'[Lvl 2]
            ) 
        )>= 10,
        'Table'[Lvl 2],
        BLANK()
    ),
    "Level 3",
    IF(
        CALCULATE(
            SUM('Table'[Responses]),
            ALLEXCEPT(
                'Table',
                'Table'[Lvl 1],
                'Table'[Lvl 2],
                'Table'[Lvl 3]
            ) 
        )>= 10,
        'Table'[Lvl 3],
        BLANK()
    ),
    "Level 4",
    IF(
        CALCULATE(
            SUM('Table'[Responses]),
            ALLEXCEPT(
                'Table',
                'Table'[Lvl 1],
                'Table'[Lvl 2],
                'Table'[Lvl 3],
                'Table'[Lvl 4]
            ) 
        )>= 10,
        'Table'[Lvl 4],
        BLANK()
    )
)

Setting is not blank in level 3 page filters
Final output

vheqmsft_0-1730167050659.png

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 



View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Ankh-Morpork ,
According to your description, you can either create a new table or create columns on the original table following the logic of this table creation

Table 2 = 
SUMMARIZE(
    'Table',
    'Table'[Lvl 1],
    'Table'[Lvl 2],
    'Table'[Lvl 3],
    'Table'[Lvl 4],
    "Level 1",
    IF(
        CALCULATE(
            SUM('Table'[Responses]),
            ALLEXCEPT(
                'Table',
                'Table'[Lvl 1]
            )
        ) >= 10,
        'Table'[Lvl 1],
        BLANK()
    ),
    "Leve 2",
    IF(
        CALCULATE(
            SUM('Table'[Responses]),
            ALLEXCEPT(
                'Table',
                'Table'[Lvl 1],
                'Table'[Lvl 2]
            ) 
        )>= 10,
        'Table'[Lvl 2],
        BLANK()
    ),
    "Level 3",
    IF(
        CALCULATE(
            SUM('Table'[Responses]),
            ALLEXCEPT(
                'Table',
                'Table'[Lvl 1],
                'Table'[Lvl 2],
                'Table'[Lvl 3]
            ) 
        )>= 10,
        'Table'[Lvl 3],
        BLANK()
    ),
    "Level 4",
    IF(
        CALCULATE(
            SUM('Table'[Responses]),
            ALLEXCEPT(
                'Table',
                'Table'[Lvl 1],
                'Table'[Lvl 2],
                'Table'[Lvl 3],
                'Table'[Lvl 4]
            ) 
        )>= 10,
        'Table'[Lvl 4],
        BLANK()
    )
)

Setting is not blank in level 3 page filters
Final output

vheqmsft_0-1730167050659.png

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 



Thanks! I have added this in and it worked well. I get a (Blank) in the hierarchy dropdown if the sub categories dont add up to ten individually but there are enough that together they add up to 10. But that works for me.

 

Cheers!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors