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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try to simply get your data like this. Date --> get data --> from sql server.
 
Upvote 0

Forum statistics

Threads
1,226,452
Messages
6,191,132
Members
453,641
Latest member
enfkkviesm

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