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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
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