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

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 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.