Forum Discussion

PeterNagy's avatar
PeterNagy
Frequent Visitor
8 years ago
Solved

Report Server publish to website using REST API

Hello and welcome, I have many questions regarding Power BI Report Server and how to embed it with a website. I have been working for a year with Power BI and now we have to switch to On-Premises a...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Yes. We discovered that we couldn't "embed" dashboards from the on premise version in the way that you can using the cloud version, all you can do is an iframe with some params passed through on the URL. We found this to be quite demanding in terms of infrastructure. You have no real control over the aspect ratio so using it to produce ribbons of charts above or to the side of other content proved impractical. rendering each micro chart as an embedded iFrame proved to be way too much demand on the server and indeed the client (each iFrame gets the entire javascript and angular app that renderss the PBI report)

     

    If you are using the cloud version then there's a ton of API stuff for embedding using a REST API and stuff

     

    https://docs.microsoft.com/en-gb/power-bi/developer/embed-sample-for-customers

     

    But this only works for cloud deployed PBI, this fucntionality is not available on the on premise PBI-SSRS product.

     

    So we resorted to using simple D3 charts for all of this. All these micro charts respond to slicers we have built into the app to control the time period you are looking at, the currency and the position in the business heirarchy to look at/start at etc. But the slicers change everything on the screen. each of the D3 charts issue DAX queries (that are parameterised) using an ADO.Net connection to a SSAS Tabular instance, the params get changed as the slicers get changed. So not really very interactive. Each micro chart does however provide a hyperlink to a PBI report that gives the same info on the same type of chart with drilldown and detail as well as other pages so you can explore the data properly and interactively in PowerBI. Some of the micro charts are more like KPIs and these link to conventional SSRS reports to show the detail behind a count of failed transactions for example. These reports open in a new browser TAB/Window but attach to the same tabular model so everthing uses the same data. Yes DAX into SSRS, its a joy!

     

     

    We also have "shared" datasets in other PBI reports where the source isn't SSAS Tabular. We found we could create old fashioned SSRS datasets, the kind you would use in RDL reports. We can then deploy these DataSets and connect to them using the oData connector in PBI Desktop. This is explained in these blog posts

     

    http://dataap.org/blog/2018/01/17/power-bi-report-using-ssrs-shared-datasets/

     

    https://blog.crossjoin.co.uk/2017/10/15/exploring-the-new-ssrs-2017-api-in-power-bi/

     

    This means we can have a common dataset used in different PBI reports. We could, in theory, query these oData sources with the same D3 charts we used in the dashboard instead of using DAX via ADO.Net.

     

    Sorry if I just confused thingsin my original reply