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
Anonymous
Not applicable

Executing SP in Power BI

Hi All,

 

I'm trying to create parameter and execute my SP in Power BI.

 

While initially loading the data the EXEC command ran correctly and data was loaded, but after creating the parameters and updating the query I'm getting the below error while performing Close and Apply.

 

Please let me know what is wrong in this?

 

P.S : While doing all these actions with Import data mode everything is working fine but I'm getting the error while using Direct Query mode.

 

Updated Query:

Himanshu_13_0-1646895281407.png

 

Parameters Created:

 

Himanshu_13_1-1646895323751.png

Error:

 

Himanshu_13_2-1646895414310.png

 

 

Regards,

Himanshu

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , please check the syntax

https://www.c-sharpcorner.com/article/execute-sql-server-stored-procedure-with-user-parameter-in-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.