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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Test in power query SDK and in Power BI returns different results

Hi everyone,

 

 I work with the SDK of Visual Studio for Power Query in M.

I have a function, that make request to api of anaplan and returns the table with values. When I test it in visual studio, I receive the table with 3 rows. When I build the extension and use it in Power BI, I always get list with one value. What am I doing wrong?

 

Annotation 2020-04-29 141823.pngAnnotation 2020-04-29 141542.png

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

If you create a new query in power query for  "Api.RequestExport", then enter single value and invoke, you could only get one row for values each time.

Capture1.JPG

 

You could create a table with "workspace id","model id", "field id" firstly, then invoke the query "Api.RequestExport" inside this table by "Add column"->Invoke custom column".

You could refer to the following:

https://blog.crossjoin.co.uk/2016/10/01/using-the-invoke-custom-function-button-in-power-bi/

 

If you're in other cases, feel free to let me know and show how you use queries in Power BI.

 

Best Regards
Maggie
Community Support Team _ Maggie 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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.