Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
25 views39 pages

Power BI

The document outlines a comprehensive guide for using Power BI and R programming for data analysis, including installation, data import, extraction, transformation, and visualization processes. It covers practical steps for implementing classification algorithms, K-means clustering, time series analysis, and what-if analysis for data visualization. Additionally, it discusses data modeling and analytics with Pivot Tables in Excel to enhance data analysis capabilities.

Uploaded by

Mahaa Qureshi
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)
25 views39 pages

Power BI

The document outlines a comprehensive guide for using Power BI and R programming for data analysis, including installation, data import, extraction, transformation, and visualization processes. It covers practical steps for implementing classification algorithms, K-means clustering, time series analysis, and what-if analysis for data visualization. Additionally, it discusses data modeling and analytics with Pivot Tables in Excel to enhance data analysis capabilities.

Uploaded by

Mahaa Qureshi
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/ 39

INDEX

S.NO TOPIC DATE SIGNATURE


1 Installation of PowerBI 18/11/2024
2 Import the Legacy Data 25/11/2024
From various sources
A] Excel 09/12/2024
B] Oracle OData
3 Extract Transform Load 16/12/2024
Process in Power BI
4 Data Visualization 06/01/2024
5 Implementation of 13/01/2025
Classification algorithm
using R program
6 K-Means Clustering 20/01/2025
7 A] Prediction using Linear 27/01/2025
Regression
B] Visualize 03/02/2025

8 Data Analysis using Time 10/02/2025


Series
9 What-If Analysis For Data 17/02/2025
Visualization Design And
Generate Necessary
Report

10. Data Modelling Pivot Tab 24/02/2025


PRACTICAL NO : 1

INSTALLATION OF POWER BI

STEP 1 : Select the Power BI

STEP 2 : When you run the installation file , the following screen will appear.

STEP 3 : Click next


STEP 4 : Accept the License Agreement and follow the instructions on the
screen to finish the installation

STEP 5 : Keep the Default location for the installation and in the next dialogue
box tick to create a desktop icon for power bi

Click install button to finish the installation process


Installing the PowerBI

Click Next

Click Finish.
STEP 6: When Power Bi is installed , it launches a Welcome Screen . This Screen is used
to launch different options related to get data , enrich the existing data models. Create
Reports as well as publish and share reports
PRACTICAL NO : 2

IMPORT THE LEGACY DATA FROM EXCEL AND LOAD IM THE TARGET
SYSTEM

A] Excel Workbook

STEP 1: Launch Power BI Desktop

STEP 2 : From the Home Ribbon , select Get Data . Excel is one of the most common
data connections , so you can select it directly from the Get Data Menu.
STEP 3 : In the Open File Dialogue box , select the file

STEP 4: In the Navigation Pane , select the Products Table and the select Edit.
B] Oracle Data Feed

Sample NorthWind OData feed :

Link :http://services.odata.org/V3/Northwind/Northwind.svc/?authuser=0

STEP 1: From the Home Ribbon in Query Editor , select the Get Data

STEP 2 : Browse to the OData Feed data source .

STEP 3: In the OData Feed dialogue box , paste the URL for the Northwind OData Feed.

STEP 4: Select OK.


STEP 5: In the Navigator Pane , select the orders table and then select Edit

.
PRACTICAL NO 3

Perform Extraction, Transformation and Load Process to construct the


Database in PowerBi

STEP 1: Click on ‘Get Data’ and select ‘OData Feed’ and paste the link.

STEP 2: Select the ‘Products’ and ‘Orders’ tables. Then click on ‘Transform Data’. This
opens the query editor for the table and its columns.
Step 3: Select the columns to be displayed. Here we’re selecting all of them in both
tables.

STEP 4: To keep specific columns - Hold Ctrl and click on the columns i.e ProductID,
ProductName, QuantityPerUnit, UnitPrice.

Then right click and select Remove Other Columns. The unselected columns are deleted.
STEP 5: To change the datatype of a column- select a column, click Data Type and select
the data type you want to change it to

The ‘UnitsInStock’ column’s data type is changed to ‘Whole Number’:

STEP 6: The default column names can be renamed by double clicking on column name
and entering the new name.

STEP 7:To add a new column- Select ‘Custom Column’ in the File ribbon. Add a column
name and write the query for the column.
STEP 8: Make a relationship between Order and Product through the ‘Manage
Relationships’ window.
PRACTICAL NO 4
Data Visualization From Extraction , Transformation and
Loading Process
●​ Power BI lets you create a variety of visualizations to gain insights from your data .
You can Build Reports with multiple pages and each page can have multiple
visuals
●​ You can interact with your visualization to help analyse and understand your data.
●​ You use Field’s pane to select the column from which you create the Visuals

STEP 1 : Create Charts


