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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Is it possible to add dynamic counts next to values in hierarchical slicer?

I'm working on a hierarchical slicer that is structured like this:

>Category 1

>>Value 1

>>Value 2

>Category 2

>>Value 1

>>Value 2

 

I would like to add dynamic counts next to the values so that it looks like the following, where the counts represent the number of matching entities:

>Category 1

>>Value 1 (10)

>>Value 2 (5)

>Category 2

>>Value 1 (3)

>>Value 2 (6)

 

I'm able to get the initial counts from the table using the following measure:

Attr Val Count = 
CALCULATE(DISTINCTCOUNT(my_table[entity_id]),ALLEXCEPT(my_table,my_table[attr_value]))

 

My issue is that the counts don't update when selections are made within the slicer. An example of my desired outcome:

If {Category 1: Value 1} is selected and there are no matching entities for {Category 2: Value 2}, display (0) next to {Category 2: Value 2}

 

Is this possible?

3 REPLIES 3
lbendlin
Super User
Super User

Not possible with standard visuals. slicer visuals are expecting physical columns. Those can be shown or not (ie filtered) but they cannot be modified.

Anonymous
Not applicable

Thanks...So it wouldn't be possible outside of a slicer either, like in a standard table visual?

You can implement it in any visuals that can use measures.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.