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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

REST API Table.FromList for multiple lists in a row

Hi,

 

I have a connection to a rest API and at the root after doing the query I need two lists to be opened in the same table.

Cado_0-1622452522575.png

I tried these steps :

data = Source[data],

included = Source[included],

#"Converted to Table" = Table.FromList({[data],[included]}, Splitter.SplitByNothing(), null, null, ExtraValues.Error)

 

but it's not working.

Does someone knows how could I have data and included lists converted into a single table ?

Because of an API limitation I can't do it separatly and then use merge function.

 

Thanks in advance,

Regards,

Cado

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The solution is to convert to record first and then expand :

data = Source[data],
included = Source[included],
rec = Record.FromList({data,included},{"data","included"})

View solution in original post

1 REPLY 1
Anonymous
Not applicable

The solution is to convert to record first and then expand :

data = Source[data],
included = Source[included],
rec = Record.FromList({data,included},{"data","included"})

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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