2.4 Count
Find the number of days when daily sales amount is above 1000 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.count(Sales>1000) |
SPL Official Website 👉 https://www.scudata.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProcSPL
SPL Learning Material 👉 https://c.scudata.com
SPL Source Code and Package 👉 https://github.com/SPLWare/esProc
Discord 👉 https://discord.gg/cFTcUNs7
Youtube 👉 https://www.youtube.com/@esProc_SPL