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.
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!!!
Solved! Go to Solution.
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.
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.
'
The result is as follows.
Default:
select 2017:
Select 2017&2018:
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.
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.
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.
'
The result is as follows.
Default:
select 2017:
Select 2017&2018:
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.
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?
@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.
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,
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
98 | |
81 | |
65 | |
62 |
User | Count |
---|---|
147 | |
116 | |
104 | |
88 | |
65 |