In this chart we are showing units in stock by product and total sales by year
1. Drag unit in stop from the field pane (the field pane is along the right of the screen)
on a blank space on the canvas, a table visual is created
2. Drag product name to the axis box found in the bottom half of the visual pane then
we can select sort by.
3. Drag UnitsInStock from the Fields pane to the canvas to create a table.
4. Drag ProductName to the Axis box in the Visualizations pane.
5. Sort the chart as needed.
B) Line chart:
1. Select the Line Chart icon from the Visualizations pane.
2. Drag the relevant fields (e.g., TotalSalesByYear for Y-axis, Year for X-axis)
B) Map:
1. Select the Map icon from the Visualizations pane.
2. Drag Region or Country to the Location field.
3. Drag relevant data (e.g., OrderID) to Size or Legend fields.
4. Click on the "Save and Apply" option.
PRACTICAL NO :5

Implementation of Classification algorithm in R


Programming.

Consider the annual rainfall details at a place starting from January 2012. We
create an R time series object for a period of 12 months and plot it.

OUTPUT : When we execute the above code , we get the following chart :
PRACTICAL NO:6
K-Means Clustering Using R
PRACTICAL NO:7
(A) Prediction Using Linear Regression
(B) Visualize the Regression Graphically in R Programming
PRACTICAL NO:8
Data Analysis using Time Series Analysis

Time series is a series of data points in which each data point is associated with
a timestamp.A simple example is the price of a stock in the stock market at
different points of time on a given day. Another example is the amount of rainfall
in a region at different months of the year. R language uses many functions to
create, manipulate and plot the time series data.

The data for the time series is stored in an R object called time-series object. It is
also a R data object like a vector or data frame. The time series object is created
by using the ts()function.

Syntax The basic syntax for ts() function in time series analysis is −

timeseries.object.name <- ts(data, start, end, frequency)

Consider the annual rainfall details at a place starting from January 2023. We
create an R Time series object for a period of 12 months and plot it.
OUTPUT
PRACTICAL 9
Apply What-If Analysis For Data Visualization Design And
Generate Necessary Report

A book store has 100 books in storage. You sell a certain % for the highest price of $50
and a certain % for the lower price of $20.
If you sell 60% for the highest price, cell C11 calculates a total profit of 60 * $50 + 40 *
$20 = $3800.

To try different scenarios, such as: selling it for 70% or 80% as the highest price.

STEP 1: On the Data tab, in the Forecast group, click What-If Analysis then click
on Scenario Manager.
STEP 2: Add a scenario by clicking on Add.

Type a name (80% highest or something as such), select the cells % sold for the
highest price and number of books then click on OK.
Enter the corresponding value 0.8 and click on OK again.

Click Ok the show

Similarly add the other scenarios.


Highest Price 70%:
Highest Price: 60%
Highest Price: 50%
PRACTICAL 10
Data Modelling and Analytics with Pivot Table in Excel

Data Model is used for building a model where data from various sources can be
combined by creating relationships among the data sources. A Data Model integrates
the tables, enabling extensive analysis using PivotTables, Power Pivot, and Power View.
A Data Model is created automatically when you import two or more tables
simultaneously from a database. The existing database relationships between those
tables is used to create the

Data Model in Excel.


STEP 1 − Open a new blank Workbook in Excel.
STEP 2 − Click on the DATA tab.
STEP 3 − In the Get External Data group, click on the option From Access. The Select
Data Source dialog box opens.

Step 4 − Select Events.accdb, Events Access Database file.

Step 5 − The Select Table window, displaying all the tables found in the database,
appears.
STEP 6 − Tables in a database are similar to the tables in Excel. Check the ‘Enable
selection of multiple tables’ box, and select all the tables. Then click OK.

STEP 7 − The Import Data window appears. Select the PivotTable Report option. This
option imports the tables into Excel and prepares a PivotTable for analyzing the
imported tables. Notice that the checkbox at the bottom of the window - ‘Add this data
to the Data Model’ is selected and disabled.
STEP 8 − The data is imported, and a PivotTable is created using the imported tables.
Explore Data Using PivotTable
STEP 1 − You know how to add fields to PivotTable and drag fields across areas. Even if
you are not sure of the final report that you want, you can play with the data and choose
the best- suited report.
In PivotTable Fields, click on the arrow beside the table - Medals to expand it to show
the fields in that table. Drag the NOC_CountryRegion field in the Medals table to the
COLUMNS area.

STEP 2− Drag Discipline from the Disciplines table to the ROWS area.

STEP 3 − Filter Discipline to display only five sports: Archery, Diving, Fencing, Figure
Skating, and Speed Skating. This can be done either in PivotTable Fields area, or from the
Row Labels filter in the PivotTable itself.

STEP 4 − In PivotTable Fields, from the Medals table, drag Medal to the VALUES area.
STEP 5 − From the Medals table, select Medal again and drag it into the FILTERS area.
STEP 6 − Click the dropdown list button to the right of the Column labels.
STEP 7 − Select Value Filters and then select Greater Than...
STEP 8 − Click OK.

The Value Filters dialog box for the count of Medals is greater than appears.

STEP 9 -Type 80 in the Right Field.


STEP 10 − Click OK.
The PivotTable displays only those regions, which has more than total 80 medals.

You might also like