Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Getting Parameter Values Selected in Paginated Reports using Javascript Library

I have embedded the paginated report in our web app, Now I need to get the selected values in the parameter and pass it to other api in the javascript behind the scene, is there any way to get the values selected in the parameters?

3 Replies

  • v-robertq-msft's avatar
    v-robertq-msft
    Community Support

    Hi, 

    As far as I’m concerned, you can only use the query string parameters to make the customers get a filtered report URL dynamically based on the selection the customer makes in the current report. When customers select the URL, they see only the intended information.

    You can refer to this link:

    https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters

     

    Thank you very much!

     

    Best Regards,

    Community Support Team _Robert Qin

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

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks for your reply. But my question is in paginated report lets say we have a multi select parameter called "Account" which has values "A","B","C". When users selects "A" and "C" only and view the report. Is it possible to get only the selected values from the dropdown using javascript in the same page

  • v-robertq-msft's avatar
    v-robertq-msft
    Community Support

    Hi, 

    As far as I’m concerned, there’s no way for us to achieve this in the Power BI at current because the dataSelected() event is not firing anymore.

     

    Please refer to this link:

    https://community.powerbi.com/t5/Developer/How-to-get-the-selected-data-from-a-slicer-in-JavaScript/m-p/293734

     

    Thank you very much!

     

    Best Regards,

    Community Support Team _Robert Qin

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