Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Please advice me step by step or share documentation to apply Power BI to my mobile application (embed to my app do not link to open PowerBI App or browsers) .
I know 2 solutions for embed PowerBI
1. Embed for organization (prefer this solution)
2. Embed for customer
1. Embed for organization
I found this script but I don't sure which rows have to custom or where to find them or any guide to custom?
such as id, accessToken, ...
remark >> License : PowerBI Capacity (P1)
Thank for your reply
You can do this by using the "Embed for your organization" method. First, you need to set up your app in Microsoft Entra (formerly Azure Active Directory). This step allows your app to securely talk to Power BI. You’ll register your app, give it permissions to read Power BI reports, and create a client secret, which is like a password your app uses to connect.
Next, you’ll collect some important details like your Tenant ID, Client ID, and the Report and Workspace IDs from Power BI. These are needed to link the report inside your app.
Then, you’ll use Power BI’s JavaScript code (called the Power BI JavaScript API) in your app. This code helps load the report into your app screen. You’ll also use the secret info you got earlier to let users log in and see the report.
Make sure your users have Power BI licenses (like Power BI Pro or Premium) and permission to view the reports. It’s also a good idea to design the reports so they look good on phone screens.
Hi @HelloTheSun ,
You're on the right track choosing "Embed for your organization," especially since you already have a Power BI Premium (P1) license, which supports this method. To embed a Power BI report directly into your mobile application without redirecting users to the Power BI app or browser, you'll need to use the Power BI JavaScript API (as shown in your code) along with Azure Active Directory (AAD) authentication.
First, register your mobile app in Azure AD to obtain the necessary credentials like client ID and redirect URI. Then, generate an AAD access token through a secure authentication flow (using MSAL or similar libraries), which you'll use in place of the placeholder accessToken in your script. The report ID and embed URL should be taken from the Power BI Service where your report is published.
Once you've configured authentication and passed valid values into your embed configuration (like report ID, embed URL, tokenType as AAD, and the access token), your mobile app will be able to securely embed the report for organizational users. Microsoft provides a full step-by-step guide here if you’d like to follow through with more detailed implementation steps.
Passionate about leveraging data analytics to drive strategic decision-making and foster business growth.
Connect with me on LinkedIn: Rohit Kumar
This is not supported. On Mobile your users need to consume Power BI content through the Power BI Mobile app.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.