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
mnarayan
Frequent Visitor

Dynamic Power BI reports using Parameters

Hi, 

I need help using 2 parameters with Stored Procedure in Power BI

I watched this Video -https://www.youtube.com/watch?v=iiNDq2VrZPY which helps starts with parameters however i managed to set one parameter working fine but struggling with 2nd parameter.

below code is working as expected 

"EXEC SP_BACK  'IB6701',"& Date]

i am tring as below for 2nd Parameter which is not working.

"EXEC SP_BACK_DATED_VALUATION "&PlanNo,& Date]

 

Thanks in Advance.

Narayan

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @mnarayan ,

 

In your second expression, you used a comma directly in the middle of the parameters, which is not allowed.

 

vkkfmsft_0-1654738368423.png

 

Please try the following code. Note that the numeric parameter needs to be converted to text using the Text.From function.

 

[Query="EXEC GetProductDesc_withparameters2 " & Parameter1 & "," &  Parameter2]

Or

[Query="EXEC GetProductDesc_withparameters2 " & Text.From(Parameter1) & "," &  Parameter2]

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
mnarayan
Frequent Visitor

Worked as champ.. thank you very much.

v-kkf-msft
Community Support
Community Support

Hi @mnarayan ,

 

In your second expression, you used a comma directly in the middle of the parameters, which is not allowed.

 

vkkfmsft_0-1654738368423.png

 

Please try the following code. Note that the numeric parameter needs to be converted to text using the Text.From function.

 

[Query="EXEC GetProductDesc_withparameters2 " & Parameter1 & "," &  Parameter2]

Or

[Query="EXEC GetProductDesc_withparameters2 " & Text.From(Parameter1) & "," &  Parameter2]

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.