Forum Discussion

samaresh's avatar
samaresh
Frequent Visitor
9 years ago

Make dynamic oData souce

I want to develop a power BI app. To do this using power BI desktop i have prepare a pbix file where have 3 queries that return from sharepoient list using end point "/_vti_bin/ListData.svc". Usig this data i have prepared visualization and different report that show the data from my test environment. I am able to publish power BI app from powerbi.com but problem is it is showing my test data. I want user will provide the data souce url and show report with their own data not test data. 

 

I have created a parameter for source and give a current value. So need to change this souce url with user provided value.

In my dataset query souce is like  Source = OData.Feed(source & "/_vti_bin/ListData.svc") so if it prompt for source than it will be load the customer specific data.

7 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    samaresh,

    You can create a Power BI report template(PBIT) with data source parameter, then send the PBIT file to your users. The users can instantiate the PBIT and generate report with their own data, after that, they can publish the PBIX file to Power BI Service. For more details, please review the following  blog and similar thread.

    https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
    https://community.powerbi.com/t5/Desktop/How-to-create-a-template-with-a-different-data-source-every-time/td-p/50969

    Regards,

    • samaresh's avatar
      samaresh
      Frequent Visitor

      Thanks for your reply. Actually i will have to publish the App in app source/App store. User will get the app from store and will start using it no way to make pbix file themself. There are lot of example in store like git gub, goodle analytics, QuickBooks etc. When user get that app in Power BI, It shows the current user specific reprots.

      My expectation is when user access the app from store for first time it will ask the Sharepoint URL than it will load the data from that sharepoint and show the reports.

      • Anonymous's avatar
        Anonymous
        Not applicable

        samaresh,

        What you describe can't achieved in Power BI Service. User can get their report by connecting to the existing content pack that Power BI Service provides. For the dataset you create, you would need to define PBIT with data source parameter for different users to generate their reports.

        Regards,
        Lydia