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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Power BI Embedded - Read values from tables

Is there a way to read the contents or values of a table in Power BI Embedded using Power BI Embedded Javascript or API.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You could have a back-end/server side process that interacts with your data source OR potentially use the XMLA read functionality - but this would require premium capacity in order to function.

I have used XMLA in the past and have managed to create an API that fired off parameterised DAX queries at the in-memory model hosted in the Power BI service. This would likely give you the ability to fetch column names & values etc... but is not an insignificant task and isn't achievable with client side JavaScript alone.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

You best bet is probably using the 'Export Data' API -> https://github.com/Microsoft/PowerBI-JavaScript/wiki/Export-Data

This will allow you to get the contents of a table as raw (.csv) as a single block of text.

You can then parse this output or save the contents to a file within the users browser.


Note: There are limitations to this API, such as the maximum number of rows that can be returned.

Hope this helps,

Matt

Anonymous
Not applicable

Thanks for the reply @Anonymous  !

Is there any other way to read the data apart from using  Export Data API  ? I want to know values, column name , table name to create custom ad-hoc filters using the Javascript API. Or is it possible to read the data from Azure Analysis Services directly to use inside the power bi embedded web app ?

Anonymous
Not applicable

You could have a back-end/server side process that interacts with your data source OR potentially use the XMLA read functionality - but this would require premium capacity in order to function.

I have used XMLA in the past and have managed to create an API that fired off parameterised DAX queries at the in-memory model hosted in the Power BI service. This would likely give you the ability to fetch column names & values etc... but is not an insignificant task and isn't achievable with client side JavaScript alone.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.