Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have a PBI report with a Item master table and a sub table with Item Entries.
I open the report from a button in Microsoft Business central on the Items card page for the Item I'm viewing atm.
If I just open the URL, it will always show the last item viewed but I want to add a parameter to the URL so it knows what Item I want to see data for.
The report layout has a list at the bottom and a slicer button on top (dropdown style) to select the item you'd like to see below on the list.
Using something like &filter=items/number eq '123' will actually filter the list table but the value on the slicer button still shows the last item viewed.
I dont want to actually filter the report, I want to "select" the Item I want on the slicer through URL parameters.
How can I achieve this?
Kind regards
To dynamically update a slicer dropdown in Power BI based on a parameter passed through the URL, you can follow these steps:
Create a parameter in your Power BI report:
Create a slicer based on the Item field:
Configure the slicer to use the parameter:
Create a custom table to display the selected item:
FilteredTable = FILTER('YourItemTable', 'YourItemTable'[ItemField] = [SelectedItem])
Replace 'YourItemTable' with the actual name of your Item table and 'YourItemField' with the name of the field representing the items.
Set up URL parameters:
https://app.powerbi.com/groups/<workspace_id>/reports/<report_id>/ReportSection1?SelectedItem=123
Replace <workspace_id> and <report_id> with your actual Power BI workspace and report IDs, and set the SelectedItem parameter to the item you want to display.
Now, when you open the report with the URL parameter, it should select the specified item in the slicer dropdown, and the custom table should display data for that selected item. Make sure to adjust the table visuals, DAX measures, and field names to match your specific report setup.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
This method would be filtering the whole report and dataset not just selecting a value in a slicer, correct?
Apologies for the confusion. You are correct that the approach I outlined would filter the entire report based on the parameter value, rather than just updating the slicer selection.
To achieve the goal of updating the slicer selection based on a parameter passed through the URL without filtering the entire report, you can use Power BI's "Bookmarks" feature along with the "Buttons" feature. Here's how you can do it:
Create a bookmark for each item in your slicer:
Create buttons for each item in your slicer:
Use a parameter to control which bookmark is selected:
Set up a button action to select the bookmark dynamically:
With this setup, when you pass a value through the URL parameter, the corresponding bookmark will be selected, effectively updating the slicer selection without filtering the entire report.
This method allows you to achieve the desired behavior of updating the slicer selection based on a parameter passed through the URL without filtering the entire report.
User | Count |
---|---|
123 | |
76 | |
63 | |
50 | |
50 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |