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
daviidkovacs
New Member

How to pass parameters to the SQL statement from the embedded app?

Hi,

 

I'm new to the PBI services so my question might be a bit silly but I'm a bit lost.

 

TLDR

Is it possible to pass parameter to the SQL query from the app over the PBI API to display the report? What would be the best way to do that?

 

Current stack

  • In the PBI Desktop we have reports and the SQL queries are sitting there.
  • The published reports are in the PBI services in a Workspace.
  • We have a single page application with it's own login and role system where we'd like to display the reports.
  • We also have an API (in Azure Funtions) what get's all the embedTokens and embedLinks for the reports in a specific group from the PBI services.
  • Until this point everything works fine however the report contains everybody's data.
  • So I'm wondering would it be possible to pass a param to the SQL query from the app to update the report?

Goal

When the user logs in the app knows the group ID he belongs to. The displayed report should be based on that specific ID and the user should not be able to see any other results.

 

I imagined something like:

  • The report runs the SQL query with the passed param and the embedded report would update.

 

This might be not the best approach but how could we achieve that? Is it even possible to dynamically update the SQL query from the app/API?

 

if not, how could I display the data based on the user's role?

 

Thank you in advance,

Regards

David

 

0 REPLIES 0

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.