How can you customize the toolbar and add buttons in Power BI embedded reports

0 votes
How can you customize the toolbar and add buttons in Power BI embedded reports?

I’m working on a Power BI Embedded project and need to customize the toolbar to add specific buttons or functionality that align with our business needs. What options and methods are available to achieve this customization, and how can they be implemented while ensuring a smooth user experience?
Dec 18, 2024 in Power BI by Evanjalin
• 10,680 points
51 views

1 answer to this question.

0 votes

To customize the toolbar and add buttons in Power BI Embedded, follow these steps:

  1. Embed the Report: Use the Power BI JavaScript API to embed the report in your app.

var embedConfig = { 

type: 'report', 

tokenType: powerbi.models.TokenType.Embed, 

accessToken: '<Embed Token>',

embedUrl: '<Embed URL>',

 id: '<Report ID>',

settings: { filterPaneEnabled: false, navContentPaneEnabled: false }

 };

var report = powerbi.embed(document.getElementById('reportContainer'), embedConfig);

Customize the Toolbar: Hide default buttons by configuring the settings property and add custom buttons outside the report. Use custom HTML buttons to trigger actions like filtering or exporting.

<button id="applyFilter">Apply Filter</button>

document.getElementById('applyFilter').addEventListener('click', function() {

var filter = { $schema: "http://powerbi.com/product/schema#basic", target: { table: "Sales", column: "Product" }, operator: "In", values: ["ProductA", "ProductB"] };

 report.updateFilters(powerbi.models.FiltersOperations.Add, [filter]);

 });

Try and optimize: Test buttons or actions to verify their function while ensuring maximum performance; customize the toolbar to ensure clarity and responsiveness.

Such that you will be able to add certain business-specified functionalities while embedding the Power BI reports.

answered Dec 18, 2024 by pooja
• 11,310 points

Related Questions In Power BI

0 votes
0 answers

How can you customize the toolbar and add buttons in Power BI embedded reports?

How can you customize the toolbar and ...READ MORE

Dec 13, 2024 in Power BI by Evanjalin
• 10,680 points
32 views
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

How do you add a new filter pane in old Power BI reports?

Hi, You can perform the following steps: 1. Open ...READ MORE

answered May 22, 2019 in Power BI by Avantika
• 1,520 points
1,464 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,411 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,794 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,520 points
1,568 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 52,350 points
1,701 views
+1 vote
2 answers

How can I automate data refreshes in Power BI, and what are the scripting options available?

You can use the Scheduled Refresh option ...READ MORE

answered Nov 20, 2024 in Power BI by Anu
• 1,200 points
168 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP