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
Community Champion
Community Champion

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

nickyvv
Community Champion
Community Champion

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
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors