Power Query, Excel and SQL Server

krish23

New Member
Joined
Jan 9, 2025
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am fairly new to Power Query however recognize its potential in my work.

I have a sql server stored procedure that takes 2 multi-valued string parameters. I would like to create an Excel file that has a parameter sheet with 2 different tables for Param1 and Param2. I will create another Excel sheet that gets the data from the SQL Server Stored procedure passing the parameters

I used the below query for my

= Value.NativeQuery(
Source,
"EXEC [SOTeam].[sp_Excel_Test] @Jurisdictions= @param1, @ESISClaimTypes= @param2",
[param1 = PJurisdiction, param2 = PESISClaimType]
)

i created a list for Jurisdiction
= Excel.CurrentWorkbook(){[Name="Jurisdiction"]}[Content]= Excel.CurrentWorkbook(){[Name="Jurisdiction"]}[Content]

similar to above i created another list for ESISClaimType

I created parameter for PJurisdiction and i am not sure what my next steps should be and even if the above steps are right and the best and easy way.

Please help!!

Thanks again,
Krish
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,225,365
Messages
6,184,538
Members
453,239
Latest member
dbenthu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top