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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Dynamic Power BI reports using Parameters

I have a question from this youtube video

My question is: 

What about if we have 5 parameters, Example:

 

[Query="EXEC sr_MERData '05/1/2019','12/31/2019','AAA','BBB','CCC'"]).

 

Do you know how I should deal with this? I just tried defining PARAMETER1 and added like: [Query="EXEC sr_MERData '05/1/2019','12/31/2019',&PARAMETER1,'BBB','CCC'", CreateNavigationProperties=false]). But it is not working.

1 ACCEPTED SOLUTION
artemus
Microsoft Employee
Microsoft Employee

Try:

 

Query="EXEC sr_MERData '05/1/2019','12/31/2019'," & PARAMETER1 & ",'BBB','CCC'"

 

Also if PARAMETER1 is a string or date, you will need

 

Query="EXEC sr_MERData '05/1/2019','12/31/2019','" & PARAMETER1 & "','BBB','CCC'"

View solution in original post

1 REPLY 1
artemus
Microsoft Employee
Microsoft Employee

Try:

 

Query="EXEC sr_MERData '05/1/2019','12/31/2019'," & PARAMETER1 & ",'BBB','CCC'"

 

Also if PARAMETER1 is a string or date, you will need

 

Query="EXEC sr_MERData '05/1/2019','12/31/2019','" & PARAMETER1 & "','BBB','CCC'"

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.