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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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

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
MattCalderwood
Responsive Resident
Responsive Resident

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 @MattCalderwood  !

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 ?

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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