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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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