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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I want to create a custom column in my table with a range of number like : 1;2;3;4;5;...;20
And if I have more than 20 records in my table it will add in my column a 0 or null value.
Thank you,
Regards,
Lovebo
Solved! Go to Solution.
did not get it now. Are you looking for an index column? What is the logic behind 1,2,3 null
https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
@Lovebo95 , You can create table generateseries
using https://docs.microsoft.com/en-us/dax/generateseries-function
You can additional column as per need
Also refer
Hi,
Generateseries() works good to create a new table, but to create a column in a table, it's always showing : 'A table of multiple values was supplied where a single value was expected'
Thanks for your help,
These are my table :
Name | Value |
Jean | 42 |
Mike | 24 |
Paul | 22 |
Sara | 45 |
Bill | 14 |
And i would like to have something like with using something like generateseries(1;3;1) or directly by hand like {1;2;3}
Name | Value | ID |
Jean | 42 | 1 |
Mike | 24 | 2 |
Paul | 22 | 3 |
Sara | 45 | null |
Bill | 14 | null |
Is it clear ?
Thank you,
did not get it now. Are you looking for an index column? What is the logic behind 1,2,3 null
https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
Thank you,
That's work for my issue, but in fact I would like to know if it's possible to add some data in a column as we can add some data in a new table with the functionnality : 'Enter data'.
🙂
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.