Forum Discussion
URL parameter to filter report on a field with spaces
Jumping off from this example:
http://stackoverflow.com/questions/35555694/passing-parameters-to-power-bi-filter-programmatically
I can successfully get this filter URL parameter to work:
That works fine because my table is named Date and my field is named Date.
If I try to filter on a field or a table with a space, then it fails:
?filter=My Table/My Field eq '2014'
Renaming table names and field names to remove spaces is not feasible as it breaks existing reports and makes the model less user friendly/readable. Is this truly a limitation in Power BI Service and there's no way to escape out the space?
10 Replies
- FGutiyama
Advocate I
PowerBI leverages OData syntax, so try to replace the space by _x0020_ That worked for me.- RichieRich
Advocate III
Thank you, that's a great tip. Worked in the Power BI export function in Power Automate too
- konstantinos
Memorable Member
There is a limitation - table or field names cannot have spaces , at least according to the post..
- There must not be any dots in the filter parameters (datasource or parameter name) as the Power BI code rejects it silently as invalid names;
- AnonymousNot applicableI have reported this limitation here:
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/13852461-url-filter-report-field-that-has-a-space
- StephenWagnerNew Member
Is there a way to filter the "Publish to web" URL? I've tried adding &filter=Table1/ZipKey eq '00001' but it doesn't work on this URL:
but it does work on
I need to embed this report within a webpage.
- OneWithQuestion
Post Prodigy
Has anyone heard any news on a fix?
- MattAllington
Community Champion
Try using %20 instead of the single space character. I believe these are substitutes in URLs.
- AnonymousNot applicable
Hello,
I have a situation where I need to send the filter values from Power BI report published on Power BI service to report builder as parameter values through URL. Do you have any idea on this? If yes, could you please help me out.
- harikvRegular Visitor
In case people still end up here looking for an answer, this is explained in the MS Documentation:
- EricShahi
Helper IV
what do you in below situation when ,
Table Name = "Team (department)"Is this correct way of doing is ?
filter=Team_x0020_(department)/Team eq 'IT'