Power Bi
Power Bi
Aim:
Installation and overview in power BI Desktop.
Procedure:
➢ Users can select a language in which they want to install Power BI and following files are
available for download.
➢ Check the box for creating the desktop shortcut for easy access and then click install.
Aim:
Import the data from different sources such as (Excel, SqlServer, Oracle etc.) and load in
the target system.
Procedure:
Output:
Output:
Output:
Output:
Output:
Output:
10 | V V I T D e p t o f C S E
➢ Visualizations > Format Visual > Visual > Y-axis > Color = #0D6ABF
➢ Visualizations > Format Visual > General > Title > Text > Font > 20
➢ Visualization >Format Visual > General > Effects > Background Color : #E6E6E6
Output:
11 | V V I T D e p t o f C S E
Output:
12 | V V I T D e p t o f C S E
Experiment Number: 03
Aim:
Perform the Extraction Transformation and Loading (ETL) on Data and build Relationship
between Tables.
Procedure:
Output:
13 | V V I T D e p t o f C S E
3. Use First Row as Headers:
➢ Select the First row of the table.
➢ Home > Transform > Use First Row as Headers.
Output:
4. Replace Values:
➢ Select one of the column from table in which we replace values.
➢ Home > Transform > Replace Values
➢ Replace the values by giving Existed value and the new text that need to get replaced in
the Value to Find and Replace with textboxes.
14 | V V I T D e p t o f C S E
Output:
5. Manage Columns:
➢ Home > Manage Columns > Choose Columns > Select the checkboxes of required
columns
➢ Home > Manage Columns > Go to column > Select the req Column checkbox to go that
column
Output:
15 | V V I T D e p t o f C S E
6. Reduce Rows:
➢ Home > Keep Rows > keep top rows > Specify num of rows(Fig1)
➢ Similarly, keep bottom rows, keep range of rows are done
➢ Home > Remove Rows > Remove bottom rows > specify num of rows to be removed
from bottom(Fig2)
➢ Similarly, Remove top rows, remove alternate rows can be done.
Output:
7. Split Column:
16 | V V I T D e p t o f C S E
Output:
➢ Split Column By Delimiter
17 | V V I T D e p t o f C S E
8. Sort:
➢ Home > Sort > Sort Descending (Sort Highest to Lowest)
Output:
9. Group By:
➢ Home > Group By > Specify the column to Group By > Give the new column name and
Operation to get the desired output.
Output:
18 | V V I T D e p t o f C S E
Output:
Output:
19 | V V I T D e p t o f C S E
12. Replacing Null values By Fill down or Fill up:
➢ Select a Column > Right Click > Select Fill option > Select Down
Output:
20 | V V I T D e p t o f C S E
Output:
21 | V V I T D e p t o f C S E
Output:
22 | V V I T D e p t o f C S E
23 | V V I T D e p t o f C S E
24 | V V I T D e p t o f C S E
Experiment Number: 04
Aim:
Create different Advanced visualization in a report.
Procedure:
25 | V V I T D e p t o f C S E
3. Creating Animated Bar Chart:
➢ Visualizations > Build Visual > Animated Bar Chart
➢ Visualizations > Build Visual > Name =”Sub Category”
➢ Visualizations > Build Visual > Value = “Sum of Sales”
➢ Visualizations > Build Visual > Period = “Order Date – Year”
26 | V V I T D e p t o f C S E
3. Creating Animated Bar Chart:
➢ Visualizations > Build Visual > Drill Down Donut Pro
➢ Visualizations > Build Visual > Category = “Category Hierarchy”
➢ Visualizations > Build Visual > Value = “Profit”
➢ Click on center to reverse to drill up and click on one part side to drill down.
Output:
27 | V V I T D e p t o f C S E
28 | V V I T D e p t o f C S E
4. Creating Word Cloud:
➢ Visualizations > Build Visual > WordCloud
➢ Visualizations > Build Visual > Category = “State / Province”
➢ Visualizations > Build Visual > Value = “Sum of Profits”
29 | V V I T D e p t o f C S E
➢ Click on Name of state to view it values.
Output:
30 | V V I T D e p t o f C S E
5. Creating Play Axis:
➢ Visualizations > Build Visual > Play Axis
➢ Visualizations > Build Visual > Field= “Order Date”
Output:
Output:
31 | V V I T D e p t o f C S E
6. Creating Scroller:
➢ Visualizations > Build Visual > Scroller
➢ Visualizations > Build Visual > Category= “City”
➢ Visualizations > Build Visual > Measure = “sum of sales”
➢ Visualizations > Build Visual > Category= “City”
➢ Visualizations > Build Visual > Measure = “Sum of profits”
Output:
32 | V V I T D e p t o f C S E
7. Final Report output:
33 | V V I T D e p t o f C S E
34 | V V I T D e p t o f C S E
Experiment Number: 05
Aim:
Create Reports Using set Interactions between Visuals, Hierarchies and Drilldown, Drill
through into Power BI.
Procedure:
Output:
35 | V V I T D e p t o f C S E
3. Create a Slicer:
➢ Visualizations > Build Visual > Slicer
➢ Visualizations > Build Visual > Field = “Location”
➢ Visualizations >Format Visuals> Title> Font Size =14
➢ Visualizations >Format Visuals> Effects> Background Color = #9B0065
➢ Visualizations >Format Visuals> Effects> Height= 79
➢ Visualizations >Format Visuals> Effects> Width = 582
Output:
Output:
36 | V V I T D e p t o f C S E
5. Create Stacked Bar Chart:
➢ Visualizations >Build Visuals >Fields > Y –Axis =”Category Name Hierarchy”
➢ Visualizations >Build Visuals >Fields > X-Axis =”Sum of Selling Price”
➢ Visualizations >Format Visuals> Y-axis> Values >Color = #5F6B6D
➢ Visualizations >Format Visuals> Y-axis> Values >Title >Color = #374649
➢ Visualizations >Format Visuals> X-axis> Values >Color = #5F6B6D
➢ Visualizations >Format Visuals> X-axis> Values >Title >Color = #374649
➢ Visualizations >Format Visuals> Bar> Show All
➢ Visualizations >Format Visuals> Bar> Accessories> Color = #374649
➢ Visualizations >Format Visuals> Bar>Formal>color = #D2B04C
➢ Visualizations >Format Visuals> Bar> SemiFormal> Color = #00ACFC
➢ Visualizations >Format Visuals> Bar> Casual Wear> Color = #C83D95
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 18
➢ Visualizations >Format Visuals> Title> Text =”Sum of selling Price By Category Name”
➢ Visualizations >Format Visuals> Title> Font Size =24
➢ Visualizations >Format Visuals> Effects> Background Color = #F1792
Output:
37 | V V I T D e p t o f C S E
➢ Visualizations >Format Visuals> X-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> X-axis> Values >Title >Color = #5F6B6D
➢ Visualizations >Format Visuals> Bar> Show All
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”total selling price by month”
➢ Visualizations >Format Visuals> Title> Font Size =20
➢ Visualizations >Format Visuals> Effects> Background Color = #5C2D91
Output:
➢ With the card visualization selected, locate the "Fields" pane on the right-hand side.
➢ Right-click anywhere in the "Fields" pane and select "New Measure" from the
contextmenu. This will open the formula bar at the top.
➢ In the formula bar, enter the following DAX formula to create a measure that
calculatesthe total selling price:
o total selling price = SUMX(Data,Data[Selling price]*Data[Item quantity])
➢ Drag “Total Selling Price” to “Fields”.
➢ Visualization >Format Visual > General > Effects > Background Color : #5B2D71
➢ Visualization > Format Visual >Visual > Category Label > Font Size = 20
Output:
➢ With the card visualization selected, locate the "Fields" pane on the right-hand side.
➢ Right-click anywhere in the "Fields" pane and select "New Measure" from the
38 | V V I T D e p t o f C S E
contextmenu. This will open the formula bar at the top.
➢ Drag “Total Item Count” to “Fields”.
➢ In the formula bar, enter the following formula to create a measure that calculates
the total item count:
o total item count = countx(data,Data[Item quantity])
➢ Visualization >Format Visual > General > Effects > Background Color : #AF916D
➢ Visualization > Format Visual >Visual > Category Label > Font Size = 20
Output:
➢ With the card visualization selected, locate the "Fields" pane on the right-hand side.
➢ Right-click anywhere in the "Fields" pane and select "New Measure" from the
contextmenu. This will open the formula bar at the top.
➢ Drag “profit” to “Fields”.
➢ In the formula bar, enter the following formula to create a measure that calculates
the profit:
o profit = Data[total selling price]-[total cost price]
➢ Visualization >Format Visual > General > Effects > Background Color :#5C0001
➢ Visualization > Format Visual >Visual > Category Label > Font Size = 20
Output:
➢ With the card visualization selected, locate the "Fields" pane on the right-hand side.
➢ Right-click anywhere in the "Fields" pane and select "New Measure" from the
contextmenu. This will open the formula bar at the top.
➢ Drag “profit %” to “Fields”.
➢ In the formula bar, enter the following formula to create a measure that calculates
the profit%:
o %Profit = (Data[profit]/Data[total cost price])*100
➢ Visualization >Format Visual > General > Effects > Background Color : #F8BCBD
39 | V V I T D e p t o f C S E
➢ Visualization > Format Visual >Visual > Category Label > Font Size = 20
Output:
Output:
40 | V V I T D e p t o f C S E
12. Create Donut Chart:
➢ Visualizations >Build Visuals >Fields > Legend=”Location”
➢ Visualizations >Build Visuals >Fields > Values=”Sum of Item Count”
➢ Visualizations >Format Visuals> Legend> slices >Color =”374649”
➢ Visualizations >Format Visuals> Values >Color = #5F6B6D
➢ Visualizations >Format Visuals> Legend> slices>Chennai >Color = #1DD5EE
➢ Visualizations >Format Visuals> Legend> slices>Banglore >Color = #5C2D91
➢ Visualizations >Format Visuals> Legend> slices >Hyderabad>Color = #F18F49
➢ Visualizations >Format Visuals> Bar> Show All
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”Sum of Item amount by Location”
➢ Visualizations >Format Visuals> Title> Font Size =18
➢ Visualizations >Format Visuals> Effects> Background Color = #EF008C
Output:
41 | V V I T D e p t o f C S E
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”Sum of Item quantiy by ordertype name”
➢ Visualizations >Format Visuals> Title> Font Size =16
➢ Visualizations >Format Visuals> Effects> Background Color = #FFD86C
Output:
Output:
42 | V V I T D e p t o f C S E
➢ Place cursor on visual > Click “ “ to drill down
➢ Place cursor on visual > Click “ “ to drill next level of hierarachy
Output:
Initial:
Drill through:
➢ To set up drillthrough, create a target report page that has the visuals you want for the
type of entity that you're going to provide drillthrough for.
➢ Then, on that drillthrough target page, in the Build visual section of the Visualizations
pane, drag the field for which you want to enable drillthrough into the Drill through well.
43 | V V I T D e p t o f C S E
➢ Add drill-through field = “CategoryName”
Output:
44 | V V I T D e p t o f C S E
Output:
45 | V V I T D e p t o f C S E
46 | V V I T D e p t o f C S E
Experiment Number: 06
Aim:
Create Reports using Aggregation functions calculate a value such as count, sum, average,
minimum or maximum for all rows in a column or table as defined by the expression.
Procedure:
47 | V V I T D e p t o f C S E
3. Add card for Displaying Sum Values of Profit and sales :
➢ With the card visualization selected, locate the "Fields" pane on the right-hand side.
➢ Right-click anywhere in the "Fields" pane and select "New Measure" from the contextmenu. This
will open the formula bar at the top.
In the formula bar, enter the following DAX formula to create a measure that calculatesthe total
profit and sales.
TotalProfit = CALCULATE(SUM(ORDERS[PROFIT]))
TotalSales = CALCULATE(sum(Orders[Sales]))
➢ Press Enter to apply the formula.
➢ Visualization >Format Visual > General > Effects > Background Color : #E6E6E6
➢ Visualization > Format Visual >Visual > Category Label > Font Size = 12
Output:
Similarly, calculate the individual years total profit by using the below formulas:
• 2020Profit = CALCULATE(SUM(ORDERS[PROFIT]),year(Orders[Order Date])=2020)
• 2020Profit = CALCULATE(SUM(ORDERS[PROFIT]),year(Orders[Order Date])=2020)
• 2020Profit = CALCULATE(SUM(ORDERS[PROFIT]),year(Orders[Order Date])=2020)
• 2020Profit = CALCULATE(SUM(ORDERS[PROFIT]),year(Orders[Order Date])=2020)
Similarly, calculate the individual years total sales by using the below formulas:
▪ 2020sales = calculate(sum(Orders[Sales]),year(Orders[Order Date])=2020)
▪ 2020sales = calculate(sum(Orders[Sales]),year(Orders[Order Date])=2020)
▪ 2020sales = calculate(sum(Orders[Sales]),year(Orders[Order Date])=2020)
▪ 2020sales = calculate(sum(Orders[Sales]),year(Orders[Order Date])=2020)
OUTPUT:
48 | V V I T D e p t o f C S E
4. Add card for Displaying Average Values of Profit and sales :
➢ With the card visualization selected, locate the "Fields" pane on the right-hand side.
➢ Right-click anywhere in the "Fields" pane and select "New Measure" from the contextmenu. This
will open the formula bar at the top.
➢ In the formula bar, enter the following DAX formula to create a measure that calculatesthe
avearge profit and sales
avgprofit = CALCULATE(AVERAGE(Orders[profit]))
avgsales = CALCULATE(AVERAGE(Orders[Sales]))
➢ Press Enter to apply the formula.
➢ Visualization >Format Visual > General > Effects > Background Color : #B6E6E6
➢ Visualization > Format Visual >Visual > Category Label > Font Size = 12
Output:
Similarly, calculate the individual years average profit by using the below formulas:
• 2020avgProfit = CALCULATE(AVERAGE(ORDERS[PROFIT]),year(Orders[Order Date])=2020)
• 2021avgProfit = CALCULATE(AVERAGE(ORDERS[PROFIT]),year(Orders[Order Date])=2021)
• 2022avgProfit = CALCULATE(AVERAGE(ORDERS[PROFIT]),year(Orders[Order Date])=2022)
• 2023avgProfit = CALCULATE(AVERAGE(ORDERS[PROFIT]),year(Orders[Order Date])=2023)
Similarly, calculate the individual years average sales by using the below formulas:
• 2020avgsales = CALCULATE(AVERAGE(Orders[Sales]),year(Orders[Order Date])=2020)
• 2021avgsales = CALCULATE(AVERAGE(Orders[Sales]),year(Orders[Order Date])=2021)
• 2022avgsales = CALCULATE(AVERAGE(Orders[Sales]),year(Orders[Order Date])=2022)
• 2023avgsales = CALCULATE(AVERAGE(Orders[Sales]),year(Orders[Order Date])=2023)
OUTPUT:
49 | V V I T D e p t o f C S E
5. Add card for Displaying count of items and orders:
➢ With the card visualization selected, locate the "Fields" pane on the right-hand side.
➢ Right-click anywhere in the "Fields" pane and select "New Measure" from the contextmenu. This
will open the formula bar at the top.
➢ In the formula bar, enter the following DAX formula to create a measure that calculatesthe no of
items and orders
totalItems = CALCULATE(sum(orders[quantity]))
TotalOrders = CALCULATE(COUNT(Orders[Order ID]))
Press Enter to apply the formula.
➢ Visualization >Format Visual > General > Effects > Background Color : #E6F2g6
➢ Visualization > Format Visual >Visual > Category Label > Font Size = 12
Similarly, calculate the individual years orders by using the below formulas:
• 2020OrderCount = CALCULATE(count(Orders[Order ID]),year(Orders[Order Date])=2020)
• 2021OrderCount = CALCULATE(count(Orders[Order ID]),year(Orders[Order Date])=2021)
• 2022OrderCount = CALCULATE(count(Orders[Order ID]),year(Orders[Order Date])=2022)
• 2023OrderCount = CALCULATE(count(Orders[Order ID]),year(Orders[Order Date])=2023)
Output:
Similarly, calculate the individual year items by using the below formulas:
• 2020items = calculate(sum(Orders[Quantity]),year(Orders[Order Date])=2020)
• 2021items = calculate(sum(Orders[Quantity]),year(Orders[Order Date])=2021)
• 2022items = calculate(sum(Orders[Quantity]),year(Orders[Order Date])=2022)
• 2023items = calculate(sum(Orders[Quantity]),year(Orders[Order Date])=2023)
Output:
50 | V V I T D e p t o f C S E
7. Add card for Displaying max and min no of orders:
➢ With the card visualization selected, locate the "Fields" pane on the right-hand side.
➢ Right-click anywhere in the "Fields" pane and select "New Measure" from the contextmenu. This
will open the formula bar at the top.
➢ In the formula bar, enter the following DAX formula to create a measure that calculatesthe max
and min no of orders
maxCount = CALCULATE(MAX(Orders[Order ID]))
minCount = CALCULATE(MIN(Orders[Order ID]))
Press Enter to apply the formula.
➢ Visualization >Format Visual > General > Effects > Background Color : #E6F2g6
Visualization > Format Visual >Visual > Category Label > Font Size = 14
OUTPUT:
Similarly, calculate the individual year max orders by using the below formulas
• 2020maxCount = CALCULATE(max(Orders[Order ID]),year(Orders[Order Date])=2020)
• 2021maxCount = CALCULATE(max(Orders[Order ID]),year(Orders[Order Date])=2021)
• 2022maxCount = CALCULATE(max(Orders[Order ID]),year(Orders[Order Date])=2022)
• 2023maxCount = CALCULATE(max(Orders[Order ID]),year(Orders[Order Date])=2023)
OUTPUT:
Similarly, calculate the individual year min orders by using the below formulas:
51 | V V I T D e p t o f C S E
OUTPUT:
52 | V V I T D e p t o f C S E
Output:
53 | V V I T D e p t o f C S E
54
Experiment Number: 07
Aim:
55
3. Create Stacked Column Chart:
56
➢ Visualizations >Format Visuals> Bar> Show All
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”sum of profit by month”
➢ Visualizations >Format Visuals> Title> Font Size =20
➢ Visualizations >Format Visuals> Effects> Background Color = #e6b999
57
6. Create Stacked Column Chart:
58
7. Create Stacked Column Chart:
➢ Visualizations >Build Visuals >Fields > Y –Axis =”sum of profit”
➢ Visualizations >Build Visuals >Fields > X-Axis =”quarter name”
➢ For quartername data field create a new column measure
➢ Orders->NewColumn->and enter the below dax formula:
QuarterName = Orders[Order Date].[Quarter]
➢ Visualizations >Format Visuals> Y-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> Y-axis> Values >Title >Color = #5
➢ Visualizations >Format Visuals> X-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> X-axis> Values >Title >Color = #5F6B6D
➢ Visualizations >Format Visuals> Bar> Show All
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”sum of profit by quarter name”
➢ Visualizations >Format Visuals> Title> Font Size =20
➢ Visualizations >Format Visuals> Effects> Background Color = #6b0010
59
9. Create Stacked Column Chart:
➢ Visualizations >Build Visuals >Fields > Y –Axis =”sum of profit”
➢ Visualizations >Build Visuals >Fields > X-Axis =”week day”
➢ For weekday data field create a new column measure
➢ Orders->NewColumn->and enter the below dax formula:
WeekDay = WEEKDAY(Orders[Order Date].[Date])
➢ Visualizations >Format Visuals> Y-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> Y-axis> Values >Title >Color = #5
➢ Visualizations >Format Visuals> X-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> X-axis> Values >Title >Color = #5F6B6D
➢ Visualizations >Format Visuals> Bar> Show All
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”sum of profit by week day”
➢ Visualizations >Format Visuals> Title> Font Size =20
Visualizations >Format Visuals> Effects> Background Color = #ebf567
60
10. Create Stacked Column Chart:
➢ Visualizations >Build Visuals >Fields > Y –Axis =”sum of profit”
➢ Visualizations >Build Visuals >Fields > X-Axis =”day of week name”
➢ For weekname data field create a new column measure
➢ Orders->NewColumn->and enter the below dax formula:
Day of weekName = FORMAT(Orders[Order Date],"dddd")
➢ Visualizations >Format Visuals> Y-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> Y-axis> Values >Title >Color = #5
➢ Visualizations >Format Visuals> X-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> X-axis> Values >Title >Color = #5F6B6D
➢ Visualizations >Format Visuals> Bar> Show All
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”sum of profit by day of week name”
➢ Visualizations >Format Visuals> Title> Font Size =20
➢ Visualizations >Format Visuals> Effects> Background Color = #a0A078
61
➢ Visualizations >Format Visuals> Title> Font Size =20
➢ Visualizations >Format Visuals> Effects> Background Color = #a0A078
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>previousYear Profit
➢ Orders->NewColumn->and enter the below dax formula:
previousDayProfit = CALCULATE(SUM(Orders[Profit]),PREVIOUSDAY(Orders[Order Date].[Date]))
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>previousMonthProfit
➢ Orders->NewColumn->and enter the below dax formula:
previousMonthProfit = CALCULATE(SUM(Orders[Profit]),PREVIOUSMONTH(Orders[Order Date].[Date]))
62
14. Create table:
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>previousqtrProfit
➢ Orders->NewColumn->and enter the below dax formula:
previousqtrProfit = CALCULATE(SUM(Orders[Profit]),PREVIOUSQUARTER(Orders[Order
Date].[Date]))
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>previousyearprofit
➢ Orders->NewColumn->and enter the below dax formula:
previousyearProfit = CALCULATE(SUM(Orders[Profit]),PREVIOUSYEAR(Orders[Order Date].[Date]))
63
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”sum of profit and previousprofit by year”
➢ Visualizations >Format Visuals> Title> Font Size =20
➢ Visualizations >Format Visuals> Effects> Background Color = #E044A7
64
18. Create Clustered Column Chart:
➢ Visualizations >Build Visuals >Fields > Y –Axis =”sum of profit,nextqtrprofit”
➢ Visualizations >Build Visuals >Fields > X-Axis =”order date”
➢ For nextqtrprofit data field create a new column measure
➢ Orders->NewColumn->and enter the below dax formula:
nextquarterProfit = CALCULATE(SUM(Orders[Profit]),NEXTQUARTER(Orders[Order Date].[Date]))
Visualizations >Format Visuals> Y-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> Y-axis> Values >Title >Color = #5
➢ Visualizations >Format Visuals> X-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> X-axis> Values >Title >Color = #5F6B6D
➢ Visualizations >Format Visuals> Bar> Show All
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”sum of profit and nextqtrprofit by year”
➢ Visualizations >Format Visuals> Title> Font Size =20
Visualizations >Format Visuals> Effects> Background Color = #e1c233
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>nextmonthprofit
➢ Visualizations >Columns>orderDate>profit>nextquarterprofit
➢ Visualizations >Columns>orderDate>profit>nextyearprofit
➢ Orders->NewColumn->and enter the below dax formula:
nextmonthProfit = CALCULATE(SUM(Orders[Profit]),NEXTMONTH(Orders[Order Date].[Date]))
nextquarterProfit = CALCULATE(SUM(Orders[Profit]),NEXTQUARTER(Orders[Order Date].[Date]))
nextyearProfit = CALCULATE(SUM(Orders[Profit]),NEXTYEAR(Orders[Order Date].[Date])
65
20. Create Clustered Column Chart:
➢ Visualizations >Build Visuals >Fields > Y –Axis =”sum of profit,nextyearprofit”
➢ Visualizations >Build Visuals >Fields > X-Axis =”order date”
➢ For nextqtrprofit data field create a new column measure
➢ Orders->NewColumn->and enter the below dax formula:
nextyearProfit = CALCULATE(SUM(Orders[Profit]),NEXTYEAR(Orders[Order Date].[Date]))
Visualizations >Format Visuals> Y-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> Y-axis> Values >Title >Color = #5
➢ Visualizations >Format Visuals> X-axis> Values >Color = #374649
➢ Visualizations >Format Visuals> X-axis> Values >Title >Color = #5F6B6D
➢ Visualizations >Format Visuals> Bar> Show All
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”sum of profit and nextyearprofit by
year,quarter,month and day”
➢ Visualizations >Format Visuals> Title> Font Size =20
Visualizations >Format Visuals> Effects> Background Color = #f5ac4af
66
21. Create table:
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>3daysaheadprofit
➢ Visualizations >Columns>orderDate>profit>3daysbackprofit
➢ Orders->NewColumn->and enter the below dax formula:
3daysaheadprofit = CALCULATE(sum(Orders[Profit]),DATEADD(Orders[Order Date].[Date],3,DAY))
3DaysBackprofit = CALCULATE(sum(Orders[Profit]),DATEADD(Orders[Order Date].[Date],-3,DAY))
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>3monthsaheadprofit
➢ Visualizations >Columns>orderDate>profit>3monthsbackprofit
➢ Orders->NewColumn->and enter the below dax formula:
3monthsaheadprofit = CALCULATE(sum(Orders[Profit]),DATEADD(Orders[Order
Date].[Date],3,MONTH))
3monthsBackprofit = CALCULATE(sum(Orders[Profit]),DATEADD(Orders[Order Date].[Date],-
3,MONTH))
67
➢ Orders->NewColumn->and enter the below dax formula:
3quartersaheadprofit = CALCULATE(sum(Orders[Profit]),DATEADD(Orders[Order
Date].[Date],3,QUARTER))
3quartersBackprofit = CALCULATE(sum(Orders[Profit]),DATEADD(Orders[Order Date].[Date],-
3,QUARTER))
68
➢ Visualizations >Format Visuals> Data Labels > Options> Inside Center
➢ Visualizations >Format Visuals> Data Labels> Values > Font Size = 14
➢ Visualizations >Format Visuals> Title> Text =”sum of profit ,3yearsaheadprofit and
3yearsbackprofit by year.
➢ Visualizations >Format Visuals> Title> Font Size =20
Visualizations >Format Visuals> Effects> Background Color = #f0af87
69
27. Create table:
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>sameperiodlastyearprofit
➢ Orders->NewColumn->and enter the below dax formula:
sameperiodlastyearprofit = CALCULATE(SUM(Orders[Profit]),SAMEPERIODLASTYEAR(Orders[Order
Date].[Date]))
70
Final Output:
71
72
Experiment Number: 08
Aim:
73 | V V I T D e p t o f C
3. Create table:
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>Quantity>mtd item quantity
➢ Click on new measure>and enter the below dax formula:
Mtd item qty = TOTALMTD(SUM(Orders[Quantity]),Orders[Order Date].[Date])
4. Create table:
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>Quantity>qtd item quantity
➢ Click on new measure>and enter the below dax formula:
qtd item qty = TOTALQTD(SUM(Orders[Quantity]),Orders[Order Date].[Date])
5. Create table:
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>Quantity>ytd item quantity
➢ Click on new measure>and enter the below dax formula:
Ytd item qty = TOTALYTD(SUM(Orders[Quantity]),Orders[Order Date].[Date])
73 | V V I T D e p t o f C
6. Create table:
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>Total Mtd Orders
➢ Visualizations >Columns>orderDate>Total qtd Orders
➢ Visualizations >Columns>orderDate>Total ytd Orders
➢ Click on new measure>and enter the below dax formula:
Total Mtd Orders = TOTALMTD(Count(Orders[Order ID]),Orders[Order Date].[date])
Total Qtd Orders = TOTALQTD(Count(Orders[Order ID]),Orders[Order Date].[date])
Total Ytd Orders = TOTALYTD(Count(Orders[Order ID]),Orders[Order Date].[date])
7. Create table:
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>mtdProfit
➢ Click on new measure>and enter the below dax formula:
MTDprofit = CALCULATE(sum(Orders[Profit]),DATESMTD(Orders[Order Date].[Date]))
8. Create table:
➢ Home > Enter data > Create table by giving values to the columns
➢ Visualizations >Columns>orderDate>profit>qtdProfit
➢ Click on new measure>and enter the below dax formula:
QTDprofit = CALCULATE(sum(Orders[Profit]),DATESQTD(Orders[Order Date].[Date]))
|VVI T D e pt o f C SE
3. Create Table:
➢ Create table and place it in the report
➢ In the fields column drag and drop category
➢ Home > Enter data > Create table by giving values to the columns
➢ Click on new measure>and enter the below dax formula:
Total Profit = SUM(Orders[profit])
➢ Visualizations >Columns>Total profit
5. Applying ALL-Filter:
Syntax: ALL(<table>|<column>].<column>[,…]]]])
Description: returns all the rows in a table or all the values in the column,
ignoring any filters that have been applied. This function is useful for clearing
filters and creating calculations or all the rows in a table
➢ Home > Enter data > Create table by giving values to the columns
➢ Click on new measure>and enter the below dax formula:
All profit filter = CALCULATE([Total Profit],ALL(orders))
80
6. Applying ALLAccept:
Syntax: ALLACCEPT(<table>|<column>].<column>[,…]]]])
Description: returns all the rows in a table or all the values in the column,
ignoring any filters that have been applied except the given coulmn. This function
is useful for clearing filters and creating calculations or all the rows in a table
except given column.
➢ Home > Enter data > Create table by giving values to the columns
➢ Click on new measure>and enter the below dax formula:
All profit Except Cat = CALCULATE([Total
Profit],ALLEXCEPT(Orders,Orders[Category]))
➢ Visualizations >Columns>All profit Except cat
➢ Home > Enter data > Create table by giving values to the columns
81
9. Applying Keep-Filter:
Syntax: KEEPFILTERS(<Expression>)
Description: Modifies how filters are applied for evaluating.
➢ Home > Enter data > Create table by giving values to the columns
➢ Click on new measure>and enter the below dax formula:
(KP)Technology profit = calculate([Total Profit],keepfilters(orders[category]="Technology"))
➢ Visualizations >Columns>(KP)Technology Profit
Syntax: RemoveFilter(.<column>[,…]]]])
Description: same as all filter but not returns all the rows in a table or all the
values in the column, ignoring any filters that have been applied. Majorly used for
reducing complexity and increasing performance. This function is useful for
clearing filters and creating calculations or all the rows in a table
➢ Home > Enter data > Create table by giving values to the columns
➢ Click on new measure>and enter the below dax formula:
All Profit RF filter = calculate([total profit],REMOVEFILTERS(Orders[category]))
➢ Visualizations >Columns>All profit RF filter
82
11. Creating a slicer for comparision:
➢ Home>visulazation>build visual>select slicer
➢ Chose religion in the fields
➢ From setting change the slicer settings>
➢ Choose style as tile
comparison:
if region=central
if region=south:
83
if region=East:
if region=West:
84
13. Output:
85
86
Experiment Number: 10
87
➢ Enter the Email or the select the email in the drop down list shown.
➢ A page appears as follows:
88
➢ After successfully publishing the report a dialog-box appears as below:
6. Pin To DashBoard:
➢ We,can also create dashboards for all the important data that is needed to view more
oftenly.
➢ For Example there are 2 pages in the report we have published i.e.profit and sales.
➢ So if we need to view sales page often we can create a dashboard for it.
➢ Open the page and click on the three dots that are visible on the righ side of the page
➢ The page appears as below.
90
➢ We can pin it to new dashboard or an existing dashboard.
➢ Give a suitable dashboard name
➢ After clicking on pin-live the pinned page will be shown as follows.
➢ Similarly publish all the power-bi files that have being done.
7. Final Report:
91
8. Final Output:
All the reports you have published will be shown in workspace as shown below:
92
Regd.No: 20BQ1A05
93
Regd.No: 20BQ1A05
94
Regd.No: 20BQ1A05
95