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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
amitbanwar
New Member

Navigation Table to display multiple sheets for data fetched over API

Dear Users,

 

I am facing an issue in converting the data into correct format to display as sheets in navigation table.

 

In below code, I have defined two functions:

Function 1 - FetchQueueInfo - This fetches the list of queue ids

Function 2 - FetchQueueDetail - This fetches the details for an individual queue

 

Now, in order to display each 'queue id' details as a separate table, I am required to iterate over the table and fetch the necessary details and convert it into list in {"name", "data"} format. However, when I am calling below function, I am getting an error - "We cannot convert a value of type Function to type List".

 

// This file contains your Data Connector logic
section AA;

[DataSource.Kind="AA", Publish="AA.Publish"]
shared AA.Contents = () as table =>
let
token = FetchToken(),
queueInfo = FetchQueueInfo(token),
source = #table({"Name", "Data"}, {
each {[queueInfo.description], FetchQueueDetail(token, [queueInfo.id])}
}),
navTable = Table.ToNavigationTable(source, {"Name"}, "Name", "Data", "ItemKind", "ItemName", "IsLeaf")
in
navTable;

 

 

Kindly assist with this query.

2 REPLIES 2
Anonymous
Not applicable

Hi @amitbanwar ,

 

Did you try to extract the FetchQueueDetail(token, [queueInfo.id]) out as a variable?

 

Best Regards,
Eyelyn Qin

lbendlin
Super User
Super User

Did you forget to specify the return type for FetchQueueDetail()  ?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.