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
jmkvalsund
Helper III
Helper III

Can stored procedures with parameters be used in a Direct Query connection?

I've read several posts and seen a lot of Youtube-movies, but I'm still confused: Is it possible to get data from a SQL-server by using stored procedures with parameters in a Direct Query connection?

Would appreciate a clear answer, yes or no 😁

(If yes, a link to a working example would be nice too)

 

Regards,

John Martin

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jmkvalsund ,

No, it is not possible to directly use stored procedures with parameters in a Direct Query connection in Power BI.

In Direct Query mode, Power BI directly sends queries to the data source at runtime, without importing the data into the Power BI model. However, Direct Query mode has some limitations, and one of them is the inability to use stored procedures with parameters.

Direct Query mode supports simple SELECT statements, but stored procedures with parameters involve more complex logic and dynamic execution, which is not supported in this mode. Direct Query mode primarily focuses on real-time querying and analysis of large datasets.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @jmkvalsund ,

No, it is not possible to directly use stored procedures with parameters in a Direct Query connection in Power BI.

In Direct Query mode, Power BI directly sends queries to the data source at runtime, without importing the data into the Power BI model. However, Direct Query mode has some limitations, and one of them is the inability to use stored procedures with parameters.

Direct Query mode supports simple SELECT statements, but stored procedures with parameters involve more complex logic and dynamic execution, which is not supported in this mode. Direct Query mode primarily focuses on real-time querying and analysis of large datasets.

Thank you for a concise answer:-)
I was hoping I could, since I have some SP's delivering ready calculated datasets from a database.
Guess I'll have to redesign them in Power BI.

Thanks again!

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