Forum Discussion
Passing multiple parameters to SAP BW Query
- 7 years ago
solve by creating a seperate "empty" query instead of parameter. I called it YEARS. Just like that:
let Source = {{"[0FISCYEAR].[K42015]", "[0FISCYEAR].[K42016]", "[0FISCYEAR].[K42017]", "[0FISCYEAR].[K42018]", "[0FISCYEAR].[K42018]"}} in SourceAnd the result is used as a selector:
{Cube.ApplyParameter, "[!V000003]", YEARS}, - Anonymous7 years ago
You have to pass the List of List in this case.
To do that lets sat you are stating from Company Code Master Data table, which is already filtered on the Companies that you need.
Write following code as a new query and use it in your Comp Code filter. Note here I had to convert Comp Code numbers into text so SAP can accept them.
let Source = #"Company Code Master Data", #"Changed Type" = Table.TransformColumnTypes(Source,{{"Company Code #", type text}}), #"Company Code #" = #"Changed Type"[#"Company Code #"], Final = List.Combine({{#"Company Code #"}}) in Final
You have to pass the List of List in this case.
To do that lets sat you are stating from Company Code Master Data table, which is already filtered on the Companies that you need.
Write following code as a new query and use it in your Comp Code filter. Note here I had to convert Comp Code numbers into text so SAP can accept them.
let
Source = #"Company Code Master Data",
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Company Code #", type text}}),
#"Company Code #" = #"Changed Type"[#"Company Code #"],
Final = List.Combine({{#"Company Code #"}})
in
FinalThanks Sang,
You are absolutly right, I've already described that in my previous post ;)
Regards,
D.