Khaja_Zaffer
Esteemed Contributor
Translator
Translator
 How to Create the Correct URL (Step-by-Step)

 

Let's say you want to filter a report to show data for a customer named "Smith & Jones Co."

Step 1: Write the filter in plain text

First, write out the filter using Power BI's OData filter syntax. TableName/ColumnName eq 'Value'

In our example, this would be: Customers/CustomerName eq 'Smith & Jones Co.'

Step 2: Identify the special characters that need encoding

Look at your filter string: Customers/CustomerName eq 'Smith & Jones Co.'

The special characters are:

  • / (forward slash)

  • (space)

  • & (ampersand)

    Step 3: URL Encode those characters

    Now, replace them with their encoded equivalents. Here are some common ones:

    Character

    Encoded Value

    $

    %24

    /

    %2F

    (space)

    %20

    &

    %26

    ' (single quote)

    %27

    +

    %2B

    Applying this to our filter:

  •  

  •