Forum Discussion
PowerBi published in PowerBi report Server Direct link
Hi,Anonymous .Thank you for your reply.
The rest of my team and I came to the following conclusion after testing Url filter.
For PBIRS, the page switching of pbix reports in the web portal is completely based on front-end CSS code
You can see that the front-end page adds a selected attribute to <div> where Page2 is located, including its parent tag <li> is also added with selected attribute, and sets aria-selected = true
The TAB is currently selected
When I tried to change Page1's added selected state and changed aria-selected = false to true (page2 and page1 front-end CSS property Settings switched)
The report page automatically switches to page1
Unfortunately, there is no support for setting CSS properties to URLs, as you can observe, the URL of the report does not change when you switch report pages.
And regarding the SSRS URL filter feature, it supports paginated reports, not pbix reports.
For Power BI Service, the system supports users to filter reports and change the report display page by modifying the parameters of the URL, but for Power BI Report Server, there is no such API interface developed to realize similar effects for the time being.
You can consider modifying the CSS of the front-end page to try to achieve your goal.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks for your reply.
All clear about first part of your answer.
About second part, i found the way to apply the filter via url: After your URL, you have yo add (using fields in you example):
?filter=[Table/animal eq 'cat'
The filter will be appear in the filter pane on the right.
Best Regards
- Anonymous1 year agoNot applicable
Hi,Anonymous .Thank you for your reply.
If you are targeting Power BI Service
then your requirement can be realized, but not in the report server.
By creating a button in the report with a web URL jump function, you can specify the page to be displayed when the report is opened while passing the field filtering criteria.
this is my test measure:For the report URL in Power BI Service, it contains information such as gourpID, reportID, PageID, and filter fields.
PageJumpURL1 = "https://app.powerbi.com/groups/yourgroupID/reports/2825de85-adf5-4e84-bd8b-ea0514420a29/"&[PageURL1]&"?filter=datarefreshTest%2Fanimal%20eq%20%27"&[SelectAnimal]&"%27" PageJumpURL2 = "https://app.powerbi.com/groups/yourgroupID/reports/2825de85-adf5-4e84-bd8b-ea0514420a29/"&[PageURL2]&"?filter=datarefreshTest%2Fanimal%20eq%20%27"&[SelectAnimal]&"%27"My pageURL (the pageURL is fixed for each page of the report, you can get the pageURL for each page of the report by copying the URL in the service)
PageURL1 = "d1cba0b7d3c7ab466150" PageURL2 = "eba9e747ea0da7e5db78"You can see that each page of a report has a different pageID.
Filter a report using query string parameters in the URL - Power BI | Microsoft Learn
But the report server doesn't support it, as you can see no matter which page I click on, there is no modification of the page parameter (there is no page parameter in the URL), which is also mentioned in my previous reply
So your needs are perfectly realized in power BI Service, but not in Power BI Report Server (I recommend you to write scripts to directly modify the front-end page code, so as to change the number of report pages displayed by default when the report is opened).
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian