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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Pass parameters dynamically from Power BI to REST API

Hi,


I have a REST API that takes a Product name as a parameter to retrieve a whole set of measures required by my dashboard.
I want to be able to allow end users to select a specific Product from a drop down/slicer and pass that Product name to my REST API and refresh the dashboard for the selection made.


I don't want to load all the data first and then allow user to select the Product name since the fact tables are extremely huge and would impact performance. Is there any way to dynamically pass the values to the REST API as a parameter(at run time)?

Any ideas would assist please?

Thanks

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can pass the parameters like in the example below, however, you will be reloading the model every time you do it.

https://www.youtube.com/watch?v=7TfV8qTUyfU 

 

Currently, you can not use slicers to do it as slicers work with a model that has been loaded and you are trying to pass the parameters before load

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

View solution in original post

5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can pass the parameters like in the example below, however, you will be reloading the model every time you do it.

https://www.youtube.com/watch?v=7TfV8qTUyfU 

 

Currently, you can not use slicers to do it as slicers work with a model that has been loaded and you are trying to pass the parameters before load

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Anonymous
Not applicable

Hi @Mariusz , You are right, Thanks for your confirmation - Crrently it is not possible to pass the parameter through the Embedded / Report URL or Slicer to the model before loading the data.

 

Thank you,

Anonymous
Not applicable

Hi @Mariusz  , I think the Query parameters will only works at Power BI Desktop Level not the Report Level in Power BI service (Online).

 

I want to pass parameter through the Power BI embedded URL by appending filter= table/field name but the report dataset need to have complete data in order to filter but It will impact the performance as I have got huge amount of data.

 

Thanks

Greg_Deckler
Super User
Super User

You could use Query Parameters.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler , I think the Query parameters will only works at Power BI Desktop Level not the Report Level in Power BI service (Online).

 

I want to pass parameter through the Power BI embedded URL but the report dataset need to have complete data in order to filter but It will impact the performance as I have got huge amount of data.

 

 

Regards,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.