Reply
WishAskedSooner
Resolver III
Resolver III

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.

5 REPLIES 5
WishAskedSooner
Resolver III
Resolver III

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.

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.

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.

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)