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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
HaosonNian
Regular Visitor

List.Generate with 2 Parameters

HaosonNian_0-1722475700773.pngHaosonNian_1-1722475730467.png

HaosonNian_2-1722475836199.png

Hi everyone, 

 

I have a question regarding the use of 2 parameters using the List.Generate function. I have an understanding of how pagination works with just using the page variable but using both a page and datetime parameter is a little more complex. 

 

= List.Generate(()=>
[Result = try fRecordsFD(1) otherwise null, Page=1], 
each [Result]<>null, 
each [Result = try fRecordsFD([Page]+1) otherwise null, Page=[Page]+1], 
each [Result])


Ideally, I'd like to pull the dates from a table which uses dates from every 6 months. 

 

Thanks! 

 

1 REPLY 1
PwerQueryKees
Super User
Super User

List.Generrate has 4 parameters. fRecordsFD seems to be your own custom function?

Please provide your starting data, your existing code and the result you are looking for...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.