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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have two whole number columns, "Min G/L Account No." and "Max G/L Account No.". I'm trying to create a new, calculated column which contains a list of each whole number between those two (in increments of 1). To do this, I'm using the following query in the Custom Column dialog:
List.Generate(
() => ([#"Min G/L Account No."]),
each _ <= ([#"Max G/L Account No."]),
each _ + 1
)
It accepts the formula, but each field in the newly created list column contains the following error:
Expression.Error: We cannot apply field access to the type Number.
Details:
Value=10020 (NOTE: this value changes per row)
Key=Max G/L Account No.
I've confirmed I can create a list of numbers by just changing the values in the formula to hard coded numbers, but cannot figure out what I'm doing wrong with the formula that is resulting in the error.
Any help would be much appreciated! Thank you in advance!
Solved! Go to Solution.
Hi @Anonymous ,
Try this in a new custom column:
{ [#"Min G/L Account No."]..[#"Max G/L Account No."] }
Note the curly braces.
Pete
Proud to be a Datanaut!
Hi @Anonymous ,
Try this in a new custom column:
{ [#"Min G/L Account No."]..[#"Max G/L Account No."] }
Note the curly braces.
Pete
Proud to be a Datanaut!
That worked perfectly - thanks, Pete!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 6 | |
| 6 | |
| 6 |