Forum Discussion
Kushagra
3 years agoFrequent Visitor
URL Filtering not working
Hi I have tried filtering powerbi report using url filters, but unable to make it filter the published report {url of report}/ReportSection?filter='Sheet1'/name eq 'Samuel Jack' Any help is a...
- 3 years ago
Hi Kushagra
A couple of suggestions that may help:
- Does your table Sheet1 contain the column Sheet1[name]?
Just checking, since the column used in the visual appears to be name column.
If it doesn't exist, you could create a name column and set it equal to name column. - Column names used in URL parameter filters only work if they don't contain spaces.
- In my testing, filters will not work if table names are enclosed in single quotes, so remove the single quotes around Sheet1.
Putting this together, as long as your table Sheet1 contains the column name, this should work:
{url of report}/ReportSection?filter=Sheet1/name eq 'Samuel Jack' - Does your table Sheet1 contain the column Sheet1[name]?
Janey2024
2 years agoMicrosoft Employee
What if in my case, the column names contains space, is there a way to make this work by url filter?
OwenAuger
2 years agoSuper User
Hi Janey2024
Yes, see here.
If table or column names contain spaces, they can be encoded as
_x0020_
I just tested this with one of my own reports and it's working as expected 🙂
For example, to apply a filter equivalent to this DAX expression
'Employee Table'[Employee Name] = "Jack"
a valid report URL would be
https://app.powerbi.com/groups/me/reports/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/ReportSection?filter=Employee_x0020_Table/Employee_x0020_Name eq 'Jack'
Other special characters can be encoded similarly with 0020 being replaced by the 4-digit Unicode hex code of the character.
Regards