Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
| Produto | Sum (Vendas) | SUM(CSum) |
| 100 | 350,00 | |
| A | 10 | 10,00 |
| B | 30 | 40,00 |
| C | 10 | 50,00 |
| D | 20 | 70,00 |
| E | 10 | 80,00 |
| F | 20 | 100,00 |
| Produto | Sum (Vendas) | SUM(CSum) | Avg |
| 100 | 350,00 | ||
| A | 10 | 10,00 | 10,0 |
| B | 30 | 40,00 | 20,0 |
| C | 10 | 50,00 | 16,7 |
| D | 20 | 70,00 | 17,5 |
| E | 10 | 80,00 | 16,0 |
| F | 20 | 100,00 | 16,7 |
Try dividing by rowno():
numsum(Peek('CSum'),Vendas)/RowNo() as RAvg
Regards,
Stefan
Try dividing by rowno():
numsum(Peek('CSum'),Vendas)/RowNo() as RAvg
Regards,
Stefan
Beauty, solved the problem, thanks.