Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Passing PowerBI Parameter To A Stored Procedure

Hello everyone,   I am trying to create parameters within PowerBI so that I can pass the values to the parameters of a stored procedure. This is the code for the procedure, which uses the ...
  • AlexisOlson's avatar
    4 years ago

    The error tells you exactly what the issue is.

     

    If you want IDs as part of your query string, they need to be in text format. So you have two options

    1. Define the parameters as text-valued rather than numbers.
    2. Convert the number to text in your query.

     

    "EXECUTE TestProcWithParameters " & Text.From(CustomerKey) & ", " & Text.From(GeographyKey)​