Data Bear

Power BI URL Filters: How to Use URL Parameters

Power BI Sharing

Power BI offers many powerful features, but one of the most underrated capabilities is filtering reports using URL parameters. This feature becomes especially useful when embedding Power BI reports inside applications like Power Apps Canvas apps, portals, or custom web solutions.

By passing parameters through the report URL, you can dynamically filter reports based on user selections, making your analytics experience interactive, connected, and user-friendly.

If you want to deepen your Power BI expertise and learn advanced techniques like this, consider structured Power BI training

Why Use URL Parameters in Power BI?

URL parameters allow you to pass filters directly to a Power BI report when it loads.

This is extremely useful when:

  • Embedding reports inside Power Apps
  • Connecting reports to external applications
  • Creating dynamic filtering experiences
  • Personalizing dashboards for users

For example, when a user selects an account inside an app, the embedded Power BI report can automatically filter the report to that account.

Example Scenario: Power Apps + Power BI Integration

Imagine you have a Power Apps Canvas app with:

  • A gallery of accounts on the left
  • An embedded Power BI report on the right

When the user selects an account in the gallery, the Power BI report should update to show data for that specific account.

If nothing is selected, the report should display all data unfiltered.

This creates a fully connected analytics experience inside the app.

Step 1: Add a Power BI Report to Your Canvas App

To embed a report:

  1. Add a containerized screen layout
  2. Insert the Power BI tile control
  3. Select your workspace and report
  4. Configure the report to be responsive within the container

Even though the control is called a Power BI Tile, you are not limited to dashboard tiles. You can embed an entire Power BI report using the report embed URL.

To get this URL:

  1. Open your report in Power BI Service
  2. Select File
  3. Click Embed report
  4. Choose Website or portal
  5. Copy the generated URL

Once applied, the full report experience becomes available inside your app, including:

  • Multiple pages
  • Filters pane
  • Navigation controls
Step 2: Add Filter Parameters to the URL

To filter the report dynamically, you need to add parameters to the report URL.

In URLs:

  • The question mark (?) begins parameters
  • The ampersand (&) separates parameters

Example structure:

reportURL?parameter=value

For Power BI filtering, you add the filter parameter.

Example:

&filter=Table/Column EQ 'Value'

This syntax tells Power BI to filter the dataset using OData-style expressions.

Step 3: Define the Table and Column

The filter syntax requires specifying the table and column name.

Example:

filter=Account/AccountName EQ 'Delta'

This tells Power BI:

  • Table → Account
  • Column → AccountName
  • Value → Delta

If configured correctly, the report will load only records where AccountName equals Delta.

Step 4: Handle Special Characters

One common issue when using URL filters is special characters in table or column names.

For example, if your column name contains a space:

Account Name

It must be escaped using the syntax:

_x0020_

So the correct reference becomes:

Account/Account_x0020_Name

Without escaping special characters, the filter will fail silently and return unfiltered results.

Step 5: Make the Filter Dynamic

Instead of hardcoding values like Delta, you can dynamically pass values from a gallery selection in Power Apps.

Example concept:

Gallery.Selected.AccountName

This allows the embedded report to update instantly when a user selects a different account.

Now the filtering becomes fully interactive.

Step 6: Handle Special Characters in Values

Sometimes the values themselves contain special characters.

Example:

Jim's Snacks

The apostrophe breaks the filter syntax.

To fix this, replace the single quote with two single quotes.

In Power Apps, you can use a Substitute() function to handle this automatically.

Example idea:

Substitute(AccountName,"'","''")

This ensures values with apostrophes still filter correctly.

Best Practices for Power BI URL Filters

When using URL parameters in Power BI, keep these best practices in mind:

1. Escape Special Characters

Spaces and symbols must be properly formatted.

2. Test Static Filters First

Hardcode values initially to confirm the syntax works.

3. Use Dynamic Parameters Carefully

Always sanitize values before injecting them into URLs.

4. Consider Multiple Filters

You can filter by multiple fields or conditions using additional parameters.

Final Thoughts

Filtering embedded Power BI reports using URL parameters is a powerful way to connect analytics with applications like Power Apps.

It allows you to:

  • Build dynamic data experiences
  • Create responsive dashboards
  • Deliver personalized analytics to users

Once implemented, this technique transforms static reports into fully interactive data applications.

If you’re looking to master advanced Power BI techniques like embedding, filtering, and building intelligent dashboards, explore professional Power BI training