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

Join 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.

Reply
JoseCVM
Microsoft Employee
Microsoft Employee

Limit selected items in nested navigation table

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? 

1 ACCEPTED SOLUTION
artemus
Microsoft Employee
Microsoft Employee

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))

 

View solution in original post

5 REPLIES 5
artemus
Microsoft Employee
Microsoft Employee

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.

artemus
Microsoft Employee
Microsoft Employee

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))

 

JoseCVM
Microsoft Employee
Microsoft Employee

I get the idea, but I'm not sure how to make this fit into my current navigation table. Still, thanks!

Jimmy801
Community Champion
Community Champion

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

v-lid-msft
Community Support
Community Support

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,

 

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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