0% found this document useful (0 votes)
1 views

Operation Analytics and Investigating Metric Spike

The project focuses on utilizing operational analytics to analyze company operations, identify improvement areas, and provide actionable insights across departments. It involves data collection, SQL analysis, and investigating metric spikes in engagement and sales to optimize workflows and predict growth. The project highlights the significance of operational analytics in enhancing efficiency and making informed decisions to boost ROI.

Uploaded by

harshalinaik16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Operation Analytics and Investigating Metric Spike

The project focuses on utilizing operational analytics to analyze company operations, identify improvement areas, and provide actionable insights across departments. It involves data collection, SQL analysis, and investigating metric spikes in engagement and sales to optimize workflows and predict growth. The project highlights the significance of operational analytics in enhancing efficiency and making informed decisions to boost ROI.

Uploaded by

harshalinaik16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Submitted by: Harshali Naik

Operation Analytics and Investigating Metric Spike

Project Description:

The project's objective is to leverage operational analytics for end-to-end analysis of


a company's operations, identify areas for improvement, and provide actionable
insights to cross-functional teams. As the Data Analyst Lead at Microsoft, I will
collaborate closely with departments like operations, support, and marketing to
derive valuable insights from their data. The primary focus is on optimizing
workflows, enhancing automation, and predicting the company's overall growth or
decline. Additionally, the project will involve analyzing metric spikes in daily
engagement and sales, investigating their causes, and providing insights to address
any dips in these metrics.

Approach:

This project involves gathering data sets and tables from various departments and
sources within the company, ensuring data quality and normalization during the
import into an SQL database. Through SQL queries and aggregations, the collected
data will be explored and analyzed to uncover patterns, trends, and anomalies. Key
performance metrics, such as daily engagement, sales, and customer satisfaction,
will be identified in collaboration with cross-functional teams and tracked using SQL
queries. Metric spikes will be investigated using SQL sub-queries, analyzing historical
data and collaborating with departments for contextual understanding. Insights and
recommendations derived from SQL analysis will drive process improvements,
workflow optimization, and automation.

Tech-Stack Used:

MySQL Workbench 8.0.38 CE

Case Study 1: Job Data Analysis

Insights:

A. Jobs Reviewed Over Time:


Objective: Calculate the number of jobs reviewed per hour for each day in November
2020.
My Task: Write an SQL query to calculate the number of jobs reviewed per hour for
each day in November 2020.

Query:
select * from job_data;
select avg(t) as 'avg jobs reviewed per day per hour',
Submitted by: Harshali Naik

avg(p) as 'avg jobs reviewed per day per second'


from
(select
ds,
((count(job_id)*3600)/sum(time_spent)) as t,
((count(job_id))/sum(time_spent)) as p
from
job_data
where
month(ds)=11
group by ds) a;

Output:

B. Throughput Analysis:
Objective: Calculate the 7-day rolling average of throughput (number of events per
second).
My Task: Write an SQL query to calculate the 7-day rolling average of throughput.
Additionally, explain whether you prefer using the daily metric or the 7-day rolling
average for throughput, and why.

Query:

1. 7 day rolling avg throughput(no. of events happening per sec)

select round((count(event)/sum(time_spent)),2) as weekly_throughput


from job_data;

2. daily metric throughput

select ds as date, round((count(event)/sum(time_spent)),2) as daily_metric


from job_data group by date;

Output:
Submitted by: Harshali Naik

C. Language Share Analysis:


Objective: Calculate the percentage share of each language in the last 30 days.
My Task: Write an SQL query to calculate the percentage share of each language
over the last 30 days.

Query:

select language, round(((count(language)/8)*100),2) as share_of_lang


from job_data group by language;

Output:

D. Duplicate Rows Detection:


Objective: Identify duplicate rows in the data.
My Task: Write an SQL query to display duplicate rows from the job_data table.

Query:

select actor_id, count(actor_id) as tot_count from job_data


group by actor_id having tot_count>1;

Output:
Submitted by: Harshali Naik

Case Study 2: Investigating Metric Spike

Insights:

A. Weekly User Engagement:


Objective: Measure the activeness of users on a weekly basis.
My Task: Write an SQL query to calculate the weekly user engagement.

Query:

select * from events_table;


select extract(week from occurred_at) as weeks,
count(distinct user_id) as no_of_users from events_table
where event_type="engagement"
group by weeks order by weeks;

Output:

B. User Growth Analysis:


Objective: Analyze the growth of users over time for a product.
My Task: Write an SQL query to calculate the user growth for the product.
Submitted by: Harshali Naik

Query:

select week_num, year_num,


sum(active_users) over (order by week_num, year_num
rows between unbounded preceding and current row) as cumulative_sum
from (
select extract(week from activated_at) as week_num,
extract(year from activated_at) as year_num,
count(distinct user_id) as active_users from users_table
where state= "active"
group by year_num, week_num
order by year_num, week_num) as alias;

Output:
Submitted by: Harshali Naik
Submitted by: Harshali Naik
Submitted by: Harshali Naik

C. Weekly Retention Analysis:


Objective: Analyze the retention of users on a weekly basis after signing up for a
product.
My Task: Write an SQL query to calculate the weekly retention of users based on
their sign-up cohort.

Query:

select * from events_table;


select extract(week from occurred_at) as weeks,
count(distinct user_id) as no_of_users from events_table
where event_type="signup_flow" and event_name="complete_signup"
group by weeks order by weeks;

Output:

D. Weekly Engagement Per Device:


Objective: Measure the activeness of users on a weekly basis per device.
My Task: Write an SQL query to calculate the weekly engagement per device.

Query:

select * from events_table;


Submitted by: Harshali Naik

select device, extract(week from occurred_at) as weeks,


count(distinct user_id) as no_of_users from events_table
where event_type="engagement"
group by device, weeks order by weeks;

Output:

E. Email Engagement Analysis:


Objective: Analyze how users are engaging with the email service.
My Task: Write an SQL query to calculate the email engagement metrics.

Query:

select * from email_events_table;


select count(action) as action_count, action from email_events_table group by
action;
select
(sum(case when
email_category="email_opened" then 1 else 0 end)/sum(case when
email_category="email_sent" then 1 else 0 end))*100 as open_rate,
Submitted by: Harshali Naik

(sum(case when
email_category="email_clickthrough" then 1 else 0 end)/sum(case when
email_category="email_sent" then 1 else 0 end))*100 as click_rate
from (
select *,
case
when action in ("sent_weekly_digest", "sent_reengagement_email")
then ("email_sent")
when action in ("email_open") then ("email_opened")
when action in ("email_clickthrough") then ("email_clickthrough")
end as email_category
from email_events_table) as alias;

Output:

Result:

Operational analytics is the process of using data analysis and business intelligence
to improve efficiency and streamline everyday operations in real time. A subset of
business analytics, operational analytics is supported by data mining, artificial
intelligence, and machine learning. This project helped me understand the
importance of operation analytics. Through this project I am able to understand how
the companies use metric spike as a secret weapon. With an informed and proactive
approach, they can leverage insights to make data-backed decisions that optimize
their strategy and boost ROI.

You might also like