Power BI Practice
Power BI Practice
2. Explore the three main views: Report, Data, and Model views.
2. Navigate to and select the saved Excel file with the Swedish sales data.
3. Check the box for both the 'Sales' and 'Products' tabs then click "Load" to
import them into the Power BI model.
1. In the "Data" view, examine both tables to ensure all columns and data types
are correctly interpreted.
2. Identify the common column ('Product_ID') that will be used to relate the
tables.
• Creating Relationships:
2. Drag the 'Product_ID' field from the 'Sales' table to the 'Product_ID' field in the
'Products' table to create a relationship.
2. Place "Date" on the Axis and "Total Sales" measure on the Values.
1. Choose "Treemap".
2. Drag "Unit_Price" to the X-Axis, "Quantity" to the Y-Axis, and "Total Sales"
to the Size.
1. Find and add a "Heat Map" visual from the Marketplace, if available.
2. Use "City" for Rows, "Product_Category" for Columns, and "Total Sales" for
Values.
1. Open the Power Query Editor to review if any data transformation is needed.
• Creating Calculated Columns with DAX:
1. Add a "Total Cost" column with the formula: Total Cost = [Quantity] *
[Unit_Price].
2. Create a "Profit" column with the formula: Profit = [Sales] - [Total Cost].
2. Develop an "Average Unit Price" measure with the formula: Average Unit
Price = AVERAGE(Sales[Unit_Price]).
2. Compute "YoY Growth" with the formula: YoY Growth = ([Total Sales] -
[Sales LY]) / [Sales LY].
2. Rank cities by sales with "RANKX" using the formula: City Rank by Sales =
RANKX(ALL(Sales[City]), [Total Sales], , DESC).
• Formatting Visualizations:
3. Use "Total Sales" measure for Values and apply a visual filter to show the top
5 products by sales using the "Top N" filter option.
3. Use "Total Sales" and "Total Quantity Sold" measures for Values, assigning
sales to column values and quantity to line values.
The session aims to build a solid foundation while challenging to explore the depth of Power
BI's capabilities.
Thank You!