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! Learn more

Reply
pavan1
Helper I
Helper I

I have issue with calling stored procedure in power bi

Hi Team,

 

I have a stored procedure with Temp table's while calling this procedure using openrowset in power bi ,it's not working and displaying warning like temp table's can not use like that'.

 

But as per our requirement defintely need to use temp tables and passing parameters to that procedure while fetching data to power bi because of huge data.

 

one more point i need help how to change or pass dynamically parameters to stored procedure using power bi without manual edit query option.

 

Can any one please help on above scenario how to resolve this in power bi using temp tables with direct query option.

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @pavan1,

 

1. Why not executing the stored procedure directly? 

exec has_parameter 5;

2. We can use the Parameters of Power BI to pass the dynamical parameters.

let
    num = @wod, // wod is a parameter.
    Source = Sql.Database("dale2016", "fortest", [Query="exec has_parameter " & Text.From(num) & ";"])
in
    Source

I_have_issue_with_calling_stored_procedure_in_power_bi

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HI Dale,

 

Thanks for your reply,can you send with pics sample example so that i can get clarity.

Hi @pavan1,

 

I had a image in my last post. What pics do you expect?I have issue with calling stored procedure in power bi2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Dale

Community Support Team _ Dale
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