Email Address Segmentation and Precision Marketing Campaigns
Excel that turns a portal database into ready-to-use audience lists for Mailchimp, Facebook, and Google Ads in seconds.
We built a tool that lets the marketing team segment portal users independently and send them straight to advertising platforms: Facebook Custom Audiences, Google Ads, and Mailchimp. No SQL, no waiting for IT, and no SaaS license fees.
Case Study · Business Intelligence
2016
Year delivered
15 GB
Data in the MySQL database
100+
Tables in the database
Minutes
Instead of hours to prepare a campaign

Problem
How do you target campaigns when marketing automation is expensive and your database has 100 tables?
When the project was developed (2015–2016), most companies did not have access to advanced BI or CDP systems, and marketing automation tools were expensive and inflexible. As a result, many teams sent the same messages to everyone. Overly generic communication means wasted budget and low conversions.
The scale of the data added to the challenge: more than 15 GB and over 100 tables in a MySQL database, with data provided by users and collected from external sources (Facebook, PSN, and Xbox accounts).
Without a tool
Campaigns "for everyone"
No quick way to build audience groups from database information, or the need to purchase expensive SaaS licenses.
With a BI system in Excel
Targeting in a few clicks
Data pulled directly from MySQL, segmentation based on multiple criteria, and ready-to-export lists for advertising tools—all without IT involvement.
System Architecture
From the portal database to a ready-to-launch campaign
MySQL and SQL views
The data came from a relational database of around 15 GB. We prepared views optimized for Power Pivot, so data loaded faster and work was based on up-to-date information.
Excel, Power Pivot, and DAX
The model refreshed directly from Excel. DAX formulas transformed and enriched the data, giving users ready-made tables and segments.
Export to advertising platforms
The campaign generator exported ready-to-use lists to Mailchimp (email campaigns), Facebook Custom Audiences (remarketing), and Google Ads Custom Audience (audience segmentation).
Modules and Features
What the system could do
User segmentation
Excel slicers made it possible to build audience lists without knowing SQL or pivot tables. Segments could be created by:
- age range,
- gaming platform (PlayStation, Xbox, PC),
- email address domain (e.g., gmail.com, wp.pl),
- bank account indicator,
- city,
- connection to external accounts (Facebook, PSN, Xbox Live),
- account creation year.
In practice: email campaigns targeting PS4 players aged 25–35, remarketing to Facebook users who had not logged in for six months, or testing messages across segments by age, registration source, and activity.

Data model
We imported the portal’s data model into Power Pivot. This required examining the relationships between more than 100 tables and identifying the columns essential for segmentation. We combined columns from different tables into consistent entities (users, accounts, activity, segments), filtered input data for duplicates and logical errors, and created dedicated views in MySQL.
The result: users did not need to know the database structure or SQL, and the model became the foundation for additional BI dashboards.
DAX formulas
DAX (Data Analysis Expressions) formulas handled:
- dynamic metrics such as user age, account lifetime, and time segment,
- calculated fields: age categories, user type, platform assignment,
- filtering data according to campaign rules,
- KPIs: open rate, CTR, and campaign reach by segment.
With DAX, transformations took place in the Excel model rather than in the database. Marketing could change segmentation rules independently, and each filter change automatically updated the entire model.

Volume analysis and messaging planning
The view showed the size of each segment and how many creative assets needed to be prepared. Dynamic filters made it possible to:
- check the number of accounts in a segment (e.g., women aged 25–34 on PS4),
- calculate how many unique messages were needed (banner and email variations),
- prepare data for Google Ads, Facebook Ads, and Mailchimp, with figures and criteria ready to use.
The tool also helped estimate campaign costs, identify groups with the widest reach, and compare segment performance after a campaign. Instead of choosing creative assets by guesswork, the team planned messaging, costs, and resources based on data.

Implementation Results
What changed in practice
Campaigns in minutes
Campaign preparation went from hours to minutes.
Better results
More precisely tailored messages increased Open Rate and CTR.
Quick response
A campaign for a selected age group or platform could be prepared in a few clicks.
Independence from IT
Exporting to advertising platforms did not require help from IT.
Full ownership
The system required no SaaS subscription and was 100% owned by the client.
Need someone who quickly understands the problem—and knows what to do about it?
Most companies have data. What they lack is an idea of what to do with it—and someone who can actually get it done. Origami Effect provides both.
