cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Filter a report using query string parameters in the URL in an APP

I am trying to set up a URL in a button that would take a user to a pre filtered report in an APP.  I have read and seen the videos online related to passing through filters on URLs but I have not been able to get it to work.  Does anyone have additional examples on this process to a report one an APP? 

 

My example is to a filtered report on an APP.  The detail below from the Microsoft documentation Reports on APP and mentions the addition of "ctid=ctid". Does this get typed directly into the URL?

Reports in apps

If you want to add a URL filter to a report in an app, the formatting is a little different. Links to reports in an app have a query parameter (ctid) that gets added to the URL. Separate the query parameters with an ampersand (&). Keep “?filter=” and move the ctid parameter to the end of the URL, preceded by an ampersand (&).

 

Thanks

G

3 REPLIES 3
nickyvv
Super User I
Super User I

I just did it this week following the approach outlined here:

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

I just started with the URL for my report in the App. Then added the filter part, for example (I'm using a VanArsdel MSFT example here.):

?filter=Geography~2FCountry%20eq%20%27Germany%27

This translates to the example mentioned on the site: URL?filter=Table/Field eq 'value'

 

I actually didn't see this mention of ctid until now. Glad I just tried it my way. This worked fine Smiley Happy

 

Did I answer your question? Then please mark my post as a solution!
My blog: nickyvv.com



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Blog: nickyvv.com | @NickyvV


Anonymous
Not applicable

Nick,

  I am still able to get this to work and I strong feeling it is in the formatting of the URL.  I have two URL below and any help in trouble shooting would be helpful.  First below is in the format indicated in the MS documentation and 2nd is how the brower adjusts the URL after it is copied in:

 

  1. app.powerbi.com/groups/me/apps/efcebd2b-4297-4ed1-b999-e4763df8333e/reports/1142e4b4-e25a-4ad2-bd0a-.../ENTITY.LEVEL 03 EQ ‘Commercial Interiors’
  2. app.powerbi.com/groups/me/apps/efcebd2b-4297-4ed1-b999-e4763df8333e/reports/1142e4b4-e25a-4ad2-bd0a-00a3c31b824e/ReportSection8bf3828b621c47f1c922?filter=FIN_CONS~2FENTITY.LEVEL%2003%20EQ%20%E2%80%98Commercial%20Interiors%E2%80%99

Thanks

G

That URL looks good to me.

To be clear: 

  • Your table is called [FIN_CONS]
  • Your field is called [ENTITY.LEVEL 03]
  • An exact value for that field is [Commercial Interiors]

What is the message you're receiving? Is the URL invalid? Can you verify the base url (so before the ?filter part) is working?

Or is the report opening but the filter not working?

 

Can you show us your table and maybe some data?

 

Did I answer your question? Then please mark my post as a solution!
My blog: nickyvv.com



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Blog: nickyvv.com | @NickyvV


Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors