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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.