Forum Discussion

Jveselka's avatar
Jveselka
Frequent Visitor
3 years ago
Solved

Passing Parameters to PowerBI Report

How do I pass parameters using a link to PowerBI.  

 

What I need...

I need to email link to user

When they click the link they should be auto-prompted to enter 3 parameteres

This will run query based on what they entered. 

  • Hi,

     

    You can pass parameters using a link to PowerBI by creating a URL that includes the parameters in the query string. When the user clicks on the link, they will be prompted to enter the parameters. You can then use these parameters to run a query based on what they entered. Here is an example of a URL that includes three parameters: "https://app.powerbi.com/groups/{group_id}/reports/{report_id}/ReportSection?filter={table_name}/{column_name} eq '{parameter1}' and {table_name}/{column_name} eq '{parameter2}' and {table_name}/{column_name} eq '{parameter3}' "

     

    Replace and with the appropriate values for your report. Replace and with the names of the table and column you want to filter on. Replace , , and with the names of the parameters you want to prompt the user for.{group_id}{report_id}{table_name}{column_name}{parameter1}{parameter2}{parameter3}

    When the user clicks on the link, they will be prompted to enter the values for , , and . You can then use these values to filter the data in your report.{parameter1}{parameter2}{parameter3}

    Filter a report using query string parameters in the URL - Power BI | Microsoft Learn

     

    Best Regards,

    Community Support Team _Charlotte

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

3 Replies

  • v-zhangti's avatar
    v-zhangti
    Icon for Community Support rankCommunity Support

    Hi,

     

    You can pass parameters using a link to PowerBI by creating a URL that includes the parameters in the query string. When the user clicks on the link, they will be prompted to enter the parameters. You can then use these parameters to run a query based on what they entered. Here is an example of a URL that includes three parameters: "https://app.powerbi.com/groups/{group_id}/reports/{report_id}/ReportSection?filter={table_name}/{column_name} eq '{parameter1}' and {table_name}/{column_name} eq '{parameter2}' and {table_name}/{column_name} eq '{parameter3}' "

     

    Replace and with the appropriate values for your report. Replace and with the names of the table and column you want to filter on. Replace , , and with the names of the parameters you want to prompt the user for.{group_id}{report_id}{table_name}{column_name}{parameter1}{parameter2}{parameter3}

    When the user clicks on the link, they will be prompted to enter the values for , , and . You can then use these values to filter the data in your report.{parameter1}{parameter2}{parameter3}

    Filter a report using query string parameters in the URL - Power BI | Microsoft Learn

     

    Best Regards,

    Community Support Team _Charlotte

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

    • Jveselka's avatar
      Jveselka
      Frequent Visitor

      THanks I'll give this a try, sorry for the delay in reply.  

    • Jveselka's avatar
      Jveselka
      Frequent Visitor

      Got another one for ya, this is a styling issue.  How do I group two columns together with one column header?  I need this to work in power bi in a table view and then be able to export it to excel with same format