| 1531 | |
| 1532 | if (calcColumn && calcColumn.operation === "percentage") { |
| 1533 | const inputIndex = position => { |
| 1534 | const reference = calcColumn.references?.[position]; |
| 1535 | return reference ? definitions.findIndex(item => item.analyticsReference === reference) : calcColumn.columns[position]; |
| 1536 | }; |
| 1537 | // Access the data for the numerator and denominator columns |
| 1538 | const numeratorData = calcColumn._analyticsAvailable === false || inputIndex(0) < 0 |
| 1539 | ? [] |