Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
dp106
Helper I
Helper I

URL Encoding While passing passing parameter thru URL

Hi,

 

I am filtering a report using Query String Parametrs in URL. The reports breaks when it encounters special charaters like Ampersand, Quote etc in the filter condition (value).

 

Is there a way we can encode the URL string in Power BI.

 

Thanks

 

4 REPLIES 4
powerbiclaroty
New Member

Did you solve it? Same here

michaelshparber
Advocate V
Advocate V

Uri.EscapeDataString(part_of_url)

 

double encoding:

Uri.EscapeDataString(Uri.EscapeDataString(part_of_url))

 

v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @dp106

 

You may have a look at below articles.

https://docs.microsoft.com/en-us/power-bi/service-url-filters

https://powerbi.microsoft.com/en-us/blog/filter-a-report-with-a-url-query-string-parameter/

http://www.dutchdatadude.com/passing-filters-to-power-bi-reports-using-the-url-query-string/

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for your response.

 

I did go thru these documents before but could not get the filter condition working.

 

Here are the values in the filter condition

 

M&M  - & is replaced with %20 so the filter string is M%20M. This works fine

 

Mgmt-Int'l - ' is replaced with %27 so the filter string is Mgmt-Int%27l. When i look the URL in the browser, it see only Mgmt-Int rest is cutoff so the filter is broken.

 

Any one facing similar issue ?

 

Thanks

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.