Snowflake Report Guide

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

I.

Introduction
This document is intended for the use of individuals under Arrow Domain group in Globe
Telecom PH to understand Arrow Reports Campaign Reporting process and definition.

The Campaign Reporting consist of topics across all deployed campaigns or use cases.

II. Tools
Campaign Reporting uses the following tools to process and load the data.

Snowflake. Snowflake enables data storage, processing, and analytic solutions that are faster,
easier to use, and far more flexible than traditional offerings. The Snowflake data platform is not
built on any existing database technology or “big data” software platforms such as Hadoop.

III. Data Dictionary


This section contains a summary definition of column attributes found in snowflake dashboard.

Invites. Count of transactions wherein subscriber was successfully contacted. Applies to all
contacted even if the subscriber doesn't need to respond to offer.

Responder. Count of transactions wherein subscriber was successfully contacted and


responded. Subscribers invited are treated as "responder" if effort required from them are met
within the validity period

Provisioned. Count of transactions wherein subscriber was successfully contacted, responded,


and provisioned.

IV. Snowflake Dashboard Output


Using topics from campaign, the team is generating Standard Waterfall to be provided to campaign
stakeholders. Below are the following
V. Query Used
These are the queries used in developing the report.

select DATE(a.processed_datetime) as Date,

SUM (CASE

WHEN a.offer_event = a.offer_event_id and a.state = 'Invited' and b.state = 'Invited' and
a.control_group = 'TG'

THEN 1

ELSE 0

END) AS Invited,

SUM (CASE

WHEN a.offer_event = a.offer_event_id and a.state = 'Invited' and b.offer_event !=


b.offer_event_id and b.state = 'Responded' and a.control_group = 'TG'

and a.msisdn = b.msisdn


THEN 1

ELSE 0

END) AS Responders,

SUM (CASE

WHEN a.offer_event = a.offer_event_id and a.state = 'Invited' and b.offer_event !=


b.offer_event_id and b.state = 'Provisioned' and a.control_group = 'TG'

and a.msisdn = b.msisdn

THEN 1

ELSE 0

END) AS Provisioned

from TEST_REPORT_2 a

inner join TEST_REPORT_2 b on a.offer_event = b.offer_event_id

group by DATE(a.processed_datetime)

You might also like