Forum Discussion

keithpoplar's avatar
keithpoplar
Frequent Visitor
9 years ago
Solved

Dynamically change query parameter

1. Is it possible to change query parameter dynamically using REST API or URL query string? Because I am integrating Power BI report in my own application so this is important to me. I know I can pass filter in URL to filter dataset but I am aksing query parameter here.

 

2. When a report is published to Power BI cloud service, is it possible to chagne query parameter?

 

Thanks.

  • keithpoplar There is Power BI REST APIs that you can use to automate certain tasks. Documentation for that is here and listed operations. I don't see anything for query parameters.

     

    There is Power BI Embedded which is Azure service. There are several REST operations available for that and can check them out here. Again no operation for query parameters I can see.

     

    Query parameters are currently only supported in power bi desktop and not in power bi service and that is why you don't see operations for them via APIs as well.

10 Replies

  • ankitpatira's avatar
    ankitpatira
    Community Champion

    keithpoplar There is Power BI REST APIs that you can use to automate certain tasks. Documentation for that is here and listed operations. I don't see anything for query parameters.

     

    There is Power BI Embedded which is Azure service. There are several REST operations available for that and can check them out here. Again no operation for query parameters I can see.

     

    Query parameters are currently only supported in power bi desktop and not in power bi service and that is why you don't see operations for them via APIs as well.

    • Encilo's avatar
      Encilo
      Frequent Visitor

      Is this still true? Correct me if I'm wrong but I can't use query parameters with Power BI embedded?

       

      Thanks,

      Enes

      • Markzolotoy's avatar
        Markzolotoy
        Impactful Individual

        I am on exactly same journey trying to figure out how to make reports without data parameters. Can't really comprehend how to run SQL statements without parameters. One guy here recommended to get all the data into the report and then use a slicer. Forgot to tell him that I am querying Historiians with millions of records and even more.

  • Hello,


    I have one power Bi report which i have loaded in my .net web application using embed-a-report-into-an-app.

    In this report i have used web api to get data. I have to pass LOGIN USER ID AND COMPANY ID from web application to power bi for create dynamic web api url.

     

    Any body have idea on that?

     

    Thanks in Advance.

     

     

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    I am new to Power BI. Can you please tell me how to pass filter in URL to filter dataset.