Forum Discussion
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.
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.
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.
7 Replies
- cengizhanarslan
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.
- jaffer0786New Member
Thanks
- GilbertQ
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.
- tayloramy
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.
- jaffer0786New Member
Thanks Taylor for above details. It helps.
- v-prasare
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 - v-prasare
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