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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rsathish_red
Frequent Visitor

Embedding PowerBI QNA

Hi,

 

I am using below code to embed PowerBI QNA

 

      var models = window['powerbi-client'].models;
      var token = "...";

      var config= {
        type: 'qna',
        tokenType:   models.TokenType.Embed,
        accessToken: token,
        embedUrl:    'https://app.powerbi.com/qnaEmbed?groupId=f1486a62-4aca-...',
        datasetIds:  ['ae8aa2c5-6416-4312-...'],
        viewMode:    0,  // Interactive
    };

// Get a reference to the embedded QNA HTML element
var qnaContainer = $('#qnaContainer')[0];

// Embed the QNA and display it within the div container.
var qna = powerbi.embed(qnaContainer, config);

There aren't any errors in the browser console. I am getting below message (attached screenshot). 
powerbi_error.png

I tried "https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#" but still i am getting same error. Any idea why it is not working? 

1 REPLY 1
u02cm62
Helper V
Helper V

That isn't an error, it's a service problem

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.