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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors