Forum Discussion

crln-blue's avatar
crln-blue
Icon for Post Patron rankPost Patron
5 years ago
Solved

Passing a parameter to query: We cannot convert a value of type Table to type Function.

Hello! I want to have a parameter where I can use it on my measures (What If scenario is not applicable because it only accepts 4 digits), and I stumbled upon: Solved: Passing Parameters in measures...
  • PhilipTreacy's avatar
    5 years ago

    Hi crln-blue 

    When you use the table name data and then follow it with () PQ thinks you're calling a function.  As data is a table, you get the error you are seeing.

    What exactly are you trying to do?

    It looks like you are trying to pass the string "End Cash" and the parameter into your data table for something.  If you want to use the value for Param1 inside another query you can use its name.

    Perhaps you can provide a screenshot of what your data table looks like and explain what you want to do with the string "End Cash" and the parameter.

    regards

    Phil