Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
As the title says, I'm having trouble figuring out how do I limit the number of selected items in a nested navigation table. I need to enforce a global maximum of 1 selected leaf item, independently of which subcategory its into. I'm basing my code around
https://github.com/microsoft/DataConnectors/blob/master/samples/NavigationTable/NavigationTable.pq
More specifically the NavigationTable.Nested one. Is it possible to disallow the selection of more than 1 leaf item across the whole table? How do I go about it?
Solved! Go to Solution.
Here is an example of a function that only lets you choose one of three options:
= Value.ReplaceType((txt as text) => ..., (type function (txt as (type text meta [Documentation.AllowedValues={"a", "b","c"}])) as any))
What you could do it make each subtree node a function which takes in a single value. You can then add metadata to that parameter with a list of possible values based on the leaf nodes.
Here is an example of a function that only lets you choose one of three options:
= Value.ReplaceType((txt as text) => ..., (type function (txt as (type text meta [Documentation.AllowedValues={"a", "b","c"}])) as any))
I get the idea, but I'm not sure how to make this fit into my current navigation table. Still, thanks!
Hello @JoseCVM , @v-lid-msft
thank you about involving me, but I have to admint that I'm not an expert on custom connectors. However I gave it a deep look and I unfortunatly didn't find and handling possibilities for this, because the only way to make this work is a option in the library itself.
I don't have any testing environments, so can't really figure out by myself
- on the SQL data connector is available an option "select multiple elements". so it seems to me that there might be some possibilities to have an impact on this.
- what if for every navigation table row the option for "isleaf" is set to false (and not launch a navigation table function but invoke the data connector)... how would this work out.
Hope that helps at least a little bit
Jimmy
Hi @JoseCVM ,
Sorry for that, we did not find any function can achieve this according this document. We are not very good at developing cutome connector, Maybe there are some solution we did not come up with. Hi @Jimmy801 and @artemus , Could you please look into this scenario and give some help, Thanks in advance.
Best regards,
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
6 | |
6 | |
5 | |
5 |
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |