Forum Discussion
Sachintha
Helper III
2 years agoFunction within Function and Scheduled Refresh from PowerBI Service
I have access to an API that lets me retrieve results of tests undertaken by my company employees. Each month, employees get one or more tests. The total set of tests all employees get in a month are...
lbendlin
Super User
2 years agoShow what
fnIteratePSTs
does.
Sachintha
Helper III
1 year agoApologies, it was mislabled in the post. This is the function:
fnIteratePSTs = (PstId as text) =>
let
Source = List.Generate(
()=> [ Offset = 1, Results = fnGetTestResults(PstId, 100, 1) ],
each not (List.IsEmpty([ Results ])),
each [ Results = fnGetTestResults(PstId, 100, [Offset] + 1 ), Offset = [Offset] + 1 ],
each [Results]
)
in
Source- lbendlin1 year ago
Super User
This will only hurt a little: Power Query M Primer (Part 13): Tables—Table Think II | Ben Gribaudo
- Sachintha1 year ago
Helper III
Are you referring to 'disable parallel loading' as a fix? I tried it, which makes the refresh time much longer (over 2 hours), but even then it eventually failed. Same error as before.
- lbendlin1 year ago
Super User
No, I am referring to the "everything in different partitions" vs "everything in the same partition" advice. Your indicated problem was the reference to other queries, not the performance.