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

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

Reply
laui
Frequent Visitor

Generate a list of values from number from different range

Hi Folks,

 

I have a list that coming from numbers from different ranges, and then conver that list to a table. I guess I should look for List.Generate in Power Query but I struggle to do so. Any help is appreciated!

 

 List of values

 

Isaac

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@laui,

Add a custom column using the code below and check if you can get expected result. If it doesn't help, please post your desired result.

=List.Numbers([From],[To]-[From]+1)

1.JPG2.JPG3.JPG4.JPG

Regards,
Lydia

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@laui,

Add a custom column using the code below and check if you can get expected result. If it doesn't help, please post your desired result.

=List.Numbers([From],[To]-[From]+1)

1.JPG2.JPG3.JPG4.JPG

Regards,
Lydia

How Can I do it whit Dax in a calculated column?

Anonymous
Not applicable

@Anonymous  this was SUPER helpful! Thanks! Smiley Happy

Thanks you it works!

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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 Kudoed Authors