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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.