SlideShare a Scribd company logo
1 of 18
DATA ANALYSIS WITH
POSTGRES AND POWER BI
BY SANGEETHA SUBRAMANI
SENIOR SOFTWARE
ENGINEER
TABLE OF CONTENTS
• INTRODUCTION
• POSTGRESQL SERVER
 Installation
 Create Database
 Import Data to PostgreSQL database
 Postgres Query that returns the # of transactions and the total amount by month.
 Output
• POWER BI
 Installation
 Brief Introduction of KPI
 KPI Visualizations
 KPI Visualizations created with the help of POWER BI
• DATA ANALYSIS
 Analysing data generated from Power BI
• DATA INTERPRETATION
• RECOMMENDING ADDITIONAL DATA POINTS FOR ANALYSIS AND CONCLUSION
2
INTRODUCTION
In this presentation, I will explain below mentioned items for a dataset(create
excel data or use your personal excel data).
 Write a PostgreSQL query that returns the # of transactions and the total
amount by month
 Analysing the data provided in dataset(EXCEL) and defining 3 KPIs.
 Interpret your results and draw conclusions for the business.
3
POSTGRESQL SERVER - INSTALLATION
• Download and Install PostgreSQL version 11 on your windows
machine.
• I referred below link for my 64 bit OS
• https://www.postgresql.org/download/windows
• Go to Start Menu and Verify if PostgreSQL 11 is installed correctly.
4
POSTGRESQL SERVER - CREATE DATABASE
• Go to Windows Menu and launch to SQL
Shell(psql). Login with default Server,
Database and port and provide password
which you have given during installation.
• Create Database with below command.
CREATE DATABASE test;
• View newly created Databse is listed with
below command.
l
5
POSTGRESQL SERVER - IMPORT DATA TO POSTGRESQL
DATABASE
• Convert XLSX file to CSV file(Open XLSX file and save
as CSV file) and save in your system.
• Go to Start Menu and Launch pgAdmin4 and
establish connection. Verify if newly created
database (eg. Test) is listed.
• DatabaseSchemaspublicRight click on Public
and select ‘CREATE Script’
• Run below command to drop data
Drop table PUBLIC_DATA;
6
CONTINUED….
• Create Table with same data structure(Column headers in the csv file) available
in csv file. I used my assignment csv file.
• Run Below command to create a table for attached Excel.
CREATE TABLE public.data
(user_id integer,
transaction_id integer,
location character varying(50) COLLATE pg_catalog."default",
transaction_date timestamp without time zone,
"amount_$" double precision,
channel character varying(50) COLLATE pg_catalog."default",
product_name character varying(50) COLLATE pg_catalog."default"
)
7
CONTINUED…
• Run below command to Cross check the data by using select
command
select * from PUBLIC_DATA;
• Copy file by using below command
COPY PUBLIC.DATA FROM
‘C:UsersPRADEEPDownloadsTestBI_Test_Assignment.csv’
WITH CSV HEADER;
I have to write a Postgresql query that returns the # of
transactions and the total amount by month.
8
POSTGRES QUERY THAT RETURNS THE # OF
TRANSACTIONS AND THE TOTAL AMOUNT BY
MONTH
'Below query will extract the no of transaction for
total amount based on month and year.'
• select count(transaction_date) as
No_of_transactions,
‘Below query to be converted as stored procedure.'
• sum(amount_$) as total_amount,
• extract(month from transaction_date) as Month,
• extract(year from transaction_date) as year from
data group by extract(month from
transaction_date),
• extract(year from transaction_date) 9
OUTPUT
10
POWER BI - INSTALLATION
• There are two ways to install Power BI in windows OS.
• Type 1:Download the package from Microsoft power BI website and install.
• Type 2: Installation the App from Microsoft Store.
• I prefer installing App method as Power BI gets automatically updated if
there is any updated version available.
11
POWER BI - BRIEF INTRODUCTION OF KPI
• A Key Performance Indicator (KPI) is a visual cue that communicates the
amount of progress made toward a target.
• When to use KPI ?
When user think,
What am I ahead or behind on, this specifically refers to a TARGET number
How far ahead or behind am I, this represents a TREND which is related to
the target
Since KPI is based on specific measure, it is designed to help you evaluate a
current value and status of the metric.
• KPI requires Base Measure that evaluates the value and Target Measure .
12
KPI VISUALIZATIONS
• Open Power BI Desktop.
• Lets create few KPIs that measures the progress that made toward a certain
goal
• Step 1: Import Excel data and check preview of imported data.
• Step 2: Select column graph with values which we want to measure.
• Step 3: Select table for same values which we selected in step 1
• Step 4: Select one more table with same values and then change it to a KPI
NOTE: I feel comfortable having table, column graph along with KPI. So
created dashboard with these visualizations to compare data and measure
value
13
ANALYSING DATA GENERATED FROM POWER BI
• Here we are measuring progress for ‘Total Amount’ by ‘Year’. Here we can
see the Sale Trend that is regressing in 2019 compared to 2018
14
CONTINUED…
• Here we are measuring progress of ‘Location’ by ‘Transaction ID’. Total
number of transaction is high for Germany location compared to UK,
Switzerland and other countries.
15
CONTINUED…
• Here we are measuring progress for ‘Transaction ID’ by ‘Channel’. The total
number of transaction is high for channel 5 whereas its low for channel 1.
16
DATA ANALYSIS – DATA INTERPRETATION
• Total Amount($) in the year 2019 is less compared to Total Amount($) in
the year 2018. Company has to bring some new ideas where it can
encourage customer to deposit more Amount.
• The Total Number of transaction is good in few locations such as Germany.
One has find out the reason why transactions are not good in other
countries. There is a huge difference in total number of transactions.
Methodologies followed in Germany can be applied to other countries so as
to improve transactions in other countries.
• Channels 5 is helping a lot for Sales. Thich can be encouraged and
advertised more in other sectors or locations where sales are less.
17
THANK YOU
• For any queries please contact:
sangeethas1989@gmail.com
• My Linkedin id is:
www.linkedin.com/in/sangeetha.subramani05029833
• Date of the slide created:
02/09/2019
18

More Related Content

What's hot

ETL Validator: Creating Data Model
ETL Validator: Creating Data ModelETL Validator: Creating Data Model
ETL Validator: Creating Data ModelDatagaps Inc
 
An Introduction on BI Publisher & JD Edwards Integration
An Introduction on BI Publisher & JD Edwards IntegrationAn Introduction on BI Publisher & JD Edwards Integration
An Introduction on BI Publisher & JD Edwards Integrationadivasoft
 
Ca 10 G1 John Buickerood Portfolio
Ca 10 G1 John Buickerood PortfolioCa 10 G1 John Buickerood Portfolio
Ca 10 G1 John Buickerood PortfolioJohn_Buickerood
 
View api analytics
View api analyticsView api analytics
View api analyticsSon Nguyen
 
Now you can password protect excel outputs too in bi publisher
Now you can password protect excel outputs too in bi publisherNow you can password protect excel outputs too in bi publisher
Now you can password protect excel outputs too in bi publisherFeras Ahmad
 
Query parameterization in ETL Validator
Query parameterization in ETL ValidatorQuery parameterization in ETL Validator
Query parameterization in ETL ValidatorDatagaps Inc
 
Item import in Product Data Hub
Item import in Product Data HubItem import in Product Data Hub
Item import in Product Data HubLarry Sherrod
 
Acl Analytics10.5 New Features
Acl Analytics10.5 New FeaturesAcl Analytics10.5 New Features
Acl Analytics10.5 New FeaturesDataConsulting
 
Catalyst 2016: Workflow and Automation
Catalyst 2016: Workflow and AutomationCatalyst 2016: Workflow and Automation
Catalyst 2016: Workflow and AutomationEnergyCAP, Inc.
 
ETL Validator: Testing for Referential Integrity
ETL Validator: Testing for Referential IntegrityETL Validator: Testing for Referential Integrity
ETL Validator: Testing for Referential IntegrityDatagaps Inc
 
Microsoft Graph community call-March 2019
Microsoft Graph community call-March 2019Microsoft Graph community call-March 2019
Microsoft Graph community call-March 2019Microsoft 365 Developer
 
Data Profile Test Plan
Data Profile Test PlanData Profile Test Plan
Data Profile Test PlanDatagaps Inc
 
ETL Validator: Flat File to Table comparison
ETL Validator: Flat File to Table comparisonETL Validator: Flat File to Table comparison
ETL Validator: Flat File to Table comparisonDatagaps Inc
 
