{#each columns as column (column.kind)} {/each} {#each shown as row (row.key)} {@const active = report.drill?.box === box && report.drill.key === row.key} {#each columns as column (column.kind)} {/each} {/each} {#if footer && footer.n > 0} {#each columns as column (column.kind)} {/each} {/if}
{nameLabel} {column.label}
{#if counts && row.totals.n > 1} {row.totals.n} transactions {/if} {#each lines(row.totals, column.kind) as line (line.code)}
{line.text}
{/each}
Sum {#if !( column.kind.startsWith("pct") || column.kind.startsWith("avg") )} {#each lines(footer, column.kind) as line (line.code)}
{line.text}
{/each} {/if}
{#if limit && sorted.length > limit} {/if}