Forum Discussion

thiago_maturana's avatar
thiago_maturana
Regular Visitor
2 years ago

How to get the user's selected parameters in Power Bi Embedded Paginated Report

Hello guys.

I'm using the power-bi javascript client and I'm trying to get the parameters from a paginated report that the user selects in the dropdown.

The parameters are dynamic (will change from report to report and come from PowerBi). I didn't find any function in the library that would help me with that.

I built an external export function that will call the ExportTo Endpoint from powerbi, but I want to send the parameters the user selected for that report.

 

Do you know if this is achievable? If so, how?
Thanks!

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi thiago_maturana ,

     

    Here are actions you can perform through URL access parameters:

    • Send report parameters to a report.
    • Initiate the export of the report content in a supported file format.
    • Hide or view the parameters pane.
    • Specify DeviceInfo setting.

    URL parameters in embedded paginated reports – This capability, already supported in Power BI service, allows ISVs and developers to control their users experience by appending extra parameters to the generated Embed URL. 

    For reference: URL parameters in paginated reports in Power BI - Power BI | Microsoft Learn

     

    Best Regards,
    Rico Zhou

     

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

    • thiago_maturana's avatar
      thiago_maturana
      Regular Visitor

      Hey Anonymous , thanks for the reply.
      Yes, I saw this possibility to send extra parameters to a report, but actually what I would like to achieve is get what the user selected.

       

      Suppose the user has a paginated report with 2 parameters he defined in PowerBi. Parameter A=info1, Parameter B=info2.  I need to get the selected parameter names and values somehow through the javascript client library (or in any other way) before calling the ExportTo Endpoint, so the report will be exported with the parameters the user previously selected.