Forum Discussion

b-kopik's avatar
b-kopik
Icon for Helper III rankHelper III
30 days ago

Replit and PowerBI

Hello,

Does anyone have experience integrating a PowerBI dashboard into Replit?

We have a few pages in Replit, and a dashboard in PowerBI and would be keen to see them in the same platform.

Thanks,

Bruna

8 Replies

  • Hi b-kopik​

    Yes, Power BI can be integrated into a Replit application. The simplest approach is to embed the Power BI report using an iframe, but for private/business data, Power BI Embedded with secure authentication is the recommended approach.

    If you share whether this is for internal users or external customers, I can suggest the best setup.

    Related Links :
    https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-embed-secure
    https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-publish-to-webhttps://learn.microsoft.com/en-us/power-bi/developer/embedded/embedded-analytics-power-bi



  • Hi b-kopik​,

    Yes, this is possible. The main thing is how you want the Power BI report to be accessed from Replit.

    If the dashboard is only for internal users who already have access to Power BI, you can embed the report in the Replit application using the Power BI JavaScript SDK / embed experience. Users would still need the appropriate Power BI permissions.

    If the Replit app is intended for external users, you’ll need to look at Power BI Embedded rather than simply using the normal “Publish to web” option. I’d avoid Publish to web unless the data is genuinely public, since it makes the report publicly accessible.

    So the basic setup would be:

    Replit app → Power BI embedded report → Power BI Service / Fabric

    The right approach depends mainly on whether the Replit pages are for authenticated internal users or external/public users.

    • b-kopik's avatar
      b-kopik
      Icon for Helper III rankHelper III

      Hello and thanks so much for the reply. What if I wanted Replit to use the contents of the dashboard? Unfortunately the dataset is too complex to upload it on its own to Replit (I have a lot of calculated columns, etc). But would be great if Replit could derive the 'top insights' from my dashboards and create a page with those findings. We currently have 5 pages with different topics (not very data heavy).

      • ShahRukhSameer's avatar
        ShahRukhSameer
        Icon for Skilled Sharer rankSkilled Sharer

        Hi b-kopik​,

        Yes, in that case you don't necessarily need to move the underlying dataset into Replit.

        If the goal is for Replit to use the calculations already defined in your Power BI semantic model and then present things like “top insights”, I’d look at querying the Power BI semantic model rather than trying to extract the report pages themselves.

        Power BI has an Execute Queries REST API that allows you to send DAX queries to the semantic model and get the results back. So you could have something along the lines of:

        Replit → Power BI REST API → Semantic Model → DAX results → Replit insight page

        That means your existing calculated columns, measures and model relationships can continue to live in Power BI. Replit only receives the relatively small result sets it needs for the insight page. The API requires the appropriate Power BI permissions and the tenant setting for Execute Queries to be enabled.

        For your case, with five pages that aren't particularly data heavy, this could actually work quite well. You could define a few specific DAX queries for each topic, for example:

        • Top 5 items by value
        • Biggest increase/decrease
        • Items that are overdue
        • Current vs previous period
        • Key KPIs
        • Exceptions or unusual changes

         

        Then Replit could take those results and generate a more user-friendly “Top Insights” page.

        I would avoid trying to scrape the values from the Power BI visuals themselves. The semantic model is the better source because it already contains the business logic and calculations.

        The main thing I'd clarify before building it is whether the Replit application will be used by the same authenticated users who have access to Power BI, or whether this will be an external/public application. That will determine how I'd handle authentication and access to the semantic model.

  • v-kathullac's avatar
    v-kathullac
    Icon for Community Support rankCommunity Support

    Thankyou ShahRukhSameer​ , AnkitaaMishra​   for Addressing the issue.

    Hi b-kopik​ ,

    Thank you for reaching out to Microsoft Fabric Community Forum, Below are the few points which can resolve your issue. Let us know if you need any further assistance

    1. Keep the existing Power BI semantic model as the source of truth. There is no need to upload the complete dataset to Replit.
    2. Use the Power BI Execute Queries / DAX API to retrieve the required results from the semantic model.
    3. Create a small number of DAX queries for each of the 5 report pages to retrieve KPIs, trends, top/bottom performers, and other important metrics.
    4. Return only the required aggregated results, rather than the complete underlying dataset.
    5. Let Power BI continue to handle the existing measures, calculated columns, relationships, and business logic.
    6. Pass the API results to the Replit application/AI layer.
    7. Use the AI to identify top insights, trends, significant changes, anomalies, and areas requiring attention.
    8. Display the generated findings in a dedicated Top Insights page in Replit.
    9. Ensure the Execute Queries API is enabled in the Power BI tenant and that the application/user has the required permissions on the semantic model.
    10. This approach avoids transferring the complex underlying dataset to Replit while preserving the existing Power BI calculations and business logic.

    Thanks,

    Chaithanya.

  • v-kathullac's avatar
    v-kathullac
    Icon for Community Support rankCommunity Support

    Hi b-kopik​ ,

    As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

    Regards,

    Chaithanya

  • v-kathullac's avatar
    v-kathullac
    Icon for Community Support rankCommunity Support

    Hi b-kopik​ ,

    As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

    Regards,

    Chaithanya