Prevent merging columns in excel output using rtf template
Prevent merging columns in excel output using rtf templatePrevent merging columns in excel output using rtf template
Prevent merging columns in excel output using rtf templateFeras Ahmad
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisherJAYAARC
 
Business Analytics Implementation
Business Analytics ImplementationBusiness Analytics Implementation
Business Analytics ImplementationFrank Luong PMP,MBA
 
ETL Microsoft Material
ETL Microsoft MaterialETL Microsoft Material
ETL Microsoft MaterialAhmed Hashem
 
ETL Validator: Flat File Validation
ETL Validator: Flat File ValidationETL Validator: Flat File Validation
ETL Validator: Flat File ValidationDatagaps Inc
 

What's hot (20)

Speakers slidedeckwidescreen sp-biz
Speakers slidedeckwidescreen   sp-bizSpeakers slidedeckwidescreen   sp-biz
Speakers slidedeckwidescreen sp-biz
 
ETL Validator: Creating Data Model
ETL Validator: Creating Data ModelETL Validator: Creating Data Model
ETL Validator: Creating Data Model
 
An Introduction on BI Publisher & JD Edwards Integration
An Introduction on BI Publisher & JD Edwards IntegrationAn Introduction on BI Publisher & JD Edwards Integration
An Introduction on BI Publisher & JD Edwards Integration
 
Ca 10 G1 John Buickerood Portfolio
Ca 10 G1 John Buickerood PortfolioCa 10 G1 John Buickerood Portfolio
Ca 10 G1 John Buickerood Portfolio
 
View api analytics
View api analyticsView api analytics
View api analytics
 
Now you can password protect excel outputs too in bi publisher
Now you can password protect excel outputs too in bi publisherNow you can password protect excel outputs too in bi publisher
Now you can password protect excel outputs too in bi publisher
 
Query parameterization in ETL Validator
Query parameterization in ETL ValidatorQuery parameterization in ETL Validator
Query parameterization in ETL Validator
 
Item import in Product Data Hub
Item import in Product Data HubItem import in Product Data Hub
Item import in Product Data Hub
 
CP Salesforce Overview-2016
CP Salesforce Overview-2016CP Salesforce Overview-2016
CP Salesforce Overview-2016
 
Acl Analytics10.5 New Features
Acl Analytics10.5 New FeaturesAcl Analytics10.5 New Features
Acl Analytics10.5 New Features
 
Catalyst 2016: Workflow and Automation
Catalyst 2016: Workflow and AutomationCatalyst 2016: Workflow and Automation
Catalyst 2016: Workflow and Automation
 
ETL Validator: Testing for Referential Integrity
ETL Validator: Testing for Referential IntegrityETL Validator: Testing for Referential Integrity
ETL Validator: Testing for Referential Integrity
 
Microsoft Graph community call-March 2019
Microsoft Graph community call-March 2019Microsoft Graph community call-March 2019
Microsoft Graph community call-March 2019
 
Data Profile Test Plan
Data Profile Test PlanData Profile Test Plan
Data Profile Test Plan
 
ETL Validator: Flat File to Table comparison
ETL Validator: Flat File to Table comparisonETL Validator: Flat File to Table comparison
ETL Validator: Flat File to Table comparison
 
Prevent merging columns in excel output using rtf template
Prevent merging columns in excel output using rtf templatePrevent merging columns in excel output using rtf template
Prevent merging columns in excel output using rtf template
 
XMLPublisher
XMLPublisherXMLPublisher
XMLPublisher
 
Business Analytics Implementation
Business Analytics ImplementationBusiness Analytics Implementation
Business Analytics Implementation
 
ETL Microsoft Material
ETL Microsoft MaterialETL Microsoft Material
ETL Microsoft Material
 
ETL Validator: Flat File Validation
ETL Validator: Flat File ValidationETL Validator: Flat File Validation
ETL Validator: Flat File Validation
 

Similar to Data analysis with Postgres and Power BI

conf2015_TLaGatta_CHarris_Splunk_BusinessAnalytics_DeliveringHighLevelAnalytics
conf2015_TLaGatta_CHarris_Splunk_BusinessAnalytics_DeliveringHighLevelAnalyticsconf2015_TLaGatta_CHarris_Splunk_BusinessAnalytics_DeliveringHighLevelAnalytics
conf2015_TLaGatta_CHarris_Splunk_BusinessAnalytics_DeliveringHighLevelAnalyticsTom LaGatta
 
