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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

adding counts to slicer

Hi again guru's.

 

I have been asked to update a power BI dashboard to add a count to a slicer.

 

What I have at the moment is a standard slicer (See pic1 below ) - a slicer with a number of categories.

JonR123_0-1677588037615.png

 

What I would like to have is the same but with counts on each slicer.  Is this even possisble?

I can create a card so when I click on one of the caterory boxs above, the card shows the count - but I would like to have that count in the category slicer.

 

Something like the below example

JonR123_1-1677588253090.png

 

3 REPLIES 3
Anonymous
Not applicable

Hi both, sorry for the delayed response.

The above has done what I wanted but now I am after an additional piece of help.

 

I created a new table and used that as the slicer - it works in that it gives the sum / count of the attributes,

However, when I click on a different attribute to slice / filter my visuals, this total remains static (as I assume it is a calculation based on the raw data only).

 

Is there a way to make this calculation dynamic?

 

Code of current table counter I created...


Open_Items_counter_items =
SUMMARIZE (
    Table1,
    Table1[Category],
    "_CategoryCount"COUNT ( Table1[Category] ) + COUNTBLANK ( Table1[Category] ),
    "_Category_count"SUM ( Table1[Counts] ) - SUM ( Table1[<1Year] ),
    "_CategoryNameCount",
        CALCULATE (
            IF (
                ISBLANK ( VALUES ( Table1[Category] ) ),
                "Blank()",
                VALUES ( Table1[Category] )
            ) & " ("
                COUNT ( Table1[Category] ) + COUNTBLANK ( Table1[Category] ) & ")"
        ),
    "_CategoryNameCount2",
        CALCULATE (
            IF (
                ISBLANK ( VALUES ( Table1[Category] ) ),
                "Blank()",
                VALUES ( Table1[Category] )
            ) & " ("
                SUM ( Table1[Counts] ) - SUM ( Table1[<1Year] ) & ")"
        )
)

 

JonR123_0-1679410201168.png

 

Padycosmos
Solution Sage
Solution Sage
amitchandak
Super User
Super User

@Anonymous , seem like you need Dynamic segmentation.

 

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.