You are on page 1of 24

Esplanade Education Society’s

NIRANJANA MAJITHIA COLLEGE OF COMMERCE AND SCIENCE

(NAAC Accredited ‘B’ Grade, ISO 9001: 2015 CERTIFIED)

(Affiliated to University of Mumbai)

DEPARTMENT OF INFORMATION TECHNOLOGY

CERTIFICATE

This is to certify that the work entered in this journal is as per syllabus for T.Y.BSc.IT Class
Perscribed by University

Of Mumbai and was done in the IT laboratory of Niranjana Majithia College of Commerce by
Mr/Mrs

______________________________ of TYBSc.IT. bearing Seat No:

Semester-VI during the academic year 2023-2024.

Internal Guide

Coordinator

External Examiner

Date:

College Seal
Practical 1
Aim: Import the legacy data from the different data sources and load in target

Data Source1:- Flat file


Data Source2:- Excel file
Target System:- Power BI Desktop
Import Data

Step 1:- Select Get Data


Step 2:- Select the type of file to be imported to the target System
Step 3:- Select Connect

Step 4:- Select Data Source


Step 5:- Select Load

OUTPUT
Practical 2
Aim: Perform the Extraction,Transformation,and Loading (ETL) process to construct the data
base in the sql server/Power BI

Data Source1:- Excel File


Target System:- Power BI Desktop
Import Data

Step 1:-.Extraction
i. Select Get Data

ii. Select the type of file to be imported to the target System


iii. Select Connect
iv. Select Data Source

v. Click on Transform Data


Step 2:- Transformation (Any 5)

i. Add new calumn


-Select Add Column
-Click custom column
-Enter new column name
-Select columns/attribute and apply formula in custom column formula window

-Insert column, click on Insert button


-click on ok

ii. Add Duplicate column


-Select any one attribute of table.
-Right click on it
-Select Duplicate column
-The duplicate column, Created.

iii.Removed column
-Select any one column/attribute of table
-Right click on it
-Click on Remove.
-The selected column was removed from table

iv. Uppercase Text


-Select one column of table, which may probably contain words, like name department name
etc.
-Right click on it
-Select Transform option
-click on Uppercase
-The all the words of respective column ars converted inte uppercase.

v. Renamed Column
-Select one cloumn of table/data Source
-Right click on it.
-Select Rename.
-Enter new column name.

Step 3:- Load the file

Practical 3
Aim: Perform Data visualization using Power BI Desktop. Design and generate necessary
reports based on the data, warehouse data

1. Select the data set on which analysis is to be done.

2. Click on Report, Blank window of report will appear.


3. Select the desired visualization tool (the type of graph). Eraphy graph will appear in the report
window.

4. Select the required columns from the table from the fields pane.
5. The graph will be generated bosed on available data.
6. Add new page for a new report.

OUTPUT
Note:- Select different column from table and create different graphs for that columns

1.Month name and Profit

2. Sales and country

3. Sales and Month name


4. Country and Profit

Practical 4
Aim: Import the data-warehouse or cube in Microsoft Excel and crate the pivot chart and Pivot
table.
To insert Pivot table execute the following steps.
1. Import the data Microsoft Excel.
2. Select the cell you want to create Pivot Table
3. Select insert -> Pivot Table.

Same for Pivot chart-


step 1: Import Data get
step 2: Select cell in your table
step 3: Insert -> Pivot Chart -> chart ok.

OUTPUT
Practical 5
Aim: What-if Analysis Index

What-if Analysis try out various values for the formulas in the given sheet using Scenario
Manager, Goal seek and Data Tables.

Scenario Manager
It allows to try but different scenarios with different values using formulas or expressions.

Steps For Scenario Manager


1. Create a calculative scenario in the sheet from which the possible outcomes can be
analyzed.
2. click on data -> click on what-if analysis -> click on Scenario Manager
3. click on Add -> Add scenario name -> Add changing cells value -> check mark on prevent

4 Enter the calculative value for each of the changing cells -> click on ok.
5. Similarly create all possibilities required for the analysis.

6. To know all the possibilities analysis. In Scenario Manager -> click on Summary -> click the
preferred way to see the possibilities -> click on ok.

OUTPUT

Practical 6
AIM: Perform the Data classification using a classification algorithm
Description: Data classification consists of using variables with known
values to predict the unknown or future values of other variables. It can
be used in e.g. direct marketing, insurance fraud detection or medical
diagnosis.Data Classification is Predictive.

Code
rainfall <- c(100, 150.2, 120.7, 90.85, 160.95, 200.83, 100.72, 70.63,
65.79,
60.21, 50.26, 105.35)
rainfall.time <- ts(rainfall, start = c(2020, 1), frequency = 12)
print(rainfall.time)
png(file="rainfall")
plot(rainfall.time)
dev.off()
plot(rainfall.time)

Output
Practical 7
AIM: Implementation of Decision tree using R-tool

Description: A decision tree is a decision support tool that uses a tree-


like model of decisions and their possible consequences, including chance
event outcomes, resource costs, and utility. It is
one way to display an algorithm that only contains conditional control
statements The package “party” has a function ctree() which is used to
analyse and create a decision tree.

CODE:
#intinstall.packages(“party”)
library (party)
print (head(readingSkills))
input.data<-readingSkills[c(1:105),]
png(file=”decision_tree.png”)
output.tree<-ctree(nativeSpeaker ~ age+shoeSize +score,data = input.data)
plot(output.tree)
dev.off()
plot(output.tree)
Practical 8
Aim: Perform the Data Clustering using clustering Algorithm

Code
data("USArrests")
dataset<-scale(USArrests)
head(dataset,n=5)
km.res<-kmeans(dataset,4,nstart=25)
print(km.res)
km.res$cluster
head(km.res$cluster,3)
km.res$size
km.res$centers

Output
Practical 9
Aim: Perform the linear Regression of the Data

Code
x<-c(141,161,146,138,186,168,160,170,138,180)
y<-(68,70,36,41,56,65,78,57,53,62)
relation<-lm(y~x)
print(relation)
print(summary(relation))
a<-data.frame(x=179)
result<-predict(relation,a)
print(result)

Output

Practical 10
Akm: Perform logistic regression

Code
input<-mtcars[,c("am","cyl","hp","wt")]
print(head(input))
glm(formula=am~cyl+hp+wt,family=binomial,data=input)

Output

You might also like