Forum Discussion
URL Filter Parameter Not Working
Hi,
I am having an issue passing parameters in a report URL. I am following the documented format: URL?filter Table/ColumnName eq 'value' but I get error 404 (see image below). The report works without passing a parameter.
I am using the following parameters:
Table Name = ViewProjects
Column Name = Project Name
Value = 'Bay Walk 10th to 12th Street - Marina'
Please let me know what I am doing wrong.
Thank you!
5 Replies
- v-yulgu-msftMicrosoft Employee
Hi Anonymous ,
How did you get the report URL? The highlighted URL looks unmatched with the original one. Please refer to this document.
Best regards,
Yuliana Gu
- AnonymousNot applicableHi Yuliana,Thank you for responding!I copied the report URL from my Workspace and placed it in the following measure:Then, I used the following formula to calculate the report filter:Subproject Filter =Var SubprojectURL = [Subproject URL]RETURNIF(AND(ISFILTERED('ViewProjects'[Project Name]),NOT(ISBLANK(SELECTEDVALUE('ViewProjects'[Project Name])))),// THENSubprojectURL &"?filter=" &"ViewProjects/Project_x0020_Name" &" eq " &"'" &SELECTEDVALUE('ViewProjects'[Project Name]) &"'",// ELSESubprojectURL)I then placed the measure "Subreport Filter" in a table.Please let me know if you see anything wrong in my formulas.Thank you!Regards,Carlos Tortoledo
- v-yulgu-msftMicrosoft Employee
Hi Anonymous ,
Please set the data category for measure [Subproject Filter] to "Web URL". Besides, please copy the report URL appended with query string parameter into web address to check if it works, similar to below, replace 'xxxx' with a specific project name.
?filter=ViewProjects/Project_x0020_Name eq 'xxxx'Best regards,Yuliana Gu
- AnonymousNot applicable
Yuliana,
When I click on the report URL that I calculate, Power BI converts the link into "https://login.microsoftonline/55..."
Not sure why it does that.
When I do not select any values in my report (no Project Name selected), my formula returns the report URL without any filter, in which case the link works fine. Only when I select a value, the report filter does not work.
Thank you.
Carlos Tortoledo