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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Help with URL Filters (Special Characters?)

Hello,

 

I'm having trouble implementing a url filter and I'm wondering if anyone can help me figure out what I've done wrong.

 

Here's the url/query parameters:

 

[url]?filter=SLA_x0020_Query/Bldg._x0020_Region in ('NorAm West', 'NorAm East')

 

Table: "SLA Query"

Column: "Bldg. Region"

Values: "NorAm West" and "NorAm East"

 

 

I replaced the spaces per https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters but that doesn't seem to work as expected. I've tried replacing all the spaces in the url, none of them, some of them. I can't seem to get this to filter appropriately.

 

What have I done wrong?

5 REPLIES 5
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may try:

 

[url]?filter=SLA_0020_Query/Bldg._0020_Region eq 'NorAm West' and SLA_0020_Query/Bldg._0020_Region eq 'NorAm East'

For reference:

 

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

 

https://stackoverflow.com/questions/54667067/power-bi-embedded-parameter-space-in-column-name

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

Anonymous
Not applicable

Thanks for your reply Amy,

 

I tried your attempt but it did not work. I think the period after Bldg is a problem, so I also tried changing that, no dice. Additionally, I don't think your logical statement returns the desired result (if it worked). I want to include data points from East and West. There are no data points that are both East and West. Perhaps or would work.

 

Attempt below:

url.PNG

Greg_Deckler
Super User
Super User

@Anonymous - Sorry, you are using this where and getting what as an error?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks Greg,

 

My error is a webpage not found: Page not found.PNG

 

My goal is to just to provide a link to a user such that they're sent to a page that has filters pre-applied through the url. One thing that a coworker wondered was whether additional action needed to be taken surrounding bookmarks. The url without any url filters applied is one that directs to a bookmark view of the report. 

Anonymous
Not applicable

Problem Unsolved

 

Here's an additional (unsuccessful) attempt: 

 

[url]?filter=SLA_x0020_Query/Bldg_x002e__x0020_Region in ('NorAm West', 'NorAm East')

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.