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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
prakash11440278
Post Prodigy
Post Prodigy

PASSING DYNAMIC PARAMETERS IN URL TO FILTER A POWER BI REPORT

Hi Team,

How to pass dynamic parameters in report url. I have cds parameters in backend, that i want to use in report url as a dynamic. How we can acheive this? Thanks in advance.

 

Example:

Our report URL is: https://app.powerbi.com/groups/me/reports/02ff8888-a5fd-4dc7-c9dabf5ca0a5/ReportSection.

Now let’s add the filters. To do this, we append to our report URL: ?filter=query/field eq ‘data to filter on’

For example, let’s say we want our report to only show data for AccountId 7. Our query would look like:

https://app.powerbi.com/groups/me/reports/02ff8888-a5fd-4dc7-c9dabf5ca0a5/ReportSection?filter=Accounts/AccountId eq 7

3 REPLIES 3
amitchandak
Super User
Super User

@prakash11440278 , The way you described is correct. What is the challenge?

You can pass these parameters from your portal

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

 

Hi @amitchandak ,

What i have added the value 7 is a static. That i want to be dynamic and embed the url in cds.

Hi @prakash11440278 ,

 

Do you mean url filter on embed report? If this is a case, current it still not support dynamic filter parameter.

 

Reference link:

Filter a report with a URL query string parameter

Get started with a sample 

Control report filters 

 

I think RLS or Measure will suitable for your requirement.

https://www.kasperonbi.com/creating-a-hyperlink-with-filters-through-dax/

Add hyperlinks (URLs) to a table or matrix - Power BI | Microsoft Docs

 

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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