Team project - Data visualization on Olist company data
Team project - Data visualization on Olist company dataTeam project - Data visualization on Olist company data
Team project - Data visualization on Olist company dataManasa Damera
 
Datawarehousing with MySQL
Datawarehousing with MySQLDatawarehousing with MySQL
Datawarehousing with MySQLHarshit Parekh
 
CONNECTED_INSIGHT_APQC_Benchmark.pdf
CONNECTED_INSIGHT_APQC_Benchmark.pdfCONNECTED_INSIGHT_APQC_Benchmark.pdf
CONNECTED_INSIGHT_APQC_Benchmark.pdfKyuCho8
 
APQC + Connected Insight = Informed Targets + Sustainable Momentum
APQC + Connected Insight = Informed Targets + Sustainable MomentumAPQC + Connected Insight = Informed Targets + Sustainable Momentum
APQC + Connected Insight = Informed Targets + Sustainable MomentumKyuCho8
 
Eric Shields Portfolio
Eric Shields PortfolioEric Shields Portfolio
Eric Shields PortfolioEricShields
 
ML, Statistics, and Spark with Databricks for Maximizing Revenue in a Delayed...
ML, Statistics, and Spark with Databricks for Maximizing Revenue in a Delayed...ML, Statistics, and Spark with Databricks for Maximizing Revenue in a Delayed...
ML, Statistics, and Spark with Databricks for Maximizing Revenue in a Delayed...Databricks
 
Caso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e SplunkCaso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e SplunkSplunk
 
Building the BI system and analytics capabilities at the company based on Rea...
Building the BI system and analytics capabilities at the company based on Rea...Building the BI system and analytics capabilities at the company based on Rea...
Building the BI system and analytics capabilities at the company based on Rea...GameCamp
 
Splunk conf2014 - Dashboard Fun - Creating an Interactive Transaction Profiler
Splunk conf2014 - Dashboard Fun - Creating an Interactive Transaction ProfilerSplunk conf2014 - Dashboard Fun - Creating an Interactive Transaction Profiler
Splunk conf2014 - Dashboard Fun - Creating an Interactive Transaction ProfilerSplunk
 
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...Srinath Reddy
 
Power bi ea content pack v0.1
Power bi   ea content pack v0.1Power bi   ea content pack v0.1
Power bi ea content pack v0.1Luca Mauri
 
Building a Dashboard in an hour with Power Pivot and Power BI
Building a Dashboard in an hour with Power Pivot and Power BIBuilding a Dashboard in an hour with Power Pivot and Power BI
Building a Dashboard in an hour with Power Pivot and Power BINR Computer Learning Center
 
DevopsBusinessCaseTemplate
DevopsBusinessCaseTemplateDevopsBusinessCaseTemplate
DevopsBusinessCaseTemplatePeter Lamar
 
How to broadcast a b ex report through e
How to broadcast a b ex report through eHow to broadcast a b ex report through e
How to broadcast a b ex report through eZaynab Fadlallah
 

Similar to Data analysis with Postgres and Power BI (20)

conf2015_TLaGatta_CHarris_Splunk_BusinessAnalytics_DeliveringHighLevelAnalytics
conf2015_TLaGatta_CHarris_Splunk_BusinessAnalytics_DeliveringHighLevelAnalyticsconf2015_TLaGatta_CHarris_Splunk_BusinessAnalytics_DeliveringHighLevelAnalytics
conf2015_TLaGatta_CHarris_Splunk_BusinessAnalytics_DeliveringHighLevelAnalytics
 
PowerBI Training
PowerBI Training PowerBI Training
PowerBI Training
 
Power bi
Power biPower bi
Power bi
 
Project+team+1 slides (2)
Project+team+1 slides (2)Project+team+1 slides (2)
Project+team+1 slides (2)
 
Team project - Data visualization on Olist company data
Team project - Data visualization on Olist company dataTeam project - Data visualization on Olist company data
Team project - Data visualization on Olist company data
 
Datawarehousing with MySQL
Datawarehousing with MySQLDatawarehousing with MySQL
Datawarehousing with MySQL
 
CONNECTED_INSIGHT_APQC_Benchmark.pdf
CONNECTED_INSIGHT_APQC_Benchmark.pdfCONNECTED_INSIGHT_APQC_Benchmark.pdf
CONNECTED_INSIGHT_APQC_Benchmark.pdf
 
