Since Indexed-repeat is still not compatible with Survey123 yet, a workaround for this can be by joining the repeat values with a delimiter (,) and then splitting them with Custom JavaScript Function in extension
Step 1:
join the required repeat values using join in calculation :
join(',',${cal_total_tx_leaking})
Step 2:
Create a folder named "extensions" in your form folder and add a js file in it. Add your function to split the string and return the required value:
function getValFromString(data, idx) {
return data.split(",")[idx-1]
}
Step 3:
To calculate index of each item with repeat, use once(count(${cal_total_tx_leaking}))
Step 4:
Call your custom function inside repeat using pulldata
Hope this helps.