Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
Is there a way to read the contents or values of a table in Power BI Embedded using Power BI Embedded Javascript or API.
Solved! Go to 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.
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
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |