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

View all the Fabric Data Days sessions on demand. View schedule

Reply
RichFlorida
Helper V
Helper V

Calling a DB Stored Procedure from PBI Desktop

Hello All,

 

Does PowerBI Desktop support calling a database Stored Procedure and capturing the returned value(s)?

How about from Report Builder?

 

The procedure could be an Oracle or SQL procedure.

 

Please advise!

1 ACCEPTED SOLUTION
3 REPLIES 3
CNENFRNL
Community Champion
Community Champion

Sql.Database("LAPTOP-2CM98V85\MSQLSVR", "BikeStores", [Query="EXEC dbo.uspFindProducts 100,1000"])

 Screenshot 2021-11-08 231050.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Thank you @AlexisOlson  and @CNENFRNL .

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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