Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello @amitchandak
@v-yuta-msft
@v-yulgu-msft
@V-lianl-msft
@Anonymous,
I have connected power BI with a stored procedure from a SQL Server database. I get results returned when I run the Stored Procedure in SQL Server but when I invoke a function after entering my parameters in Power Query I only get column headers and an empty table.
I have used the following URL resources to get to this point but still no positive results:
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
I will supply pictures to help bring my issue into context:
1. This is my "M" Code:
2. These are the parameters I enter:
3. This is the returned result set in PowerBI after the function in invoked:
Any help or insight would be appreciated!
Thanks!
Aaron
Solved! Go to Solution.
I'd try removing the spaces between the double quotes and single quotes and I'd doublecheck the data types of the parameters in the stored procedure.
Yes! Data was returned. Thanks You! What is the reason behind the importance of spacing with the quotes?
Aaron
There was space that ended up being part of the parameter passed to the stored procedure.
Got it, thanks again!
I'd try removing the spaces between the double quotes and single quotes and I'd doublecheck the data types of the parameters in the stored procedure.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |