0% found this document useful (0 votes)
8 views25 pages

Bi 4

Uploaded by

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

Bi 4

Uploaded by

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

L-22

Lab Manual BusinessIntelligence and Data Analytics


Business Intelligence and Data Analytics created in
L-23
Select Connection Data Lab Manual
3.4 Click OK.
3.5
Connections >Click Next.
Warehouse was created.
Name where vour Data
Specify Your SQL Server Authentication mode. Scicct todehne th (onnection
according to vour SOL Server
2 Select Radio Button
your SQL Server.
which you can connect to
3. Specify your Credentials using
4 Select database Sales_DW.
verify for its success.
Click on Test Connection and

6 Click OK.

2
3

3.6 Select Option Inherit.

Impersonation Information

Tech Knouledge
TechKnouledgo PUDIIC ation s
PubLC ations
L-24 Lab Man Business
sIntelligence and Data Analytics
L-25
Business Intelligence and Data Analytics 42 ClickNext Lab Manual
Click Finish.
3.7 Assign Data Source Name ->

(ompietirg the Wizard


Welcome to the Data Source View
Wizard

4:Creating New Data Source View.


Data Source View. A2 Select Relational Data Source we have created previously (Sales DW) -> Click Next.
4.1 In the Solution Explorer, Right Click on Data Source View - > Click on New

Select a Data Source

TechKnouledge
TechKnouledgt PUbIC ations
Publlcatlons
sinessInteelligence and Data Analytics
L-26
Lab Manua Busil L-27
Lab Manual
Data Analytics in object list. 4.6 It
willaddall gssociated dimenslons to your Fact table as per
Business Intelligence and
Table to the right
side to include Click Next. relationship specified in your SQL DW (Sales_DW).
First move your Fact
+.4

Vicws Select Tasies snd Vies


Setect Tsbles and

A s e cec

steps : Select Fact Tahle :


related to your Fact Table, follow the given
4.5 Now to add dimensions which are 47 Assign Name (Sales DW DSV) -> Click Finish.
Add Related Tables.
Right Pane (Fact product Sales) -> Click on

Completing the Wizrd


Seiect Tables and Views

Tech Knouledge
atlons
Tech Kaoule
PubICatlons
Lab Manual BusinessIntelligence and Data Analytlcs
L-28
Business Intelligence and Data Analytics Cuhe L-29
CreatingNew Lab Manual
5:
4.8 New Data Source View is ready to use. In Solution Explorer -> Right Click on Cube ->
5.1 Click New Cube

5.2 Click Next.

Welcome to the ube Wizard

Tech Kneuledge
TechKnouledye PuDIICations
PublC attons
Lab Manu Business: Intelligence and Data
L-30 Analytics L-31
Business Intelligence and Data Analytics Choose Measures from the List which
5.5 you want to place in Lab Manual
Tables -> Click Next your Cube --> Click
5.3 Select Option Use existing Next
Seiect Measuses
Select Creation Method

(FactProductSales) -> Click Next. es Select All Dimensions here which are assOciated with your Fact Table -> Click Next.
5.4 Select Fact Table Name from Measure Group Tables

Seteet New Dirnensions


Seiect Measure Group Tables

Tech Kaouledge
TechKnouledu PUbIC ations
PUbIcatlons
BustnessIntelligence and Data Analytics
Lab ManUA pimension Modification L-33 Lab Manual
L-32
6 Explorer,double click on dimension Dim
Business Intelligence and Data Analytics In Solution
ClickFinish. Data Source
View and Add in
Attribute Pane at left side. Product -> Drag and Drop
(SalesAnalyticalCube) > Product Name from Table in
5.7 Assign Cube Name
Completing the Wiuard

explore
dimensions added in your solution
you can see the newly created cube and 7. Creating Attribute Hierarchy In Date Dimension
5.8 NoW your Cube is ready
Double click On Dim Date dimension > Drag and Drop Fields from Table shown in Data Source View to
Attributes-> Drag and Drop attributes from leftmost pane of attributes to middle pane of Hierarchy.
Drag fields in sequence from Attributes to Hierarchy window (Year, Quarter Name, Month Name, Week of the
Month, Full Date UK),

ts

TechKnowledge
PUDIt atlons
TechKnouledgu
PUbIlca tlons
Intelligence and| Data Analytics
Lab Manua Business
Explorer, rightcclick on
L-35 Lab Manual
L-34
Ins Solution Project Name
Business Intelligence and Data Analytics
(SalesDataAnalysis).- >
Click Properties.
8.3
(SalesDataAnalysis) --> Click Deploy.
8: Deploy the Cube. Project Name
8.1 In Solution Explorer, right click on

Gaoerate Ralt-ond Scheoa

es

oA Once Deployment will finish, you can see the message Deployment Completed in deployment Properties.
8.2 Set Deployment Properties First.
Your SQL Server Instance Name Where Analveie
In Configuration Properties, Select Deployment > Assign
-> Choose Deployment Mode Deplov Al
Services is installed (mubin-pc\fairy) (Machine Name\Instance Name)
as of now -> Select Processing Option Do Not Process -> Click OK.

Eetyug P

Salosbatahnay

y t i c e E
Frocesog

Tech Knouledge
PuDIC ation s
Tech Knouledy!
Pubcatlons
BusinessInntelligence and Data Analytics
L-36
Lab Manu processingis
L-37 Lab Manual
Business Intelligence and Data Analytics
complete,
you can
93 Once for processing one after1 see Status as Process
(SalesDataAnalysis)-->
ClickPProcesS windows the other Succeeded -- >Click:Close to close both the open
9: Process the Cube. Project Name
9.1 In Solution Explorer, right
click on

9.2 Click on Run button to process the Cube.


10. Browse the Cube for Analysis.
10.1 Jn Solution Explorer, right click on Cube Name (SalesDataAnalysisCube) -- >Click Browse

Tech Knouledge
PUDLCatlons
Tech Knoulelg
PUblcatlons
BusinessIntelligence and| Data Analytics
L-38
Lab Manual L-39
Lab Manual
Field or
Attributes in Row
Business Intellígence and Data Analytics
& Dragand
Drop
Dimension Column fields
10.2 Drag and drop measures in to
Detail fields,
Practical No. 4
Now to Browse Our Cube,
Column. Aim: Create the ETL map and setup the
Product Name Drag & Drop into schedule for
1
into Row Field.
execution.
2. Full Date UK Drag & Drop
in Detail area. Steps
3
FactProductSalesCount Drop this measure Open Power BI deskton
1. Untaled-power Bi Desieg
vie- Hocehng Meis

Queries

VISUALATIONS FELDS

FILTERS

DRILLTHROUGH

*source for the above practical is : Fage


https://www.codeproject.com/Articles/658912/Create-First-OLAP-Cube-in-SQL-Server-Analysis-Serv.

2 Select Get Data ->Excel


ADtop

trcen

VISUALIZATIONS FELDS

LTERS

DPaLTHRDUOH

on O

Tech Knouledge
PuDIICations
BusinessIntelligence and Data Analytics
L-40
Lab Mahlual L-41
tables that you want to Lab Manual
Select the preview and click on load,
Business Intelligence and Data Analytics 4.
analyze.
fle that vou want to
3 Select the desired excel

4tate
maiagerater

90,9s_9-15ala

EcelFle

1oifed

VIsUALIZAIONS

O1ebineN
Shruikas
ghmareWa
Oseatch FELOSs

Tech Knouledge
TechKnewledg!
PubI|Ca
PuDLC at Ions
Intelligence and Data Analytics
L-42 Lab Manua Business
L-43
Business Intelligence and Data Analytics
OK 9PM Click onfrom marketplace. Lab Manual
end press
5 It loads the table in Power BÊ console and at
19/2)19

diilavegtAtandonS
Diag FIELDS
Neei
XFIELDS

hese LTHROUGH
DRIR
isLALIZAIONS elds
dta
.From
Stch
rom
Car Drag

matkeig

eutont

16.72
Load

tiodzling Wndovs

aid
Payei4
neb
the
HSesreih

AGE1O

Tech Knowledge
Pubtatlons
Techknouley
PUblCatlons
Lab Manual Business,Intelligence and Data
L-44 Analytics
Business Intelligence and Data Analytics Click on OK once the L-45
message is displayed. Lab Manual
click on ada.
7. In the panel search for flow map and

Aes
uick
VISUALIZATIONSFIELOS

v Add
you
for
Suggested

Alurketolace

China
Fiow
Map
isio
Visuai cUstormn
Inport
VIsual

ORGANIZATION
MY Flow
m

Power
Visuas
Bi The

MARKETPLACE
fiow
map C3tegoy Eaor's
PicKs

Tech Knouledge Tech Kaowledge


PuDCatons
PUDII(atlons
BusinessIntelligence and Data Analytics
L-46 Lab Manual and dron
L-47

Business Intelligence and Data Analytics cliCk on itthe


image appear.
reci
eit 10. Drag different columns in different Lab Manual
sections like Origin,
9 Flow map icon will appear in
visualization sectionand once you
PM
R
ac ordng aoints will appear on the man
Destination, Color and so on. And the sald

to your requirement.
Rate

FIELOS
VISUALIZATONS FELOS

VISUALIZATIONS R

C
B
Powe
-Untiled
PACE 1GE

. Different kind of formatting can be done with respect to the


under format tab.
appearance of the map by changing the settings

Help Fomat
SViacrrre

.eer Eo:t Reesn Kzvy esy


Qurles .farr heze

VISUALIZATIONS FELDS

RO

013 PM
SAGEO

TechKnouledge
PUDIC atlons
Techknerledu
Pubicat|ons
Bustness Intelligence and| Data Analytics
L-48 Lab Manual
Business Intelligence and Data Analytics Cllck on the sample tableeand L-49
Practical No. 5 2. select Pivot table option Lab Manual
under Insert tab.
table and Pivot Chart.
create the Pivot
Microsoft Excel and perform data
Aim: a. Import the datawarehouse data in and Pivot Chart
to analysis.
Pivottable
and create the
b. Import the cube in Microsoft ExXcel

Steps:
sheet.
1. Import any sample data into the excel
Tmelne

Foinat
Ecel
Microsot

s:
able:
Fotnat Region.cay-

Styl
Cell
Census

RIMULA
venera

LAYOUT
PAGE

19.8 16. 07.8008 13.6235


153188

SEKT
LAYOUT
PAGE 23.9832
74.29584 FLE
HOLIE

124.0752
122.3198

58.16192
59.30775
FILE Lalbri
HGME
20152016

Toch Kaowledge
TechKnowledgi PuDICation s
PUDIcatlons
BusinessIntelligence and Data Analytics
L-50 Lab Manua the two or
L-51
click on OK Selectany of more columns to Lab Manual
Business Intelligence and Data Analytics it is and view the grand total of
are to be keep as
4.
cording tothe requirement. every
3 The pop up will appear wherethe default settings individual column, this can be done

Create PivetTable

vou want to analyze Recamterdd PivotTable


Fields
Choose the data that
Oselect a table or range
CensusRegion'"SAS1:SES19
Table Range
sOurce
OUse an exterrnal data

the PiyotTable report to be placed


Choose where you want
O New Worksheet
O
Existing Worksheet DESiGt
Location:
analyze Inultlple tsbles
Choose whether you want to

Ok Cancel

on the right hand side you will be able tO see


the columneafa
4 You will be redirected to a new worksheet where
2209.9/9098
L431.31589
table that you recently added.
FVOTABE TOOS
Censs Region.ow Mirosoh Lxce Excel
ÁNALYZE DESIGN
RE KOME INSEKT FORAMULAS CALA REVIEV!
PAGE LAYOU7
Microsoft inset
Tinelne
nsert Slicer
0:4P xde
loset T:meline Action: PivotChait Recommended Show
Prrot aole Group Refresh nge Uato onships PivotTatle;
Data Calcuistocs Regionc

Gensus 1360S6
230.12629
H
PivotTable Fields X
LAYOU
AGE
Chccse felas to add to report

Piatl:t;la1
Notht

To build a report, choose


14dxet
fields from the PivotTabie
Field List Scuth

MORE TA9LES..
D
H014E

Drag fiels betveen rees telow:

FILTERS COLUNNS

ROS VALUES

23

Sheotl Census Raion


tivate Vyin iuws

Tech Knowledye
PuDIICations

TechKnoulelge
P ubIcatlons
BusinessIntelligence and Data
L-52
table
Lao Manual Analytics L-53
Business Intelligence and Data Analytics changes in the Pivot Sign
in
refresh andSeleinct that
any cel h
reflect the Lab Manual
the following to
If the data is changed insource table do enabled under that select
5.
Che Pivot table and
then the
Analvze/Design tab will be
changes will be reflected in the table. Sele
Refresh All optionand the Sum
ofyezr
ALUE

PivotTable
Fields

0RE
TABLES

Escel
raot
Mic
Regionsy-
PEVEW of 1431.315859
Sum97s08s
2209
south

South us
Ces
of DATA
sum
Midwest
1431.31589 FORNIULAS

of
Sum
Sum
of
west
West2736.126229 LAYOUT
1736.
of
Sum FACE 2
Northeast
SERI
of
lsum
year
of ofyum
|sum
READY HLE

TechKaowledge
TechKaouledgu PUDIIC ations
PuDIcations
L-54
table
Lab Manual BuslnessIntelligence and| Data Analytics
L-55
Business Intelligence and Data Analytics
is to be reflected
in Pivot select any cell of Pivas Lab Manual
andthat source.
sampletable change data
6. If new colmn is been added to the it double click on vatChet
Recomnended
s
enabled inside
table and the Analyze tab will be Dle
rieOs

-Select
Fiter-
PivotTable
TARLE
ORE

-Delete
fomet
g
DES.SN
ItFields,

-Tssle
ANALYZE
bs
format

E Change
D
Refresh
REIEW
VIE

Census
Regken.csv Excel
Mikrosott
DATA lset
limene
estjsumae
1885 113.6235370.1495
A59.6
a72
Regioncsy
CensusFORMULAS

23.6 T258
108
LAYOUT
PASE
%82636Z4.2988A of
|Sum
m.m

412 2198 Northeast


152.9
129, 122
59.21L022
59.90n7IS of
Ficd:
Actnve
Sum
FLE
HOME year
2014 n16
PvetTabie of
Sun
EADV
E 3

TechKnouledge Tech Knouledge


PUDC atlon s
PuDICations
BusinessIntelligence and Data Analytics
L-56 Lab Mana L57
present select the Andyouwill| see the column been added in the
Business Intelligence and Data Analytics
worksheet where
your sample table is range of data tha 8 right side under Lab Manual
7 You will be again redirected tothe Pivot table field.
you want to add and click ok.
PivoTable
ielas
PivotTables

FL
TE

OKCancel calcution:
ESIGN

iEWANálZE
458.95731H

Exef ce
Dxt
Mcognoft Charnge
Rettesh

csv- Table
ge:
Ban DATA
REVIEY 1431.31589
2209.979038
REVIEN
DATA
FORAULAS
Regicon, Excel
Census Microsoft GInsert
Tinmeine
74.207
107.2008
366.075x
-2016
59.90775_122.3198_74.29854_IL3.623570.1499_
372.0398 Shce
nset
FORMULAS
Region.cav
1431.3153956
1431.31533956 115.8194
Census Giou )25
LAYOuT
PAGE 73.5833 INSERTPAGE
LAYSUT 12%
2736.
124.07TS2 3e096
1081.5
S8.16192 Sheet1 Sum
cfMidwest Sheetl

HOME
FRE field
201.5 3613
-
POINT

Tech Knouledga
TechKnouledge PuDCations
PubIlcatlons
Business Intelligence and Data Analytics
L-58
perform
Lab Manual BusinessIntelligence and Data Analytics
table and Pivot Chart to data analysis. of
For three sides che L-59
5b: Import the cube in Microsoft Excel and create the Pivot 2
cube three pivot
fields that you wantcto display in the tables need to be
Steps: epivot tables. created. Based on the Lab Manual
1 Import the sample data in the excel sheet. Sele?
Fder
requirement you can select the

et De'ete
<<N

Format

Sles
Cel

Shyle
cell

E
Excel
Microzoft

Numbe
- DATA

FORMULA

FORE:RJLAS
OUT
LAV
PAGE

LAYOUT
PAGE

NSERT
pres
ana
iop
destinat
Paste
Setrt

row is not needed in the cube so to remove grand


O Intial you will get a grand total row under every table. This
cell of the table and goto design tab and select "0ff for rows and columns"
otal roW of each tableclick on any one
under Grand Totals options.
Note: This needs to be done individually for all tables.

TechKaouledg1
PUDll(ations
hKnouledu
Tech
PUDIica tlons
Anal...
Business Intelligence and Data Analytics L-60
ab Manual onsiness Intelllgence and Data
Sign
in
X
5
Sign
in COLUNTIS Suni
salce
ef
And&
Sort
&
L-61
VALUS
Selext
Frier-
- belo Lab Manual
Pivotlable
Fieldsrecort artos
? to bctnNn
dd
to
NIORE
TBLES..
tnproval tpr
fields rortDOd ALTERS ROWS
frcß
landyal salepric
Thcose Drug DeleteFormat
gInsert
?

Prroc+aile
Sijies
Conditional
K
Fornatting
DESIGN
2VOTTASL2
VOOLS
EFormat
Table
as
SGO.98 479.85
575.84 612.33
AlIALYZE
saltopr
82
49. 309.43
S00.95
364.9 54 479.85
573. 6l2.33

26788527
32107182 L3774868
14776742
of
1E
Sum
Excel
VIEN totval
1854828
15 13640010
2305S4
PEVIEW Acroscft 26 14770742
32107182
SAS27

F of
Coiuns General (AI) Stum
Excel DAJA Barsdet - REVIENY
Rows Bookl
-
Microsoft Optian:
ayie
talie
Barded D E Labels
FORMUS
E
landval heetl
Sheet3 DATA
- Row
Bookl 3nd
Totel
Headess 433460
62289425447
351623 improval12532B43
1976690 28638045
17B22410 gg932620
9458309
9510302
20523315
Heades
Fo Algnncn
Sheet3
FORMULAS
LAYOUT
PAGE Calurno S!:eetó
of
Calumrs Sum
8137000
40493509 18725447
salepric 26048100
40622894
ColurmnsOnly
for
On 314834o0 Sheet
i Sumofsaltoapr
309.43
364.92
49.82 479.85
575.34
530.98 2893.17
612,33 Shet? L6851623 1732241o
Improval
12502848
1970690 28696046
2052381S
S510502
and
Orty 09
9458
Totas
Laycu
Rows
Ragott
Blank LAYOUI
PAGE A
-1|
IHSERT s Bows C
of of Sheet
Tor for sheet Sum Sum
ey Cn
HONIE 1878138
8508174
6237170
8509136
6864712
Grand
Subratal 15
Labels
Row !Grard
Total landval 5318433
4364366 49.
A2 364
97 309
saltoapr 43 SC0
98 575.84
85
479 612
33
2 Shee
t
INSERI
LE D 8E$F 6A17 READY of ol
A23 B 18
C D E 21F
20 Sun Sum
7 3 9 23 Sheet
4
Calibri
HOME
labels Latels

Cip0
Row Row
ALE D
READIA
Paste
A23
4A
B D B 8C F
5 7 9
3 5 7 2 A

TechKnouledge TechKaomledgo
PUbICatio
BuslnessIntelligence
and Data
Business Intelligence and Data Analytics L-62 Lab Manual Analytics
format goto design tab and L-63
4 To make table
"Show form" presentable
in tabular more thatLayout
under Report get sharper tabular
is to option.Note: This needs to be done individually for alltables. under that select
Lab Manual
DECN
IPSERT FOFDLLAS CATA

Okaned Rone
Sutt Grand Crsed Cchyms
Crsnrie Shfe:

Show ka Canprt krsm

lendvaiA PivotTable Fietds

1Row Labels Rowtabefs Sun ot totval Surn


Surn oof saltoapr
A 1854828 A9.82

15230$34 8,92
12A0018 309.43
3Z107132 500.98
575.84 ale1e
6864712 AL4SA60 26799527
5318133 137.5467 LA775242 A).85
A264366 16851623 G 13774963 G12.33

12
13

INSERT PAGE LAYouT AJRAULAS DATA REMEW ANALYZE DESIGN Soir

Llleeders
Subtotali Crad Repat Blcnk i Cohro Heders SdedCoume
PlecbTle Slle Oulks

A6

salepric
ASO91536|4062294
1672547
351C23
lanova(Al PivotTabie Fields
nbrhood Sum of landval Sum of saleprlc nbrhood sum oflotvalsumaf satoapr Chcoe fieinis to aded to renen.
of
1878138 SI$7000 A L85482s 49.32
|Sum
i norhsod
8508174 4049359 15230584 364.92
6 lo Ancval
6237170
8S09136
260431CO
406Z2594
13643018 J09.43 lrovl landval
32107L82 S00.98
6964712 31483460 26766S17 S?5.84 salep VsCRT
9 F S318433 19725447 14776742 479,6S of
10G 4264366 16351623 13774368 612.33
ISum
11 MORE TABLES.

Drac Gslds ketcen orcas be'o


1s nbrho0d Sumot satoapr Sum of leuprovaf
49.82 19766S0 IERS

364-92 173ZZ410
309.43 12502848
19 iD 500.98 28698046
20E S75.84 20523615 RONS VALUES
479.35 9458309
612.13 9510502
Sum of ingIo...

Sheet& Shest Sheeto Sheet3

5 To make the image format of the table so


that it can be added to the cube select the rows
table that you want to add to the cube and paste it as and columns from the
Linked Picture(Benefit of having Linked Picture is that
whatever changes are been made in source table it will also be reflected in the
done individually for all tables. image).Note: This needs to be

Tech Knouledge
Tech Knowledge Publcattons
Pubcations
Business Intelligence and Data
Business Intelligence and Data Analytics L-64
Lab Manual Analytics
the Picture effects option L-65
6 Now to form a cube align the table with the help of 3D effects given in aligned
should be lindividually.
This needs to be
done according to the alignment oof the table. Again everytable Lab Manual
0165 25
Crop

Border
ZPicture
TOO
PICTUKE
Picture
Ef

32107132 REVEW
DATA 30584|
2107182

acel DATA
oft
MicreFORMULAS
1-Bool SE2:$C 10493509
S50G1
260632894 SGSS
-SES1 L8725447
16952623
40622894
16851623)
LAYOUT
PAGE

| S218432
landvai 4264360
318433|

of INSERT
Sum
olo
HOME
ALE

TechKnowledi
Tech Knowledge OCatlons
PUDIIC atlons
Business Intelligence and Data L-66 Lab Manual Business Intelligence and Data Analytics
Analytics
gam Adjust the tables in such a
way L-67
individualtables and group themthat
7. it
up intolooks like cubea
FR HO4E
one image by rlghtand finaly when the alenment is Lab Manual
INSEPI

clicklng and select option of proper select all the


group.
Ariyust

70st t
hreald
ant
Sum of landval Sum of saleprc
BingSend
Baciwerd
forwatd 1878138 3137000|
BSOS174 40493509 1354$29
6237170
8509136
26048100
4C62296
152905TA
13640018 A32 rt sdsumotimpeo
L197
6964712
$318A33
31483460

18725447
207132
25798327
C9A 1202A
4264365 16851623
752 E S73. 0522113
eiection 19774862
B123

e 4

oftos 14776742
13774868L
1854828
PEVIEM Sum

SheeA Shect2 Snets


Sheot

S137000
salegrtc 16851623
8725447
icok. cct
LAYOUT HO4E PAGE LAYOUT FORAIULN$ DATA
of Shesty
Shae Colibrn
Sum .
PAGE Pte

1378)35
landval 4264366
5318433 Clipbod

