power bi rest api
3 Topicspython example for a REST API power bi report server request
Hello, please someone has a python example of how using the REST API and interacting with some dashboard inside Power BI Report server? (I mean write a code to refresh automatically a dashboard or something like that using python outside of POwer BI) It could work in a internal wnvironment (Virtual machine)? Thanks833Views0likes1CommentMore Granular when pulling Semantic Models from Rest API
I am trying to pull all the tables inside my lakehouse using PowerBI's Rest API. Originally, I used: Reports - Get Reports In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn then created a loop to pull all datasources of reports using the datasetID: Datasets - Get Datasources - REST API (Power BI Power BI REST APIs) | Microsoft Learn However, I notice when it is a semantic model it just shows as a SQL and does not provide the tables. Additionally, It only pulls the sources of reports. I want all the data inside a workspace. Is there a way to the next granular level, so I may see if we are duplicating pulls of tables. Also, is there a way to tell if a table is a shortcut or another re-pull of the same datasource? I am going to test this pull: Admin - WorkspaceInfo GetScanResult - REST API (Power BI Power BI REST APIs) | Microsoft Learn to see if I can get tables.715Views0likes1CommentExporting paginated report to PNG with Rest API seems not to provide consistent anti aliasing
Hello, We are currently facing an issue with the https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file#exportreportsettings endpoint. The result it outputs when we ask for PNG image is not totally consistent, especially for charts. Legend & borders are not aliased the same way leading to differences between the images. The issue is that our automation is trying to find out the differences between two snapshot to ensure that for the same parameters we always have the same render after we, for example, changed the DB. Ths can be seen in those three snapshots: The first snapshot The second snapshot, few hours later And if I ask the difference to Gimp, I get : To summarize: - table is properly rendered - chart header is properly rendered - chart itself with all text are not aliased the same way. Is there a way to force the aliasing to be consistent from our side? Regards757Views0likes1Comment