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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
hipojoel
New Member

Slicer Value

Is there a way you can add the count in the Filter Pane as part of the Slicer Value?

In the Image below, it shows the basic Slicer Value.

hipojoel_0-1647237074175.png

What I am trying to do is add the count in the Filter Pane as part of the Slicer Value so that it would show as

Apples (3)

Grapes (1)

Oranges (3)

Pears (3)

 

7 REPLIES 7
hipojoel
New Member

That's what I'v read during my research. 

Thank you for time and effort, appreciate it very much.

hipojoel
New Member

Thank you for the response.

Now for the tricky part.

The image below shows the fruit Product are then filtered by Customer ID and now the Filter Pane shows the count for each type of fruits changed.

hipojoel_0-1647239791227.png

How can I get the number change to show the same count in the Filter Pane, so it would show as

Apples (1)

Grapres (1)

Oranges (1)

Pears (1)

So the count will dynamically changed based on the filtered Customer ID 

Hi @hipojoel , Could you please share your sample data in text format(not a screenshot) with expected output. Since these calculation cant be made dynamic with custom column so I can try to find out some work around if you share sample data.

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Here's the sample data

CustomerID,Product
1,Apples
1,Grapes
1,Oranges
1,Pears
2,Apples
2,Oranges
2,Pears
3,Apples
3,Oranges
3,Pears

Hi, @hipojoel 

It is basically impossible in slicer. If you want to get dynamic value, you need to consider measaure instead of calculated column. However, measure field cannot be applied to slicer. 

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Hi,can use this :

1.Build a table and connect the relationships :

Fruits = VALUES('Sheet1'[fruit])
2.Re-create columns :
Filter = 'Fruits'[fruit] & "(" & CALCULATE(COUNT(Sheet1[fruit]),ALLEXCEPT(Fruits,Fruits[fruit])) & ")"
jak11_0-1647238327706.png

 

Samarth_18
Community Champion
Community Champion

Hi @hipojoel ,

 

Create a new column like below and use it slicer:-

Prodct_count =
[Product] & "("
    & CALCULATE (
        COUNT ( 'Table'[Product] ),
        'Table'[Product] = EARLIER ( 'Table'[Product] )
    ) & ")"

 

Output:-

Samarth_18_0-1647238112557.png

Samarth_18_1-1647238124065.png

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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