Forum Discussion

valleserj's avatar
valleserj
New Member
7 years ago

Need Help getting error: Expression.Error: 2 arguments were passed to a function which expects 1

Hi 

 

was wondering if any of you can help me with the SQL code below, my knowldge with SQL is basic at best and im kinda new with powerBI. Trying to do a direct query with the code below but its giving me an error:

 

Expression.Error: 2 arguments were passed to a function which expects 1.
Details:
Pattern=
Arguments=List

 

Code:

 

let
Source = Sql.Databases("MelbVMSQL\coinopsoftware.com,1433"),
coinopamf = Source{[Name="coinopamf"]}[Data],
coinopamf_ufn_MonthlyTransactionReport1 = coinopamf{[Schema="coinopamf",Item="ufn_MonthlyTransactionReport1"]}[Data],
#"Invoked Functioncoinopamf_ufn_MonthlyTransactionReport1" = coinopamf_ufn_MonthlyTransactionReport1(#datetime(2010, 1, 1, 0, 0, 0), #datetime(2019, 3, 7, 0, 0, 0))
in
#"Invoked Functioncoinopamf_ufn_MonthlyTransactionReport1"

 

Hoping you guys can help me with this.

 

1 Reply

  • v-danhe-msft's avatar
    v-danhe-msft
    Microsoft Employee

    Hi valleserj ,

    I could not understand your below code:

    #"Invoked Functioncoinopamf_ufn_MonthlyTransactionReport1" = coinopamf_ufn_MonthlyTransactionReport1(#datetime(2010, 1, 1, 0, 0, 0), #datetime(2019, 3, 7, 0, 0, 0))

    Could you please exolain how could you run this invoke?

     

    Regards,

    Daniel He