Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I am struggeling to add a paired index column into a nested table in PQ
I know how to add an index in the nested table like 1,2,3,4,5,....
what i do need to add is another column lik 1,1,2,2,3,3,4,4,5,5,6,6,...
So repeat the index number one time and go to the next
Guess not so complicate but somehow I struggle with this.
thanks
Solved! Go to Solution.
@Hansolu
First, add a simple index column starting with zero:
Table.AddIndexColumn(Source, "Index", 0, 1, Int64.Type)
then the second one
Number.IntegerDivide([Index], 2) + 1
Result
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi,
thanks both of you, same solution, works great
Actually I was thinking, must be something easy, I just took the wrong turns in my trials
Thanks for the help
Hi @Hansolu
Can you please try the below steps to get your requirement ?
1. Create index column from 0
2. Create custome column using below code
@Hansolu
First, add a simple index column starting with zero:
Table.AddIndexColumn(Source, "Index", 0, 1, Int64.Type)
then the second one
Number.IntegerDivide([Index], 2) + 1
Result
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.