Forum Discussion

ncastillor's avatar
ncastillor
Regular Visitor
5 years ago

adding a filter to an URL to a Power BI Service, not working

Hey all,

 

A bit frustrated trying to use the filter at the end of the URL on a Power BI report hosted on a workspace.

The Table in the report is the result of a SQL query that is imported into the report. When I add the filter following the "correct syntax" URL?filter=<table>/<field> eq '<value>'  the URL goes back to its original state ignoring the filter.

 

There are of posts with similar issues but I have not found the appropriate solution. Can anybody give me some hints?

Thanks

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ncastillor ,

     

    You may check the Considerations and troubleshooting about URL filters.

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

    There are a couple of things to be aware of when using the query string parameters.

    • When using the in operator, the values to the right of in must be a comma-separated list enclosed in parentheses.
    • Power BI Report Server also supports the ability to specify additional filters using the “filter” URL parameter. Here's an example of what the URL might look like in Power BI Report Server: https://reportserver/reports/powerbi/Store Sales?rs:Embed=true&filter= Store/Territory eq 'NC' and Store/Chain eq 'Fashions Direct'
    • Report URL filters have a 10-expression limit (10 filters connected by AND).
    • The long data type is (2^53-1) due to JavaScript limitations.
    • Power BI doesn't limit the number of characters in URL query strings. Different browsers have different length restrictions.

    URL filters are supported in some embedding scenarios and not in others.

    Best Regards,

    Jay

    • ncastillor's avatar
      ncastillor
      Regular Visitor

      Hi Jay,

      Thank you for responding but it appears not helping me much with the issue.

      cheers