Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have a List.Generate that returns list rows of 1000 records from a API call. At this moment there is 22082 records in the source table and I want the list generation to stop when all records are received. In this case there should be 23 rows, with only 82 records in the last row. When harcoding it to stop after 24000 records I get a row with null. How can I make this loop to stop when the row is null?
Solved! Go to Solution.
Hi @Dagobert
On line 4, change
each [cursor_position] <= 24000
to
each [WO_list] <> null
This is the loop-continuation condition for List.Generate.
Does this work at your end?
Yes, it works fine, so easy!
Thanks a lot
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 |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
66 | |
61 | |
46 | |
45 |