Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a query related to parameter; need to execute SQL Stored procedure
EXEC proc_StockSummary 1,'5',
How can I implement multiple parameter instead of hardcoded 1 and '5' in Power Query
Solved! Go to Solution.
Hi @soumyendunew,
Based on my test, we can take the following steps to meet your requirement.
1. Import the table from desktop, in the SQL statement, here I entered the code as below.
EXEC proc_StockSummary 1, '5'
2. Create two parameters in power query
3.Then we can change the code in the advanced editor and get the result we need. And here is the code for your reference.
let Source = Sql.Database("localhost", "Power_BI_Test", [Query="EXEC proc_StockSummary '"& Number.ToText(P1) & "' , '"& P2 & "'"]) in Source
Regards,
Frank
Hi @soumyendunew,
Based on my test, we can take the following steps to meet your requirement.
1. Import the table from desktop, in the SQL statement, here I entered the code as below.
EXEC proc_StockSummary 1, '5'
2. Create two parameters in power query
3.Then we can change the code in the advanced editor and get the result we need. And here is the code for your reference.
let Source = Sql.Database("localhost", "Power_BI_Test", [Query="EXEC proc_StockSummary '"& Number.ToText(P1) & "' , '"& P2 & "'"]) in Source
Regards,
Frank
Hi @soumyendunew,
Does that make sense? If so , kindly mark the answer as a solution to close the case, thanks in advance.
Regards,
Frank
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |