I current have a working file with a table the users enters in a CategoryID that I then pass to a SQL query using Power Query. I would like to expand this for another use case but this time I want the user to enter in one or many rows of data and then pass all of the rows they enter into IN logic in my SQL.
//Current I use this
Team_parameter = Excel.CurrentWorkbook(){[Name="FullTextInputs"]}[Content],
SelectedCategoryID = Team_parameter[CategoryID]{0},
//And pass it into the SQL
team_id = " & Number.ToText(SelectedCategoryID) & "#(lf)
If I had a table like this what is the best way to get the 3 rows they entered comma separated.
Product
1
4
5
team_id IN ( " & Number.ToText(SelectedProduct) & ")
//Current I use this
Team_parameter = Excel.CurrentWorkbook(){[Name="FullTextInputs"]}[Content],
SelectedCategoryID = Team_parameter[CategoryID]{0},
//And pass it into the SQL
team_id = " & Number.ToText(SelectedCategoryID) & "#(lf)
If I had a table like this what is the best way to get the 3 rows they entered comma separated.
Product
1
4
5
team_id IN ( " & Number.ToText(SelectedProduct) & ")