Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
ID | Index |
101 | 100000 |
501 | 100001 |
701 | 100002 |
801 | 100003 |
901 | 100004 |
1001 | 100005 |
1101 | 100006 |
1201 | 100007 |
1301 | 100008 |
My normal code
ID | Index |
101 | 1 |
501 | 2 |
701 | 3 |
801 | 4 |
901 | 5 |
1001 | 6 |
1101 | 7 |
1201 | 8 |
1301 | 9 |
I would like to keep the same idea but is there a function like Start on(100000) and the index counts from the specific number.
Solved! Go to Solution.
Hi @user35131
Thanks for reaching out to us.
>> My normal code ADDCOLUMNS(ID,"Index" ,RANKX(ID,[ID],,ASC,Dense))
Actually you are very close to the correct answer.
You can try this DAX expression,
t1 = ADDCOLUMNS('Table',"Index" ,RANKX('Table',[ID],,ASC,Dense),"test",100000+RANKX('Table',[ID],,ASC,Dense))
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @user35131
Thanks for reaching out to us.
>> My normal code ADDCOLUMNS(ID,"Index" ,RANKX(ID,[ID],,ASC,Dense))
Actually you are very close to the correct answer.
You can try this DAX expression,
t1 = ADDCOLUMNS('Table',"Index" ,RANKX('Table',[ID],,ASC,Dense),"test",100000+RANKX('Table',[ID],,ASC,Dense))
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @user35131 , 2 options:
DAX: add +99999 at the end of your code
Power Query: Add an Index Column - there is an option to start at custom number:
If this answer solves your problem please mark it as a solution!
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
105 | |
99 | |
98 | |
38 | |
37 |
User | Count |
---|---|
154 | |
120 | |
73 | |
73 | |
63 |