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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lawrenceabith
Helper IV
Helper IV

Rename ALL value in dropdown slicer?

Hi Everyone!

 

I have a slicer. i.e. ALL 2016 2017 2018. When I set it to a dropdown, the default value visible is "ALL." Is it possible to rename the ALL to whatever I want so instead of seeing ALL?

 

Many thanks!!!

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hello @lawrenceabith

Currently, we cannot customize the default value of "ALL" to other values such as "All Field Name" in format.

But we can build a visual card by one measure and group this visual and segmenter to achieve its goal.

I build a slicer table.

1.png

build a measure.

Measure =
VAR _countrow =
    COUNTROWS ( 'Table' )
VAR _Total =
    COUNTROWS ( ALL ( 'Table' ) )
RETURN
    IF (
        _countrow = 1,
        MAX ( 'Table'[Year] ),
        IF ( _countrow < _Total, "Multiple Selections", "All name of the field" )
    )

Display this measurement in Card Visual and Segmenter and Visual Card group.

2.png'

The result is as follows.

Default:

3.png

select 2017:

4.png

Select 2017&2018:

4.png

You can download the pbix file from this link: Rename the ALL value in the drop-down segmentation?

You can vote on an idea using this link for this feature: https://ideas.powerbi.com/ideas/search-ideas/

Best regards

Rico Zhou

If this post helps,then consider Accepting it as the solution to help other members find it faster.

View solution in original post

8 REPLIES 8
v-rzhou-msft
Community Support
Community Support

Hello @lawrenceabith

Currently, we cannot customize the default value of "ALL" to other values such as "All Field Name" in format.

But we can build a visual card by one measure and group this visual and segmenter to achieve its goal.

I build a slicer table.

1.png

build a measure.

Measure =
VAR _countrow =
    COUNTROWS ( 'Table' )
VAR _Total =
    COUNTROWS ( ALL ( 'Table' ) )
RETURN
    IF (
        _countrow = 1,
        MAX ( 'Table'[Year] ),
        IF ( _countrow < _Total, "Multiple Selections", "All name of the field" )
    )

Display this measurement in Card Visual and Segmenter and Visual Card group.

2.png'

The result is as follows.

Default:

3.png

select 2017:

4.png

Select 2017&2018:

4.png

You can download the pbix file from this link: Rename the ALL value in the drop-down segmentation?

You can vote on an idea using this link for this feature: https://ideas.powerbi.com/ideas/search-ideas/

Best regards

Rico Zhou

If this post helps,then consider Accepting it as the solution to help other members find it faster.

Anonymous
Not applicable

Hi, 

I have country dropdown and the "ALL" value have to be replaced with a custom text. 
Could you please me with your DAX. I have tried the same DAX that you have used with date field. 

But as I am using the country field which is a text field i am facing difficulty of counting the rows and Max of the rows as it's a text field it's throwing an error. 

Please kindly help on this if the dropdown field is a text field "All" have to be replaced with a custom text

 

Regards,

Power Bi User.

Hi, - I am trying to recreate this suggestion with no luck and the link to the PBIX no longer works. Could you please explain what to do with the measure once created?

Hi @v-rzhou-msft,

 

Awesome idea! I'll try and back to you if it works.

 

Many thanks!!

Greg_Deckler
Super User
Super User

@lawrenceabith  - If your slicer table only contains 2016, 2017 and 2018, then no, that is a default "All" that appears. You can turn on single select to get rid of it but I know of no way to change it from All to something else.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler,

I need to change "All". Because I have an app using Power BI embedded and I need to change the name from "All" to "All name of the field"

Many thanks,

You can use the dynamic title formatting maybe to give the slicer a title that says "All name of field". Would that help? https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-format-visual-titles

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@lawrenceabith - There may be some magical method to do that in embedded experience somehow but I am not aware of anything of anything in the slicer visual that will allow you to do that in the Desktop or the Service. You could look for a third-party visual that let's you do that or maybe get the code for the slicer visual and modify and create your own visual. Only other thing I can think of would be to create a seperate, disconnected table with the values:

 

All Years

2016

2017

2018

 

Then turn on single select. Then code a measure to act appropriately given the slicer value. That's about all of the ideas that I have.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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