Forum Discussion
Circular Query
- 2 years ago
I encountered the same error and resolved it by adjusting my parameters. Initially, my parameter was designed to either pull in the top 10,000 rows or display the table name. I did this to reduce the table sizes. I corrected this by changing the parameter to point directly to the source instead of the table name. After republishing and refreshing, the error disappeared. I hope this helps someone.
- 1 year ago
My pleasure.
In fact, I wasn't sure why you didn't do it .. matter of checking my willingness to search or forum policy or ..
Anyway: this is the part of his primer dealing with 'control structure' in power query
https://bengribaudo.com/blog/2020/01/06/4844/power-query-m-primer-part14-control-structure
Cheers,
C.
you can post the link 🙂
My pleasure.
In fact, I wasn't sure why you didn't do it .. matter of checking my willingness to search or forum policy or ..
Anyway: this is the part of his primer dealing with 'control structure' in power query
https://bengribaudo.com/blog/2020/01/06/4844/power-query-m-primer-part14-control-structure
Cheers,
C.
- cdebackere1 year agoResolver I
for those interested, this the construdt I now made as a for-like approach to replace the recursive call
it(s kinda 'pseudo code' as in 'not with the actual webcalls, but the construct is working code
let
//function generates the xml to get part 'loop' of the answers
genXML = (loop ) => "<node>" & Text.From( loop) & "</node>",
//funtion get the answers for the given xml
getWebresult = (path,xml) => Table.FromRecords({[path=path,xml=xml],[path=1,xml=2]}),//get the first partial answer
result1=getWebresult("APIendpoint",genXML(1)),
//extract the number of total loops from the first answer
maxCnt = 11,//extract the additional parts of the answer and combine
results = if maxCnt=1
then
result1
else
let
Bron = List.Numbers(2,maxCnt-1),
stap1 = List.Transform(Bron,each getWebresult("APIendpoint", genXML(_))),
//convertert stap1
stap2=Table.Combine(List.InsertRange(stap1,0,{result1}))
in
stap2
in
results