13
IFSERT
of
Sum Sum of landvallSum of saieoric SumottoeallEum ot toor nersu dsumct
Cebor 1378138 8137000 1354322 49 22
HOME S509174a
6237170l
40493509 2523C52A 849 264 3220
2604310p 1364002s
2509136 06)2894 32107182
6864712l 31493460 26728527
531B43z 12725447|
AGE PiCture 4264366
1477674) F 479.gl
16351623 2 1377A363 1231 6 612 9516502

11

Shset6 Shets
L09 AM

Tech Knouledge
Tech Knouledge Pubications
PuDIcatlons
and Data
Business Intelligence and Data Analytics L-68 Lab Manual ; Intelligence
Business Analytics
Practical No. 6
summary(cons) L-69
boxplot[intr,main="BOXPLOT
reports
FOR Interest Rate 3 months") Lab Manual
Alm: Apply the what - it Analysis for data visualization. Design and generate necessary
datawarehouse data.
based on the
5
Boz olot for
Interest Rate 3 months
Code:
4
#for loading values
age <- opSage 3

2
job <- opsjob

martial <- opSeducation

education <-opSeducation Fig. 3


summary(intr)
house <- op$'housing-loan' hist(age,col="blue",border r= "black")
car <- op$` car-loan' age_hist<- hist(age,col ="blue"
cons <- op$cons.price.idx visualisation in terms of pie chartt&
,border ="black")
intr<- op$interest.rate.3months
pata
hlst(b, main=""Loan approval analysis") histogram:
Loan approval analysis
nr <- op$nr.employed
gr<- op$`grant-loan' 2500 Histograrn of ago
2000
Frequency Frequency
800
df<- data.frame(age,job,martial,education,house,car,cons, intr,nr,gr)
1500 - 600
#DATA-EXPLORATION 9 1000 - 400

500 200
boxplot[age,main="BOXPLOT FOR AGE")
Box plot lor age
90 20
0.0 0.2 0.4 0.6 0.8 80
80 0.10
70
Fig. 4
60
50 pie(table(pret)
40 Visualisation in terms of decision tree:
30
20
#Decision Tree Classification#

Fig. 1 lbrary(tree)
summary (age) fetree (gr~cons+intr+nr,d)
boxplot(cons,main="BOXPLOT FOR CONSUMERPRICE INDEX ATTRIBUTE") plot()
Box plot for consumer price index attribute
text()
94.5

94.0 library("party")
93.5
png[file=" decision_tree.png")
93.0
Output.tree <- ctree(gr~, data=dí)
92.5 - plot(output.tree)
dev.of 0)
Fig. 2
Tech Knouledga
PuDiations
Tech Knowledga
PubIICatlons
Business
Intelligence and Data Analytics
Business Intelligence and Data Analytics L-70
Lab Manual 1375.8 765.1 1434.6 635,4 L-71
m
800.0 918.5 685.5 8986
784.2 985.0 882.8 Lab Manual
No thedchart file a name.
>HGive 2071.0
>png{ile.="rainfall,png')
graphoftthe time series.
Yes
#Plota
plot(rainfall
timeseries)

Fig.5 >#Savethefile.
splot(rainfal.timeseries)
(pr0.001
5076.2 5076.2 3
irilr
p« 0.001

4021
job
-O.005/

(blue Col ar,entrepreneur. housernaid, management,


servicos, technician, unemployed, urnknovn)
age
p-0.046/

>59
Node 2(n-519)
-1
Node 6(0:-262) Node 7in-13)
-1
Node 8(n=611), Node 9(n-2714)
Fo8 -0.8 +o.8 +0.8
FO.6 -0.6 -0.6 -06
-04 F0.4 -) 4 -0.4 F0.4 012 0 312
F0.2 0. -0.2 F0.2 F0.2
Lo

Fig. 6

Practical No. 7 Method 2 :


studentsfail<- c(799,1174,865,1334,635,918,685,998,784.985.882.1071)

Aim : Perform the data classification using classification algorithm.


#Convert ít to a time series object.
Method1:
> rainfall <- c(800,1375.8,765.1,1434.6,635.4,918.5,685.5,898.6,784.2,985,882.8,2071) studentsfail. timeseries <- ts(studentsfail start =c(799,1),frequency =06)

> #Convert it to a time series object. #Print the timeseries data.


print(studentsfail.timeseries)
> rainfall.timeseries <- ts(rainfall,start =c(1012,1),frequency = 17)
#Give the chart file a name.
> #Print the timeseries data. png(file ="studentsfail.png")
>print(rainfall.timeseries) #Plot a graph of the time series.
Time Series: plot(studentsfail.timeseries)
Start =c(1012, 1)
End = c(1012, 12) #Save the file.
Tech Knouledge
Frequency = 17 plot(studentsfail.timeseries) PUDLC atons

TechKnouledge
PubIcations

You might also like