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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |