Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello everyone,
So since there is not a way to get a userinput box I am reverting to creating a table of numbers and having the user select via a slicer (they need to select their salary) and I have not been able to find a quick way to generate a table with numbers (similar to how we generate one for creating a date table). Can anyone help? So again I am just looking for a table like the one below.
TABLE
10,000
10,001
10,002
10,003
10,004
.....
1,000,000
Solved! Go to Solution.
Hi @moizsherwani,
Try a blank query in the Query Editor and paste this in to the advanced editor
let
Source = List.Generate(()=>10000, each _ < 1000000, each _ + 1),
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error)
in
#"Converted to Table"
Did you try pasting this into the Advanced Editor?
let
Source = List.Generate(()=>10000, each _ < 1000000, each _ + 1),
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error)
in
#"Converted to Table"I don't recommend creating a DAX calculated table for this, but if you wanted to for fun you could use this:
NumberTable =
VAR MinNumber = 10000
VAR MaxNumber = 1000000
RETURN
SELECTCOLUMNS (
CALENDAR ( MinNumber, MaxNumber ),
"Number", INT ( [Date] )
)
I don't recommend creating a DAX calculated table for this, but if you wanted to for fun you could use this:
NumberTable =
VAR MinNumber = 10000
VAR MaxNumber = 1000000
RETURN
SELECTCOLUMNS (
CALENDAR ( MinNumber, MaxNumber ),
"Number", INT ( [Date] )
)
The only way I have figured out so far is to do a Power Query -> New Query -> {10000...1000000}
PowerBI Desktop
Did you try pasting this into the Advanced Editor?
let
Source = List.Generate(()=>10000, each _ < 1000000, each _ + 1),
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error)
in
#"Converted to Table"Yes, your solution works perfectly, I am more a DAX fan so was wondering if there was a way to do this in Dax, otherwise your solution is the "BALL"
Try this for something a bit different in DAX
New Table = SELECTCOLUMNS(CALENDAR(DATE(1927,5,18),DATE(4637,11,26)),"n",int([Date]))
Hi @moizsherwani,
Try a blank query in the Query Editor and paste this in to the advanced editor
let
Source = List.Generate(()=>10000, each _ < 1000000, each _ + 1),
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error)
in
#"Converted to Table"
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 44 | |
| 38 | |
| 34 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |