Forum Discussion
Using parameters in advanced editor
- 8 years ago
Hi e17aguilar,
I don't think above attemption is achievable.
As you can see, the supported data type by Query Parameter are normal ones.
But, many times, the items wrapped by Power Query function are not listed in above data types. In your example, the second argument in Table.TransformColumnTypes function should be List type. While the value ({{""Etap"", Int64.Type}, {""Ser."", Int64.Type}, {""Bloq"", Int64.Type}}) you passed by parameter was forced to Text. They are not matched, hence caused errors. Especially, the long text wrapped by "{ }" cannot be passed as a parameter value.
Regards,
Yuliana Gu
Hi e17aguilar,
I don't think above attemption is achievable.
As you can see, the supported data type by Query Parameter are normal ones.
But, many times, the items wrapped by Power Query function are not listed in above data types. In your example, the second argument in Table.TransformColumnTypes function should be List type. While the value ({{""Etap"", Int64.Type}, {""Ser."", Int64.Type}, {""Bloq"", Int64.Type}}) you passed by parameter was forced to Text. They are not matched, hence caused errors. Especially, the long text wrapped by "{ }" cannot be passed as a parameter value.
Regards,
Yuliana Gu