Enhancing Report Usability with Power BI URL String Parameters Business Use Case

Objective

Our team has developed a detailed Power BI report that provides comprehensive insights into customer orders. To enhance the user experience and streamline workflows, users have requested seamless integration between Salesforce and Power BI. Specifically, when viewing an order record within Salesforce, users would like the ability to click on a specific order number and be automatically redirected to the Power BI report filtered to that exact order. This enables users to transition smoothly from Salesforce to Power BI while preserving context, eliminating the need for manual filtering and improving overall efficiency in order tracking and analysis.

Introduction;

Power BI is a powerful data visualization tool, and one of its lesser-known but highly impactful features is the use of URL string parameters for dynamic filtering. This feature allows you to pass filter values directly through the URL, enabling seamless integration with other systems like Salesforce and enhancing the user experience through pre-filtered reports.

A URL string parameter is a filter condition added to the end of a Power BI report’s URL. This allows users to open the report with certain filters already applied, eliminating the need to manually adjust filters after the report loads.

Syntax of a URL Filter

BaseURL&filter=tablename%2Ffieldname%20eq%20%27value%27

 

Multiple Vaues URL Parameter.

baseURL&filter=tablename%2Ffieldname%20in%20(%27value1%27,%20%27value2%27,%20%27value3%27)

Example:

This example filters the report to only show data for the “2721” department in the “Account Team” table.

Why Use URL String Parameters?

  1. Improved User Experience
    • Users land on a report already filtered to the data that matters to them.
    • Reduces manual steps and potential for filter errors.
  2. Integration with External Systems
    • Link Power BI with systems like Salesforce, Dynamics 365, or custom portals.
    • Clicking on a record in Salesforce can open a Power BI report filtered to that specific record.
  3. Efficiency in Navigation
    • Great for dashboards shared via email or internal systems.
    • Useful in embedding scenarios where users see only their relevant data.

Use Case: Salesforce Integration In one of our projects, the client wanted their Salesforce users to click on a customer record and be redirected to a Power BI report filtered to that customer. By embedding the customer’s unique ID into the Power BI report’s URL, we enabled a seamless experience where users didn’t need to manually filter the report after opening it.

Best Practices

  • Ensure that the table and field names in the filter string match exactly as they appear in the Power BI model.
  • Use URL encoding for special characters (e.g., spaces become %20).
  • Avoid exposing sensitive data in the URL.
  • Test all URLs thoroughly to ensure filters are applied correctly.


Note:

_x0020_ is required if there is a space in the field name

no special characters needed for spaces in field values,
but if error occurs, replace each space w/ %20


Example:


If your table name is “Dim Employee” the syntax will be Dim_x0020_ Employee


I usually build the URL Parameter using an excel file.


Column C “Filtered Result” is my Final result. I make changes to each column based on the requirement for example column F which is the table name has a space in the table name, converted table name “Dim AccountOpsPnL” to “Dim_x0020_AccountOpsPnL