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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Expression Help .Error: 3 arguments were passed to a function which expects between 1 and 2.



Hi,

 

I am getting this unspecific error on my syntax in Advanced Editor in Power Query. I edited filter directly in Advanced Editor (I want to filter file path based on the current date) and I got the green tick saying "No syntax errors have been detected.", but when I save & close advanced editor i get error:

Expression.Error: 3 arguments were passed to a function which expects between 1 and 2.
Details:
Pattern=
Arguments=[List]

 

The query looks like this:

 

(trgtrls as text) as table=>

let

Source = Json.Document(Web.Contents("https://API/test?",

[RelativePath="TargetReleaseIds="&(trgtrls)&"&ReleaseId=0"],

[Headers=[Authorization="token", #"Content-Type"="application/json"]]

)),

#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"Id"}),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Column1",{{"Id", Int64.Type}})
in
#"Changed Type"

 

Can you please help me find mistake in my syntax? It's a pity that PBI doesn't underline or highlight the bad syntax in this case.

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

(trgtrls as text) as table=>

let

Source = Json.Document(Web.Contents("https://API/test?",

[RelativePath="TargetReleaseIds="&(trgtrls)&"&ReleaseId=0",

Headers=[Authorization="token", #"Content-Type"="application/json"]]

)),

#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"Id"}),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Column1",{{"Id", Int64.Type}})
in
#"Changed Type"

View solution in original post

1 REPLY 1
Ahmedx
Super User
Super User

pls try this

(trgtrls as text) as table=>

let

Source = Json.Document(Web.Contents("https://API/test?",

[RelativePath="TargetReleaseIds="&(trgtrls)&"&ReleaseId=0",

Headers=[Authorization="token", #"Content-Type"="application/json"]]

)),

#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"Id"}),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Column1",{{"Id", Int64.Type}})
in
#"Changed Type"

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.