Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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?
Solved! Go to Solution.
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
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
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 33 | |
| 33 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 45 | |
| 30 | |
| 26 |