CCW331_LABMANUAL
CCW331_LABMANUAL
NO
STATISTICAL OPERATIONS
3.
PERFORM DIMENSIONALITY
REDUCTION OPERATION USING
6.. PCA,KPCA & SVD
DESIGN A REPORT
13.
Most professionals use Microsoft Excel to store their data and represent it understandably.
It is similar to Google Sheets. To know all the features of Excel which are helpful and time-
saving. Here are the top 10 unique features of Microsoft Excel. To analyze the data quickly.
Microsoft Excel is used in any type of device like Windows, macOS, Android, and iOS.
PROCEDURE:
1. Inserting a Spreadsheet
By default, you will have 1-3 sheets at the beginning. You may need multiple
spreadsheets for your data. Inserting and deleting new spreadsheets is quite simple in MS
Excel. Click on the “+” button to insert a new sheet. You can also use the shortcut Shift+F11
to insert a new spreadsheet.
2. Sum Of Numbers :
To enter a list of numbers in a column and find the sum. Don’t search for a Calculator
or pen and paper to perform addition. MS Excel has a cool feature to find the sum easily.
Select the cell of which you want to find the sum, and press the shortcut Alt+=. Tadaa! The
sum is displayed automatically.
You can find plenty of unique features and functions in Excel. One of them is
“RANDBETWEEN.” You can use this function to insert random numbers into the sheet. It takes
two arguments. The first one is the least number you are going to insert into your sheet, and the
second one is the largest number. With this feature, you don’t have to waste time guessing the
4. Shortcut Keys
Excel has made it easy to analyze data. Now it is easier to access the data when you
know the shortcut keys. You can perform certain operations without touching the mouse in
a fraction of a second. Some of them are
5.Password.Protection
You may have some private data that you want to keep secured. If you are worried about
unauthorized access, you can use password protection to ensure your safety. After enabling this
feature, no one can open your document without the password.
6.Pivot Tables
Analysing the data in Excel is quite interesting. If you want to create a table that is clear to
understand, you can use the pivot table feature.
7.Auto-Fill
Auto-fill is a simple but useful feature in Excel. With this feature, you can fill the data in
series. You can save a lot of time with this feature.
8.Paste Special:
When we started to use the copy and paste option, we didn’t have to type everything. But
sometimes, you may copy formulae, values, and comments. Sometimes you may not want to copy
all of them. In such situations, you can use Paste Special feature. It is also a time-saving feature.
9.Index-Match:
Index-Match future comes in handy when you have to handle a massive database with vast data. If
you want to find a particular data, you may feel hard. It will seem, like searching for a drop of blood in an
ocean. But Index-Match future will find and get you the desired information instantly. But remember the
index should be unique like passport number or roll number.
10.Rand Function
We can enter random values with the RANDBETWEEN function. But what to do if we
want to enter random fraction values? Then, we can use the RAND function. Using this function,
we can enter values between 1 and 0. It does not have any parameters. Just put the parentheses.
Note that RANDBETWEEN and RAND functions will vary when we change the sheet.
Result:
a) Get the input from user and perform numerical operations (MAX, MIN, AVG, SUM,
SQRT, ROUND)
AIM
To perform numerical operations using Excel such as MAX, MIN, AVG, SUM, SQRT, ROUND.
PROCEDURE:
The SUM function calculates the SUM of a group of numbers in Excel. Firstly,
in Cell B15 type the formula given below
The Excel SQRT function returns the square root of positive number.
Aim:
Import Text File into Excel by drag the text file into Excel.
Procedure:
Export Data When you have data that needs to be transferred to another system,
export it from Excel in a format that can be interpreted by other programs, such as a text
or CSV file.
Import Data
Excel can import data from external data sources including other files, databases, or web pages.
• Some data sources may require special security access, and the connection process can
often be very complex. Enlist the help of your organization’s technical support staff for
assistance. Select From File.
Result:
STATISTICAL OPERATIONS
AIM:
To perform statistical operations like Mean, Median, Mode and Standard deviation, Variance,
Skewness, kurtosis.
PROCEDURE:
Mean, median, and mode: Mean, median, and mode are different measures of center in a
numerical data set. They each try to summarize a dataset with a single number to represent a "typical"
data point from the dataset.
Mean: The "average" number; found by adding all data points and dividing by the number of data points.
Median: The middle number; found by ordering all data points and picking out the one in the
middle (or if there are two middle numbers, taking the mean of those two numbers).
Example: The median of 444, 111, and 777 is 444 because when the numbers are put in order
(1(1left parenthesis, 1, 444, 7)7)7, right parenthesis, the number 444 is in the middle.
Mode: The most frequent number—that is, the number that occurs the highest number of
times.
Variance
According to layman’s words, the variance is a measure of how far a set of data are
dispersed out from their mean or average value. It is denoted as ‘σ2’.
Properties of Variance
• It is always non-negative since each term in the variance sum is squared and therefore
the result is either positive or zero.
• Variance always has squared units. For example, the variance of a set of weights
estimated in kilograms will be given in kg squared. Since the population variance is
squared, we cannot compare it directly with the mean or the data themselves.
Standard Deviation
• It describes the square root of the mean of the squares of all values in a data set and is
also called the root-mean-square deviation.
• The smallest value of the standard deviation is 0 since it cannot be negative.
• When the data values of a group are similar, then the standard deviation will be very
low or close to zero. But when the data values vary with each other, then the standard
variation is high or far from zero.
VAR function in Excel
It is the oldest Excel function to estimate variance based on a sample. The VAR function is
available in all versions of Excel 2000 to 2019.
VAR(number1, [number2], …)
Note. In Excel 2010, the VAR function was replaced with VAR.S that provides improved
accuracy. Although VAR is still available for backward compatibility, it is recommended to use
VAR.S in the current versions of Excel.
It is the modern counterpart of the Excel VAR function. Use the VAR.S function to find sample
variance in Excel 2010 and later.
VAR.S(number1, [number2], …)
The Excel VARA function returns a sample variance based on a set of numbers, text, and
logical values as shown in this table.
VARA(value1, [value2], …)
When working with a numeric set of data you can use any of the above functions to calculate sample
variance in Excel.
As an example, let's find the variance of a sample consisting of 6 items (B2:B7). For this, you can use
one of the below formulas:
=VAR (B2:B7)
=VAR.S(B2:B7)
=VARA (B2:B7)
As shown in the screenshot, all the formulas return the same result (rounded to 2 decimal
places):
Result:
a ) t-Test
AIM:
The t-Test is used to test the null hypothesis that the means of two populations are equal.
Below you can find the study hours of 6 female students and 5 male students.
H0: μ1 - μ2 = 0
H1: μ1 - μ2 ≠ 0
1. First, perform an F-Test to determine if the variances of the two populations are equal. This
is not the case.
5. Click in the Variable 2 Range box and select the range B2:B6.
6. Click in the Hypothesized Mean Difference box and type 0 (H0: μ1 - μ2 = 0).
8. Click OK.
Result:
Z Test in Excel
The Z.TEST function is one such hypothesis test function. It tests the mean of the two
sample data sets when the variance is known and the sample size is large. The sample size
should be >= 30. Otherwise, we need to use T-TEST. To Z.TEST, we need to have two
independent data points that are not related to each other or do not affect each other data
points. We should normally distributed the data.
Syntax
The Z.TEST is the built-in function in Excel. Below is the formula of the Z.TEST function
in Excel.
We can conduct Z.TEST using the “Data Analysis” option in Excel. To compare two
means when the variance is known, we use Z.TEST. We can frame two hypotheses here. One
is the “Null Hypothesis.” Another one is the “Alternative Hypothesis” below is the equation of
both these hypotheses.
The alternative hypothesis (H1) states that the two population means are not equal.
We will use two students’ scores in multiple subjects for this example.
Step 1: First, we need to calculate the variables for these two values using the VAR.P function.
Step 3: For the “Variable 1 Range,” select “Student 1” scores. For the “Variable 2 Range,” select
“Student 2” scores.
Step 4: For “Variable 1 Variance(known),” select “Student 1” variance score, and for
“Variable 2 Variance(known),” select “Student 2” variance score.
Below you can find the salaries of people who have a degree in economics, medicine or
history.
H0: μ1 = μ2 = μ3
H1: at least one of the means is different.
3. Click in the Input Range box and select the range A2:C10.
Result:
Aim:
To handle missing data in excel using some functions such as ISERROR and VLOOKUP
Functions Using NOT, ISNUMBER, MATCH Functions
Procedure
Let’s say, we have got a dataset of some people registered for taking a vaccine, their relevant ID, and
the person present on the day of taking the dose of the vaccine.
You can see that some persons are missing on the day of taking the vaccine and we want to find out
the missing persons. Here we will use ISERROR, VLOOKUP functions to deal with the missing data.
Steps:
• First of all, create a column and apply the following formula to the selected cell.
Formula Breakdown
The VLOOKUP function considers C5 as the lookup_value and $D$5:$D$14 as lookup array,
The ISERROR function returns TRUE as it finds an error or FALSE where it doesn’t find an error.
So, when the LOOKUP function doesn’t find a value and makes an error, the ISERROR function returns
• Then, use the Fill Handle tool to Autofill the formula for the next cells and you will get the output
for the missing data.
• Here, you can also apply Conditional Formatting to highlight the missing data. For this, just select
the column> go to Conditional Formatting> select Highlight Cells Rules> select Equal to> select the
cell (i.e. E6)> choose Fill Color> click OK.
Result:
Standardization and normalization allow you to work with data of different scales more effectively.
Imagine having a dataset that compares a person’s income and height in centimeters. Likely, these
values will be in completely different scales. Because of this, looking at their means or standard
deviations would not be comparable.
Standardizing data is quite simple using built-in operators and functions, such as the MIN() and
MAX() functions.
In our sample dataset, we have values ranging from 4 to 31. By using min-max scaling, all of our
values will range from 0 to 1.
Step 2: Calculate the minimum value in the dataset using the MIN() function
Step 3: Calculate the maximum value in the dataset using the MAX() function
Calculate the maximum value of the dataset
Use the MAX() function to calculate the maximum value of the dataset. In this case, this returns 31.
Step 4: Normalize the first record by subtracting the minimum value from the observation and dividing
by the range of the dataset
Subtract the minimum value from the record and divide by the difference between the maximum
and minimum values
To normalize a single value, subtract that minimum value from the record itself. Then, divide this
number by the range of the data (the maximum value subtracted by the minimum value).
Step 5: Drag the fill handle down to normalize all records in the dataset
Drag the fill handle all the way down to normalize all values in Excel
To normalize the entire dataset, simply drag the fill handle all the way down. Because we’re using
absolute references for the minimum and maximum values of the dataset, we don’t have to worry about
values changing through relative references.
Result:
Thus the normalizing of data in excel was executed successfully.
Exno:6 DATE:
Aim:
Procedure:
Once XLSTAT is activated, select the XLSTAT / Analyzing data / Principal components
analysis command (see below).
The Principal Component Analysis dialog box will appear.
In this example, the data start from the first row, so it is quicker and easier to use columns selection.
This explains why the letters corresponding to the columns are displayed in the selection boxes.
The Data format chosen is Observations/variables because of the format of the input data.
In the Supplementary data tab, we choose the two last rows as supplementary observations,
Acidity and Sweetness as quantitative supplementary variables and Texture as a qualitative
supplementary variable. We also can check the display centroids option to display the centroids
of each category on the observation graph. Here, we will see how to color observation according
to their category.
In the Charts tab, and the Observations sub-tab, we can check the Color by group option and select our
qualitative supplementary variable Texture to color observations according to the category they belong
to.
Here, the supplementary variables Acidity and Sweetness allow us to identify two kind of consumers:
those who prefer products characterized by an acidity and those who prefer products by a sweet taste.
Without this information, we would not be able to explain the differences between those two clusters of
consumers. Products on the right-side of the of the observations graph will be characterized by an acidity
and preferred by the right cluster of judges. Products on the left of the observation graph will be
characterized by a sweet taste and preferred by the left cluster of consumers.
On this graph, we can see that one group of products (P1, P2, P3, P7) is preferred by the judges situated
in the right half of the correlation plot. These consumers like the acidity of these products. The Best 1
prototype seems to be a good product for this kind of consumers expectations. Moreover, this group of
products is characterized by a fluid texture. On the other hand, products P10, P11, and P12 are preferred
by judges in the left half of the correlation plot. This kind of consumers seems to like products with a
sweet taste and a thick texture. Best 2 looks like a good candidate for this kind of consumers.
Result:
Aim:
Procedure 1: (multivariate)
1
Enable the data analysis add-in (if needed). Whether you're studying statistics or doing regression
professionally, Excel is a great tool for running the analysis. Excel has a built-in data analysis add-in called
"Analysis ToolPak." You can check to see if it's active by clicking the Data tab. If you don't see the
Data Analysis option, you will need to enable it:[1]
• Windows:
• Open the File tab (or press Alt+F) and select Options (Windows).
• Click Add-Ins on the left side of the window.
• Select Excel Add-ins next to "manage" and click Go.
• In the new window, check the box next to "Analysis ToolPak", then click OK. This will
enable the built-in data analysis add-in.
2
Enter your data or open your data file. Data must be arranged in immediately adjacent columns and
labels should be in the first row of each column. This is a typical format for databases.
3
Click the Data tab and click Data Analysis . This option is in the "Analysis" section near the far
right of
4
Click Regression and then OK . This will open a new window for inputting the parameters of the
regression
5
Input the dependent (Y) data range. To do so:
6
Input the independent (X) data range. To do so:
• The default confidence level is 95%. If you want to change this value, click the box next to
Confidence Level and modify the adjacent value.
• Under "Output options," select where you want the regression results to output.
• Select the desired options in the "Residuals" category. Graphical residual outputs are created by the
Residual Plots and Line Fit Plots options.
8
Click OK and the analysis will be created. You'll see the following information:
• Regression Statistics includes the correlation values, standard error, and number of observations.
Procedure 2: (Bivariate)
What is Bivariate Data :
Bivariate data is data which have two variable dependencies. The data can be either
Quantitative or
Qualitative. The value of one variable changes accordingly with the value of the second variable. The
Quantitative bivariate data can be represented in the form of a scatter plot, and Qualitative variable
data can be represented in the form of a frequency distribution table. A correlation can exist in
bivariate data, the correlation value ranges from -1 and 1.
For example, Arushi is the class teacher of the tenth (X)th class, she collected data from her students,
how many hours they use to study in a day, and added the marks achieved corresponding to that
student, her task is to analyze this bivariate data in excel, by plotting it in a scatter plot.
Step 1: Access the Insert Tab
Select the data you entered, and go to the Insert Tab. After selecting Insert Tab you have to add a
scatter chart.
Note: Use =CORREL(C2:I2, C3:I3) function, to add a correlation between the variables. Press Enter.
Using CORREL Function
Step 6: Value is Positive
The correlation value is 0.396 i.e. positive, which signifies that as the study hours increase, the
marks of students also increase.
Result:
Aim:
Procedure:
A line graph requires two axes, so your table should contain at least two columns: the time intervals in
the leftmost column and the dependent values in the right column(s).
In this example, we are going to do a single line graph, so our sample data set has the following two
columns:
In most situations, it is sufficient to select just one cell for Excel to pick the whole table
automatically. If you'd like to plot only part of your data, select that part and be sure to include the
column headers in the selection.
With the source data selected, go to the Insert tab > Charts group, click the Insert Line or Area Chart
icon and choose one of the available graph types.
As you hover the mouse pointer over a chart template, Excel will show you a description of that
chart as well as its preview. To inset the chosen chart type in your worksheet, simply click its
template.
In the screenshot below, we are inserting the 2-D Line graph:
To draw a multiple line graph, perform the same steps as for creating a single line graph. However,
your table must contain at least 3 columns of data: time intervals in the left column and observations
(numeric values) in the right columns. Each data series will be plotted individually.
With the source data highlighted, go to the Insert tab, click the Insert Line or Area Chart icon, and then
click 2-D Line or another graph type of your choosing:
A multiple line graph is immediately inserted in your worksheet, and you can now compare the sales
trends for different years to one another.
When creating a multiple line chart, try to limit the number of lines to 3-4 because more lines would
make your graph look cluttered and hard to read.
Change color and appearance of a line
If the default line colors do not look quite attractive to you, here's how you can change them:
Result:
Thus the various plotting functions on the data set was explored successfully.
EXNO : 9 DATE:
AIM:
PROCEDURE:
Power BI is a business analytics service provided by Microsoft that lets you visualize your data and
share insights. It converts data from different sources to build interactive dashboards and Business
Intelligence reports.
As you see above, we have some sales data in an excel sheet. Using this data, Power BI helps you build
different charts and graphs to visualize the data.
Now that you have learned what is Power BI, let us now understand why Power BI is required.
Advantages Of Power BI
1. User-friendly interface: Power BI has an intuitive interface allowing users to visualize and analyze
data easily.
2. Data integration: Power BI allows users to easily integrate data from various sources, including
Excel, SQL Server, and cloud-based sources like Azure and Salesforce.
3. Customizable dashboards: Users can create customized dashboards and reports to display data in
a way that is meaningful to them.
4. Real-time data: Power BI supports real-time data processing, which means users can view up-
todate data in their dashboards and reports.
5. Collaboration: Power BI allows users to share their dashboards and reports with others, making
collaborating on data analysis projects easy.
Disadvantages Of Power BI
1. Limited data processing capabilities: Power BI is not designed for heavy-duty data processing and
may struggle with large datasets or complex queries.
2. Limited customization options: While Power BI offers a range of customization options, users may
find that they are limited in their ability to create truly unique visualizations and reports.
3. Cost: Power BI is not a free tool, and users may need to pay for additional features or storage space.
Salient features of Microsoft Power BI
Microsoft Power BI is a collection of BI tools for creating complex visualizations and shareable reports.
Microsoft Power BI provides powerful analytics to assist users in gaining valuable insights,
transforming data into powerful components capable of providing ideas and breakthroughs to resolve
business problems.
Advanced analytics in Power BI allows business users to track key performance parameters. It helps
the business figure out the signs which lead to additional opportunities and success. Power BI creates
stunning interactive dashboards and is a complex data management solution worthy of being termed. It
uses data mining and BI technologies to identify data trends and provides tools to aid advanced
analytics.
2. Quick Insights
Using powerful algorithms, users can obtain exciting insights from various subsets of the data.
Quick Insights gives people better and faster access to analytics results with a single click.
3. Ask a Question
With this functionality, users can ask questions and get instant responses in the form of visuals such
Power BI reports are a collection of dashboards that are comprehensive and well organized, with
various types of visualizations and formats that are relevant to a specific business issue by presenting
valuable insights. Users may quickly share Power BI reports with other users.
Because of the inclusion of Machine Learning in Power BI, users can now visualize the outcomes
Data Analysis Expression helps extract one or more values from a data set by analyzing the results
generated by applying multiple formulae to the dataset under observation. It works similarly to
Microsoft Excel, except without the numbers and rows. Data Analysis reports are simple to comprehend
and create.
As data is sent or streamed in, Power BI dashboards refresh in real-time, allowing viewers to solve
problems and spot possibilities instantly. Real-time data and images are available in any report or
dashboard. Factory sensors, social media sources, and anything else that may gather or transmit time-
sensitive data are potential sources of streaming data into Power BI dashboards/reports.
Using Power BI will result in a more profound knowledge of data and the discovery of business
insights in real-time. Power BI has many pre-built visualizations and the possibility to customize
9. Lively Dashboards
Provides a single point of reference with a complete visual picture of business-critical information.
10. Pre-existing Ready to use templates
Microsoft and the community have offered hundreds of out-of-the-box graphics, including charts,
Result:
AIM:
To Prepare & Load data Using Power Bi
PROCEDURE:
We have three columns of data, two have number in it and one has text values.
For now we will close out of excel and jump over to Power BI Desktop. Once the program loads we
will click the Home ribbon then select the Get Data button.
After pressing the button a new menu will pop up showing us all the sources where data can be ingested
from. The very first item in the list is Excel. Click the Excel then click the Connect button in the lower
right hand corner.
After clicking Connect a new window will pop up asking for the location of the Excel file. Navigate to
our sample data called Book1.xlsx you can down load the actual file used here: Book1 I saved my
Book1.xlsx file on the desktop of my computer. Select Book1 and then Click Open.
Open Excel File Dialog Box
Next we are presented with the Navigator screen that reveals what is inside the workbook. There are
two sheets. For now we are only interested in the data on Sheet1. Select Sheet1 and then click Load.
This will load our data from Sheet1 into the Power BI Desktop data model.
Now our data has been added to the Power BI Desktop data model. The data and the various columns
we loaded can be found in the tool bar at the far right of PBI called Fields.
Data Transformed into a Bar Chart Well that is it for the first tutorial. Share your thoughts and
comments below. Let me know if you have any suggestions on what you would like to see next.
Result:
Thus the prepare & load data operations were executing successfully using power bi tool
Exno: 11 DATE:
Aim:
Procedure:
• Open the Power BI Desktop application and click on the “File” ribbon.
• Click on the “Open” option and import the data for making Power BI Data Model.
• For this tutorial, sample data from Sales Analysis will be used.
• Click on the “Model View” option from the left side of the Power BI, as shown in the image
below.
The “ProductKey” columns from both the tables are automatically selected as common columns
because it has the same data type and name.
• Similarly, configure the “Region” table by creating a hierarchy named “Regions” with the 3
levels of hierarchy as listed below.
o Group
o Country
o Region
• Now, select the “Country” table and open the advanced properties.
• Here, in the “Data Category” drop-down option select the “Country/Region” option, as shown
in the image below.
• Now, let’s configure the “Reseller” table by creating a hierarchy named “Resellers” with 2
levels, “Business Type” and “Reseller”, as shown in the image below.
• Create another hierarchy named “Geography” with 4 levels of hierarchy listed below:
o Country- Region
o State-Province
o City
o Reseller
• Now, press the “Ctrl” key and select the following columns listed below.
o ProductKey column from the Product table
o SalesTerritoryKey column from Region table
o ResellerKey column from the Reseller table
o EmployeeKey column from the Sales
o ProductKey column from the Sales table
o ResellerKey column from the Sales table
o SalesOrderNumber column from the Sales table
o SalesTerritoryKey column from the Sales table
o EmployeeID from Salesperson table
o EmployeeKey column from the Salespersontable
o UPN column from Salesperson table
o EmployeeKey columnfrom SalespersonRegion table
o SalesTerritoryKey columnfrom SalespersonRegion table
o EmployeeID column from Targets table
• From the “Properties” pane, toggle the “Is Hidden” property to “On“.
• Now, switch to the “Report View” and review the designed Power BI Data Model.
• Create Table
• Create Column
Let’s make some computations using any Power BI reference data that is available. Visit the ‘Data‘ tab
from the left menu as highlighted in the image below. You can find various tools to calculate your data
right here. These will be utilized by Power BI.
Create Table
We must insert the DAX expression given in the following image after clicking “New Table.”
Create Column
To create a calculated column, select “New Column” from the top menu.
• For instance- in the above example shown the DAX expression will total up all of the revenue
from the “Revenue” table with the “Country” filter. Without this phrase, we might have spent
hours figuring out how much money each person brought in from the nation.
• We obtain this outcome from the expression.
Even though Power BI advises you to write an expression, it could be challenging to remember them
all. Use the Quick Measure tool if this is the case. For calculations, you only need to enter the parameters
and function. Depending on your choice, this tool will then automatically generate the expression. When
you need swift calculations for your reports, these measurement tools come in handy.
Here, for instance, we’ve used various visualizations to display the country’s revenue on a map of the
globe. In the same manner, Power BI lets you construct and manage data models.
Benefits of Power BI Data Model
• Power BI Data Modeling makes it easier for other users to navigate through the data.
• Power BI Data Model helps in connecting and building relationships between different data
sources.
• Power BI Data Model optimizes the query and aggregates data in volume.
Result:
Aim:
Procedure:
You can directly upload the data table to the Power BI file. We have already uploaded the table to the
Power BI Desktop file.
Now, we will experiment CALCULATE function to arrive at different sets of results.
For example, assume you need to create a “New Measure,” which gives one particular city total, for
example, “Columbia” city.
4. An expression is the first option. We need to add the “Columbia” city total in this example, so open
the SUM function.
5. The “ColumnName” we need to SUM is the “Sales Value” column, so choose the respective
column.
6. The “ColumnName” we need to SUM is the “Sales Value” column, so choose the respective
column.
7. The table we refer to is the “Sales_Table.” So first, choose the table name.
8. We need to select the “City” column for FilterExpression and give the criteria as
“Columbia.”
9. We are done. Close two brackets and press the “Enter” key to get the new measure.
10. Drag the “Columbia City Sales” to “Fields” to see the new measure.
11. Now, this measure only gives the total sales of the city “Columbia.”
12. You can cross-check the “Columbia” city total in Excel as well.
Like this, we can use the CALCULATE function to arrive at different results.
Result:
Thus the above DAX calculations was executing successfully using power bi tool.
Exno:13 DATE:
Aim:
Procedure:
For this exercise, we’ll be using the “Retail Analysis Sample” prepared by Microsoft and Obvience.
If you don’t know how to get sample data, check out this tutorial: How to Use the Included Sample
Data in Power BI (+Examples).
Once you have your dataset, go to the “Datasets” section in your workspace and click the ‘Create report’
icon.
• Canvas
• Fields pane
• Visualizations pane
Obviously, the canvas is the empty white space at the center where the visuals will be made.
The fields pane contains the different fields of your dataset (think of it as the columns of your dataset).
The visualizations pane is where you can edit and modify your visualizations like the type of
visualization, the format, and specific options for the values of your visual.
But now, you think that a pie chart is a better visual for your data.
To change the type of visual, just head over to the visualizations pane and click the pie chart icon:
For example, feel free to enlarge your visual to the size you want. Simply click on the visual
and drag its corners:
The next part is enlarging the texts — legend, detail labels, and title — of your report.
Here, you can change the format of your visuals. Each type of visual has different sets of options so an
option on another might not be available on another.
To enlarge the text, simply go through the ‘Legend’, ‘Detail labels’, and ‘Title’ and then adjust the text
size:
To save your report, click ‘File’ from the tab list and select ‘Save’:
Result:
PROCEDURE:
Importing Data
The first step in building a Power BI dashboard is to import the dataset that will be used to build
the report. You can connect to a variety of data sources, including Excel worksheets, databases, the
web, and cloud services.
On the homepage of the Power BI service, you can click on the ‘Get Data’ button found at the
bottom right of your window.
A new ‘Get Data’ window will come up, and we should be able to preview some of the major data
sources available for building our dashboard.
• Our file type is an Excel workbook. Next, we will click on the ‘Get’ button in the ‘Files’ section.
Choose the ‘Local File’ option from the list of options on the next page and upload the Excel file.
• Note: If we are importing an Excel workbook, we will have an extra window as shown below. Select
the ‘Import’ option. A ‘Success!’ pop-up will then appear.
• The Superstore dataset upload (downloadable here) should be visible on the workspace page. If not,
reload your browser page.
• You can also make use of other datasets provided by DataCamp.
Notice that from the workspace image, there are two file types of the same name. One is the dataset and
the other is the dashboard.
Click on the Superstore.xlsx dashboard. On the blank canvas that pops up, click on the dataset name
‘Superstore.xlsx’.
Finally, a Reporting canvas will appear, similar to the view on Power BI Desktop.
Power BI report service, just like the desktop version, includes a variety of page formatting options,
including visuals, shapes, and images, that can help your report stand out. One of the most efficient
ways to identify and communicate insights is to use Power BI to create visuals. You can begin creating
your visuals after you have decided on the data that will form the basis of your report, and designed the
layout of this report.
However, before you start working on your data visualization, you must first decide what insights you
want to garner, and then develop and personalize visualizations to display the data in an engaging and
informative manner.
You can work on how to visualize these insights after you have identified them in order to bring value
to your audience. We will create a simple donut chart that shows the ‘Sales across the Shipmode’.
Save the report by clicking on the ‘Reading view’ option on the ribbon at the top.
Positioning of Tiles
You can move the tile around on your dashboard to a convenient position just by holding a left click on
the tile and moving it.
Tile Size
You can increase or decrease your tile size by dragging the little arrow at the bottom right of the tile.
By clicking on the kebab (...) menu on the tile, more options are shown around ‘Tile settings’.
Edit Details
• Click the ‘Pin live’ option. Then select the ‘Go to dashboard’ option.
Note: when pinning at a report level, any changes that happen to the report will also be taken into effect
on the dashboard.
• You should now see your report page pinned to a dashboard.
Result:
Thus the dashboard was created and data analysis was performed successfully.