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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.

Top Solution Authors