Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
we have stored procedures made for our mobile and paginated reports and we would like to use them with PowerBI. The procedures often have temp tables and parameters. I've enabled opequery on our database, however I'm getting an error as show below. How can be stored procedure used to get data in PowerBI? Any help would be appreciated.
Details: "Microsoft SQL: The metadata could not be determined because statement 'SELECT ROW_NUMBER () OVER (PARTITION BY a.MonthBack ORDER BY sum(a.ApprovedLoanAmount) DESC)
AS' in procedure 'MR0001_MosRanking' uses a temp table."
I've found there're basicaly 3 ways how to utilise stored procedure in Power BI:
It seems, the most straightforward way is to execute variable which stores stored procedure call, however I'm having some troubles in doing so.
Hi @SJi,
Thanks for your sharing.
Regards,
Yuliana Gu
User | Count |
---|---|
4 | |
3 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
4 | |
3 | |
3 | |
2 |