Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have created a user data function that takes input from a list slicer, button slicer, and a text slicer. It creates a row in a SQL database for each item selected in the list slicer. This is working as expected.
However, if I try to use Select All in the list slicer, the button to submit becomes disabled with a message that something needs to be selected in the list (despite the fact that everything is selected in the list). I've found in searching that PBI treats select all as select none, which makes sense in other contexts, but not here. I've been trying to come up with a workaround, such as selecting all except one and then saving with that as the default state, but it's behaving unexpectedly.
Is there a way to use the list slicer with user data functions without the user having to select items one by one?
And/or, is there a way to use the list slicer with UDF and multiple fields in the list? The list stops showing up as an option for the data function when I add more than one field.
Hi @omnipotamus ,
Yeah, this is a known quirk with list slicers and user data functions in Power BI. When you hit "Select All," Power BI actually treats it as “none selected” in the backend, which breaks UDF submission (the button gets disabled). There’s no native fix—users have to manually pick items.
Workarounds people use:
For your second question:
If you add multiple fields to the list slicer, it stops supporting UDFs—this is also a current limitation. Only one field in the slicer works with user data functions.
Not perfect, but that’s the state of things. If you want, you can add an idea in the Power BI forums for better support!
Let me know if you want help with any specific workaround.
Hi @omnipotamus ,
If the information posted by @burakkaragoz is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help you.
We value your feedback, and it will help us to assist others who might have a similar query.
Thank you for your contribution in Fabric Community Forum.
User | Count |
---|---|
84 | |
75 | |
69 | |
48 | |
39 |
User | Count |
---|---|
111 | |
56 | |
50 | |
42 | |
40 |