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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bchager6
Super User
Super User

Filtering a report using query string parameters for special characters in the URL

Hi everyone,

 

I have been trying to generate a URL to filter a report I use by a specific project, with no luck. Hoping someone can help.


The table and field I want to reference is _test_table/project

I'm using the unicode character 005F, preceded by _x  and followed by _ to account for the underscore before and after "test." 

 

So at the end of the report URL I type ?filter=_x005F_test_x005F_table/project eq 'P-1234'

I've also tried ?filter=_x005F__test_x005F__table/project eq 'P-1234' to include the underscore along with the unicode character for it.

Neither options work. Kudos to anyone who can figure this one out!

 

6 REPLIES 6
v-eqin-msft
Community Support
Community Support

Hi @bchager6 ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.

 

Hope to hear from you. Thanks in advanced.😀

 

Best Regards,
Eyelyn Qin

Hi @v-eqin-msft . Unfortunately not. The only solution I have found is if I rename my table from _project_table to projecttable without the underscores. 

Hi @bchager6 ,

 

Please upgrade your Power BI Desktop to the latest version and have a try again.

 

The suffix of-->  ?filter=_test_table/project eq 'P-1234' works fine on my side.

URL FILTER.gif

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

v-eqin-msft
Community Support
Community Support

Hi @bchager6 ,

 

According to the error message, it seems that you have trouble logging in Power BI not the URL Filter.

Please close all brower windows and have a try again.

 

If it does not make sense , please use another browse or clear cookies & cache.

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-eqin-msft
Community Support
Community Support

Hi @bchager6 ,

 

Based on my test, you could use underscore directly instead of converting in URL:

 

?filter=_test_table/project eq 'P-1234'
 
3.15.5.url filter.gif
Please notice the end of the URL is ReportSection(Sometimes there will be a suffix of a page code)
 
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you. I appreciate your help here but it's not working for me for some reason. I've tried with a report and an App and receive the below message.

 

bchager6_0-1616444293516.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors