Forum Discussion

jaffer0786's avatar
jaffer0786
New Member
7 months ago
Solved

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.
  • cengizhanarslan's avatar
    7 months ago

    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.

     

  • GilbertQ's avatar
    7 months ago

    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.