Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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.
Solved! Go to Solution.
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"
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"
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
42 |