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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mersh
New Member

Flask/AngularJS to Flask/PowerBI

We are converting our legacy Flask/AngularJS dashboard since Google has deprecated AngularJS and are considering either Flask/React or Flask/PowerBI. Was wondering if anyone had implemented such a dashboard in Flask/PowerBI allowing logged in tenant to populate charts across few pages, and if so what their experience was with the creation, maintenance, and its performance. 

 

Thanks
M.

 

PS: If there are any consultants willing to have further conversations feel free to ping me. 

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @Mersh ,

I'm not quite sure what you mean. Please refer to the following topic to see if it helps you.

Embed power bi dashboard into Flask Application 

    1. Embedding for your organization - Reference link
    2. Embedding for your customers - Reference link

    I will focus on the second method (it will require pro account):

    Step 1: Register your power BI application here. Moreover, copy your application id.

    Step 2: Then grant permissions to the application in azure portal.

    Step 3: Collect the following variable details while performing the the above two steps -

    • workspace id
    • report id
    • tenant id
    • client id / application id (from step 1)
    • power bi account username
    • power bi account password

    Step 4: You can use the sample flask web app provided by Microsoft for embedding.(Github link).

    In this project you will have to provide the details (collected in step 3) in the file "config.py". However, this method requires a Pro license. The files that contain embedding code are in the folder Service and Models. The folder static and templates contains the front-end html and css code. Which you can always change as per your webpage, and the routes are managed in app.py

    If you don't own a pro license then you can simply publish the report the on the web (which is not secure and everyone on the internet can view it). Then you will get an iframe code which you can inculcate in the html code of your flask web app (or any other web app).

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors