Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Most Valuable Professional
Most Valuable Professional

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!

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
Most Valuable Professional
Most Valuable Professional

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!

Blog: nickyvv.com | @NickyvV


Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.