Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
valleserj
New Member

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 1
v-danhe-msft
Employee
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

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.