APQC + Connected Insight = Informed Targets + Sustainable Momentum
APQC + Connected Insight = Informed Targets + Sustainable MomentumAPQC + Connected Insight = Informed Targets + Sustainable Momentum
APQC + Connected Insight = Informed Targets + Sustainable Momentum
 
Eric Shields Portfolio
Eric Shields PortfolioEric Shields Portfolio
Eric Shields Portfolio
 
ML, Statistics, and Spark with Databricks for Maximizing Revenue in a Delayed...
ML, Statistics, and Spark with Databricks for Maximizing Revenue in a Delayed...ML, Statistics, and Spark with Databricks for Maximizing Revenue in a Delayed...
ML, Statistics, and Spark with Databricks for Maximizing Revenue in a Delayed...
 
Caso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e SplunkCaso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e Splunk
 
Building the BI system and analytics capabilities at the company based on Rea...
Building the BI system and analytics capabilities at the company based on Rea...Building the BI system and analytics capabilities at the company based on Rea...
Building the BI system and analytics capabilities at the company based on Rea...
 
Splunk conf2014 - Dashboard Fun - Creating an Interactive Transaction Profiler
Splunk conf2014 - Dashboard Fun - Creating an Interactive Transaction ProfilerSplunk conf2014 - Dashboard Fun - Creating an Interactive Transaction Profiler
Splunk conf2014 - Dashboard Fun - Creating an Interactive Transaction Profiler
 
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
Tableau - Learning Objectives for Data, Graphs, Filters, Dashboards and Advan...
 
Power bi ea content pack v0.1
Power bi   ea content pack v0.1Power bi   ea content pack v0.1
Power bi ea content pack v0.1
 
PowerBI Embedded in D365 Finance and Operations
PowerBI Embedded in D365 Finance and OperationsPowerBI Embedded in D365 Finance and Operations
PowerBI Embedded in D365 Finance and Operations
 
Building a Dashboard in an hour with Power Pivot and Power BI
Building a Dashboard in an hour with Power Pivot and Power BIBuilding a Dashboard in an hour with Power Pivot and Power BI
Building a Dashboard in an hour with Power Pivot and Power BI
 
DevopsBusinessCaseTemplate
DevopsBusinessCaseTemplateDevopsBusinessCaseTemplate
DevopsBusinessCaseTemplate
 
How to broadcast a b ex report through e
How to broadcast a b ex report through eHow to broadcast a b ex report through e
How to broadcast a b ex report through e
 
Bi Portfolio
Bi PortfolioBi Portfolio
Bi Portfolio
 

Recently uploaded

VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 

Recently uploaded (20)

VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 

