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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
WishAskedSooner
Continued Contributor
Continued Contributor

Getting Measure Value via JavaScript API

We have an embedded PBI Report and are having trouble getting Measure values via the JavaScript API.

 

Specifically, we have a button configured with a Web URL that points to a measure. When the user clicks the button, we can catch the event via the JavaScript API, but how to get the measure value? This seems elusive, if not impossible.

 

Web searches and AI results have not been helpful. Any code examples would be great!

 

Thanks in advance.

7 REPLIES 7
Anonymous
Not applicable

Hi @WishAskedSooner,

I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If the community member's answer your query, please mark it as "Accept as Solution" and select "Yes" if it was helpful.
If you need any further assistance, feel free to reach out.

Please continue using Microsoft community forum.

Thank you,
Pavan.

WishAskedSooner
Continued Contributor
Continued Contributor

Our developers were able to find a solution, but it didn't involve querying the semantic model. Not exactly sure how they went about it because I am not a software developer.

Anonymous
Not applicable

Hi @WishAskedSooner,

Thank you for reaching out in Microsoft Community Forum.

Is your issue resolved? If yes, please mark it as "Accept as Solution" and give it a 'Kudos' if it was helpful. This will help other members find it more easily.

Regards,
Pavan.

Anonymous
Not applicable

Hi @WishAskedSooner,

Thank you for reaching out in Microsoft Community Forum.

As you mentioned your issue has been resolved, so kindly consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful and  help other members find it more easily.

Please continue using Microsoft community forum.

Regards,
Pavan.

lbendlin
Super User
Super User

capture not only the event but also the filter context. Then run a query against the semantic model with the same filters.

@lbendlin thank you for your quick response. I will forward this to our developers and if successful will post back.

Anonymous
Not applicable

Hi @WishAskedSooner,

Thank you for reaching out to the Microsoft Community Forum.

Thank you @lbendlin  for the helpful response.

We hope your issue has been resolved using the solution suggested by Ibendlin. Please let us know if the issue is resolved or if you need any further assistance.

Please continue using the Microsoft Community Forum.

If you found this post helpful, please consider marking it as "Accept as Solution" and giving it a 'Kudos' to help other members find it more easily.

Regards,
Pavan.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.