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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors
Top Kudoed Authors