Data analysis with Postgres and Power BI

  • 1. DATA ANALYSIS WITH POSTGRES AND POWER BI BY SANGEETHA SUBRAMANI SENIOR SOFTWARE ENGINEER
  • 2. TABLE OF CONTENTS • INTRODUCTION • POSTGRESQL SERVER  Installation  Create Database  Import Data to PostgreSQL database  Postgres Query that returns the # of transactions and the total amount by month.  Output • POWER BI  Installation  Brief Introduction of KPI  KPI Visualizations  KPI Visualizations created with the help of POWER BI • DATA ANALYSIS  Analysing data generated from Power BI • DATA INTERPRETATION • RECOMMENDING ADDITIONAL DATA POINTS FOR ANALYSIS AND CONCLUSION 2
  • 3. INTRODUCTION In this presentation, I will explain below mentioned items for a dataset(create excel data or use your personal excel data).  Write a PostgreSQL query that returns the # of transactions and the total amount by month  Analysing the data provided in dataset(EXCEL) and defining 3 KPIs.  Interpret your results and draw conclusions for the business. 3
  • 4. POSTGRESQL SERVER - INSTALLATION • Download and Install PostgreSQL version 11 on your windows machine. • I referred below link for my 64 bit OS • https://www.postgresql.org/download/windows • Go to Start Menu and Verify if PostgreSQL 11 is installed correctly. 4
  • 5. POSTGRESQL SERVER - CREATE DATABASE • Go to Windows Menu and launch to SQL Shell(psql). Login with default Server, Database and port and provide password which you have given during installation. • Create Database with below command. CREATE DATABASE test; • View newly created Databse is listed with below command. l 5
  • 6. POSTGRESQL SERVER - IMPORT DATA TO POSTGRESQL DATABASE • Convert XLSX file to CSV file(Open XLSX file and save as CSV file) and save in your system. • Go to Start Menu and Launch pgAdmin4 and establish connection. Verify if newly created database (eg. Test) is listed. • DatabaseSchemaspublicRight click on Public and select ‘CREATE Script’ • Run below command to drop data Drop table PUBLIC_DATA; 6
  • 7. CONTINUED…. • Create Table with same data structure(Column headers in the csv file) available in csv file. I used my assignment csv file. • Run Below command to create a table for attached Excel. CREATE TABLE public.data (user_id integer, transaction_id integer, location character varying(50) COLLATE pg_catalog."default", transaction_date timestamp without time zone, "amount_$" double precision, channel character varying(50) COLLATE pg_catalog."default", product_name character varying(50) COLLATE pg_catalog."default" ) 7
  • 8. CONTINUED… • Run below command to Cross check the data by using select command select * from PUBLIC_DATA; • Copy file by using below command COPY PUBLIC.DATA FROM ‘C:UsersPRADEEPDownloadsTestBI_Test_Assignment.csv’ WITH CSV HEADER; I have to write a Postgresql query that returns the # of transactions and the total amount by month. 8
  • 9. POSTGRES QUERY THAT RETURNS THE # OF TRANSACTIONS AND THE TOTAL AMOUNT BY MONTH 'Below query will extract the no of transaction for total amount based on month and year.' • select count(transaction_date) as No_of_transactions, ‘Below query to be converted as stored procedure.' • sum(amount_$) as total_amount, • extract(month from transaction_date) as Month, • extract(year from transaction_date) as year from data group by extract(month from transaction_date), • extract(year from transaction_date) 9
  • 11. POWER BI - INSTALLATION • There are two ways to install Power BI in windows OS. • Type 1:Download the package from Microsoft power BI website and install. • Type 2: Installation the App from Microsoft Store. • I prefer installing App method as Power BI gets automatically updated if there is any updated version available. 11
  • 12. POWER BI - BRIEF INTRODUCTION OF KPI • A Key Performance Indicator (KPI) is a visual cue that communicates the amount of progress made toward a target. • When to use KPI ? When user think, What am I ahead or behind on, this specifically refers to a TARGET number How far ahead or behind am I, this represents a TREND which is related to the target Since KPI is based on specific measure, it is designed to help you evaluate a current value and status of the metric. • KPI requires Base Measure that evaluates the value and Target Measure . 12
  • 13. KPI VISUALIZATIONS • Open Power BI Desktop. • Lets create few KPIs that measures the progress that made toward a certain goal • Step 1: Import Excel data and check preview of imported data. • Step 2: Select column graph with values which we want to measure. • Step 3: Select table for same values which we selected in step 1 • Step 4: Select one more table with same values and then change it to a KPI NOTE: I feel comfortable having table, column graph along with KPI. So created dashboard with these visualizations to compare data and measure value 13
  • 14. ANALYSING DATA GENERATED FROM POWER BI • Here we are measuring progress for ‘Total Amount’ by ‘Year’. Here we can see the Sale Trend that is regressing in 2019 compared to 2018 14
  • 15. CONTINUED… • Here we are measuring progress of ‘Location’ by ‘Transaction ID’. Total number of transaction is high for Germany location compared to UK, Switzerland and other countries. 15
  • 16. CONTINUED… • Here we are measuring progress for ‘Transaction ID’ by ‘Channel’. The total number of transaction is high for channel 5 whereas its low for channel 1. 16
  • 17. DATA ANALYSIS – DATA INTERPRETATION • Total Amount($) in the year 2019 is less compared to Total Amount($) in the year 2018. Company has to bring some new ideas where it can encourage customer to deposit more Amount. • The Total Number of transaction is good in few locations such as Germany. One has find out the reason why transactions are not good in other countries. There is a huge difference in total number of transactions. Methodologies followed in Germany can be applied to other countries so as to improve transactions in other countries. • Channels 5 is helping a lot for Sales. Thich can be encouraged and advertised more in other sectors or locations where sales are less. 17
  • 18. THANK YOU • For any queries please contact: sangeethas1989@gmail.com • My Linkedin id is: www.linkedin.com/in/sangeetha.subramani05029833 • Date of the slide created: 02/09/2019 18