What should the expression {pwrAvgList[0]} be for it to work?
Also, I needed to create the ctr variable in order to access the $index-1 location since putting that into {pwrAvgList[$index-1]} did not work. What is the right way to do this without creating a separate variable?