2.3 Calculate average

 

Calculate the daily average sales amount according to the following daily sales table.

Date Sales
2022-01-01 00:00:00 98.0000
2022-01-02 00:00:00 174.0000
2022-01-03 00:00:00 168.0000
2022-01-04 00:00:00 167.4000
2022-01-05 00:00:00 1696.0000

SPL script:

A
1 =T(“DailySales.xls”)
2 =A1.avg(Sales)