cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

URL query string parameter for filter results in error for embedded Power BI report in Salesforce

We embedded a Power BI report in Salesforce with Visualforce following Aaron Winters' instructions and syntax to dynamically apply the current record ID as a filter to the embedded report through a URL query parameter:

 

src="[POWER BI EMBED URL]&$filter=TASK/WHO_ID eq '{! Contact.Id }'"

 

I'm pretty sure it worked at some point during testing, but after changes were made to the Power BI report we began receiving this error: "This filter came from a query string parameter that was added to a report URL."

 

image (8).png

 

It seems like it's recognizing the filter syntax but not applying the value. We're also testing with a hard-coded ID and getting the same error:

 

src="[POWER BI EMBED URL]&$filter=TASK/WHO_ID eq '003xxxxxxxxxxxxxxx'"

and

src="[POWER BI EMBED URL]&filter=TASK/WHO_ID eq '003xxxxxxxxxxxxxxx'" (no $)

 

Is there something we need to do to enable URL query string parameters in this embedded report, or format this value so that it's accepted? There's not much information in the community about this error.

 

Thanks!

1 REPLY 1
lbendlin
Super User
Super User

not sure about the specialities of embedded but in the regular world the $ is not used.

 

Filter a report using query string parameters in the URL - Power BI | Microsoft Docs

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors