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

Top Solution Authors