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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jaffer0786
New Member

Create Measure in Power BI Report directly using javascript sdk and Live connection

Hi Team,

 

Is it possible to create Measure in Power Bi Report not in Semantic Model using Javascript SDK or REST APIs? if yes, please share the example or documentation link for reference.

2 ACCEPTED SOLUTIONS
cengizhanarslan
Super User
Super User

In Power BI, a measure lives in the semantic model (dataset), not in the report layer. Because of that, you can’t create a new measure “inside a report” using the JavaScript embedding SDK or the standard Power BI REST APIs. The JS SDK is meant for embedding and interaction (filters, pages, bookmarks, etc.), not for changing the model metadata.

 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

View solution in original post

GilbertQ
Super User
Super User

The quick answer is no. As mentioned above, you would only be able to create measures in the semantic model. One of the ways to do this is to use a notebook.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

7 REPLIES 7
v-prasare
Community Support
Community Support

Hi @jaffer0786 ,

We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.

 

 

Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support

v-prasare
Community Support
Community Support

Hi @jaffer0786 

We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.

 

@GilbertQ@cengizhanarslan & @tayloramy, Thanks for your prompt response

 

 

Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support

jaffer0786
New Member

Thanks Taylor for above details. It helps. 

GilbertQ
Super User
Super User

The quick answer is no. As mentioned above, you would only be able to create measures in the semantic model. One of the ways to do this is to use a notebook.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

cengizhanarslan
Super User
Super User

In Power BI, a measure lives in the semantic model (dataset), not in the report layer. Because of that, you can’t create a new measure “inside a report” using the JavaScript embedding SDK or the standard Power BI REST APIs. The JS SDK is meant for embedding and interaction (filters, pages, bookmarks, etc.), not for changing the model metadata.

 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

Thanks 

tayloramy
Super User
Super User

Hi @jaffer0786

 

All measures exist in the semantic model layer of Power BI. 

The semantic model is where all data mapping/manipulation happens, so it is not possible to make measures not in the semantic model. 

 

 





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Proud to be a Super User!





Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.