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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.