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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Table.ToNavigatorTable function in Custom Connector not treated as a function in VS

Hi, im new to Power BI/power query and currently looking into some things I could create with an API. Wanted to test navigation tables according to https://docs.microsoft.com/en-us/power-query/handlingnavigationtables  The M function Table.ToNavigationTable() is within my connector:

 

 

shared NavigationTable.Simple = () =>
    let
        objects = #table(
            {"Name",       "Key",        "Data",                           "ItemKind", "ItemName", "IsLeaf"},{
            {"Item1",      "item1",      #table({"Column1"}, {{"Item1"}}), "Table",    "Table",    true},
            {"Item2",      "item2",      #table({"Column1"}, {{"Item2"}}), "Table",    "Table",    true},
            {"Item3",      "item3",      FunctionCallThatReturnsATable(),  "Table",    "Table",    true},            
            {"MyFunction", "myfunction", AnotherFunction.Contents(),       "Function", "Function", true}
            }),
        NavTable = Table.ToNavigationTable(objects, {"Key"}, "Name", "Data", "ItemKind", "ItemName", "IsLeaf")
    in
        NavTable;

 

 

However Table.ToNavigationTable gives the error "The name Table.ToNavigationTable doesn't exist in the current context" as it was an undeclared variable. I was expecting this function to work as for an example: Table.ToList?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Incase someone stumbles on the same problem working through the docs:

Solution at the bottom in the .pq file

https://github.com/microsoft/DataConnectors/blob/master/samples/NavigationTable/NavigationTable.pq 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Incase someone stumbles on the same problem working through the docs:

Solution at the bottom in the .pq file

https://github.com/microsoft/DataConnectors/blob/master/samples/NavigationTable/NavigationTable.pq 

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.