Forum Discussion
Default value "nothing" in Segment with "simple selection"
Hello,
how to add a value by default "nothing" for exemple in a segment "simple selection".
It is to have a value before one selection
Thanks for your help.
Sophie
- Anonymous2 years ago
Hi Sophie_
Agree with Syndicate_Admin.
You can create a new table containing “Nothing” with the following DAX:
SelectionTable = UNION( SELECTCOLUMNS( DISTINCT(yourtable[yourcolumn]), "Selection", yourtable[yourcolumn] ), {"Nothing"} )Use the “Selection” column of table “SelectionTable” as the slicer field.
Current power bi slicers not provide the default selection value features, but you can try using bookmark: Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn
Or try using a custom visual "Preselected Slicer" to see if that helps: How to dynamically select the default values we ne... - Microsoft Fabric Community
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- Syndicate_Admin
Administrator
I would try to append that variable into a dimension table. I would do this from power Query, you create a table with the elements for "Nothing" and then append it to a main dimension table
- AnonymousNot applicable
Hi Sophie_
Agree with Syndicate_Admin.
You can create a new table containing “Nothing” with the following DAX:
SelectionTable = UNION( SELECTCOLUMNS( DISTINCT(yourtable[yourcolumn]), "Selection", yourtable[yourcolumn] ), {"Nothing"} )Use the “Selection” column of table “SelectionTable” as the slicer field.
Current power bi slicers not provide the default selection value features, but you can try using bookmark: Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn
Or try using a custom visual "Preselected Slicer" to see if that helps: How to dynamically select the default values we ne... - Microsoft Fabric Community
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.