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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.