Using BigQuery and weather-related data to predict demand and reduce the waste
FreshDirect + Napkyn
Challenge
FreshDirect, a leader in online grocery delivery always looking for ways to decrease waste of perishable foods as well as optimize the delivery process and schedules. They noticed that one of the factors that played a role in how many people would be ordering the food was the weather.
They partnered up with Planalytics to assess and predict the demand based on that factor.
Solution
FreshDirect needed to provide the historical data including visit and transactional data to Planalytics broken down by app and web platforms in addition to location, shopping mode (today’s delivery or later one), and if a client was an individual or a company.
Napkyn, the FreshDirect long measurement partner, offered to leverage BigQuery to build the reports and send them to Google Cloud Storage, so they would be available for download as CSV files.
Napkyn wrote a series of BigQuery SQL queries to produce tables that are in a format that Planalytics needed for as much historical data as were available in BigQuery for web as well as app data.
In Google Cloud Storage, the files were automatically partitioned into several downloadable files.
Results
Optimized Capacity: with understanding the demand better, it was possible to reduce the number of scheduled drivers in the days when the demand was predicted low and to increase when the demand was predicted higher.
Reduces food waste by 2x: The perishable food was bought according to future demand to avoid spoilage.
Increased Revenue: With understanding the demand, it was possible to keep the offerings and time slots at the level needed, so no lost opportunities to transact due to unavailable products or drivers.
Back to Case Studies

Latest Insights and Education

January GA4 & Google Updates
Ricardo Cristofolini
Senior Implementation Specialist, Data Solutions
Feb 7, 2024

Google's Consent Mode Implementation Guide and the March 2024 Enforcement
Monika Boldak & Ricardo Cristofolini
Monika is an Associate Director on Napkyn's Data Solutions team. Ricardo is a Senior Implementation Specialist on Napkyn's Data Solutions team.
Feb 12, 2024

How to Navigate Cookie Deprecation: Strategies for Comprehensive User Insights - Part 1
Monika Boldak
Associate Director, Data Solutions
Feb 26, 2024
More Insights
Get in Touch or Sign Up for Newsletter

Napkyn Inc. 204-78 George St.Ottawa, Ontario
Napkyn US 6 East 32nd Street, 9th Floor, New York, NY 10016, USA
Phone: 212-247-0800. | nfo@napkyn.com
Napkyn © 2024