Skip to content

For this project, the task is to create a dashboard for a particular brand in Kimia Farma. The tools that been used is SQL to process the raw data and then transfered the data to Google Data Studio to Visualize it

Notifications You must be signed in to change notification settings

Shanna2000/Kimia-Farma_Creating-Dashboard-for-Salycil-Brand_VIX

Repository files navigation

Kimia Farma_Dashboard for Salicyl Brand Sales

Data Warehouse, Data Lake, and Data Mart

There are three types repository data:

  • Data Warehouse: The place where all the data gathered in one repository and most likely, the data very unstructure.
  • Data Lake: A derivative of the data warehouse but has been tidied up and more structured but the scope is still very broad
  • Data Mart: A dervative from a data lake and aimed for a particular field analysis data. For this task, we need to make a data mart with just contained Salicyl Brand from the Data Lake

Dataset

The dataset formed Excel with three sheets: Sheet 'penjualan', 'pelanggan', and 'barang'

  • Sheet 'penjualan': contain sales data for the entire year
  • Sheet 'pelanggan': contain customer data
  • Sheet 'barang': contain products from Kimia Farma with several brands, including Salicyl Brand
    From the database, we need to make Table Base and Table Aggregate. Table base contained raw data for the Salicyl Brand whereas Table Aggregate is derivied from Tabel Base and contain more short data to visualize with Google Data Studio

Table and SQL Queries

Table Base

Here are my SQL Queries to create the Table Base:

Create table Tabel_base_salicyl as
select 
	penjualan.id_cabang,
	pelanggan.cabang_sales,
	penjualan.id_customer,
	pelanggan.nama,
	penjualan.id_distributor,
	penjualan.id_barang,
	barang.nama_barang,
	barang.lini,
	penjualan.tanggal,
	to_char(penjualan.tanggal, 'Month') as bulan,
	penjualan.jumlah_barang,
	penjualan.harga
from penjualan 
join barang on barang.kode_barang = penjualan.id_barang
join pelanggan on penjualan.id_customer = pelanggan.id_customer
where barang.lini = 'SLCYL'

I create the table base with the ERD:


Figure 1. ERD for the making of Table Base

The result of the Table Base:

Table 1. Table Base

Table Aggregate

Aggregate tables are generated from base tables which contain denser data and are used for data visualization with Google Data Studio.
Here are my SQL Queries to create the Table Base:

create table tabel_aggregate_salycil as
   select 
   	cabang_sales,
   	nama,
   	nama_barang,
   	bulan,
   	jumlah_barang,
   	pendapatan
   from tabel_base_salicyl

The result of the Table Aggregate:

Table 2. Table Aggregate

Dashboard

Table Aggregate inputed to the Google Data Studio and created the dashboard. Here's the dashboard that I've been creating:


Figure 2. Dashboard for Salicyl Brand Sales

Link Dashboard Google Data Studio

About

For this project, the task is to create a dashboard for a particular brand in Kimia Farma. The tools that been used is SQL to process the raw data and then transfered the data to Google Data Studio to Visualize it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published