Session 7 of 15
Advanced Data Processing โ Functions, JSON, CSV and Make Code
How to turn raw data into a report: advanced array functions (map, sort, distinct), the Text parser and regex, creating CSV and HTML, and when it's worth writing JavaScript or Python with Make Code.
โฑ๏ธ 3 hours๐ ๏ธ A weekly sales report: Sheets โ KPI calculations โ an HTML table โ an attached CSV โ Gmail + Telegram
๐ฏ Session goals
- Master array functions: map, sort, distinct, slice, merge, sum.
- Extract information from text with the Text parser and regex.
- Produce CSV, HTML tables and JSON from data.
- Know Make Code (JavaScript / Python) and decide when it pays off.
- Calculate KPIs (total, average, leader, weekly change).
- Send a report with an attached file.
- Build an automatic weekly sales report.
๐งช Today's scenario โ a live run
๐๏ธ The agenda
- 00:00โ00:15 Review: the payment reminders
- 00:15โ00:50 Advanced array functions
- 00:50โ01:15 The Text parser and regex
- 01:15โ01:30 โ Break
- 01:30โ01:50 CSV, HTML and files
- 01:50โ02:15 Make Code: JavaScript and Python
- 02:15โ02:50 Building together: a weekly sales report
- 02:50โ03:00 Summary and practice
Array functions โ power without modules
- sum, length, distinct, sort
- map with filtering
- slice for a top N
- Fewer modules = fewer Credits
The Text parser โ extracting from text
- Match pattern with named groups
- Replace, HTML to text
- Regex for a fixed format, AI for free text
CSV, HTML and files
- Create CSV / Parse CSV
- An HTML table with a Text aggregator
- A BOM for Excel
- Attaching a file from text
Make Code โ when functions aren't enough
- Make Code โ Run code (JS/Python)
- On paid plans, ~2 Credits a second
- No network inside the code
- When yes and when not
Weekly KPIs โ what to measure
- Total, deals, average
- The leader with Group by
- Weekly change in percent
- Top N with sort + slice
Building together: a weekly sales report
- Search this week โ Array aggregator
- Set variables: KPIs
- Text aggregator โ an HTML table
- CSV โ Gmail + Telegram
โ๏ธ Understanding check
๐ To sum up
- Array functions (map, sum, sort, distinct, slice) save modules and Credits.
- The Text parser with regex extracts from text in a fixed format.
- CSV and HTML are built with aggregators; a BOM for Excel.
- Make Code runs JS/Python on paid plans โ when you really need it.
- We built an automatic weekly sales report.
๐๏ธ Time to practice!
The session project: A weekly sales report: Sheets โ KPI calculations โ an HTML table โ an attached CSV โ Gmail + Telegram