Power BI Report on Sales Dataset
Open Dataset Sales Dataset
✅ Load Data
-
🔧 Transformations (Power Query)
-
💡 M Query (custom column)
-
📊 DAX (measure)
-
📘 Research Questions + Power BI Report Design
✅ Load Data
🔧 Transformations (Power Query)
💡 M Query (custom column)
📊 DAX (measure)
📘 Research Questions + Power BI Report Design
✅ 1. Load Data into Power BI
-
Open Power BI Desktop
-
Click on Home > Get Data > Excel (or CSV)
-
Browse and load your sales dataset file
-
In the Navigator pane:
-
Select the correct sheet
-
Click “Transform Data” to open Power Query Editor
Open Power BI Desktop
Click on Home > Get Data > Excel (or CSV)
Browse and load your sales dataset file
In the Navigator pane:
-
Select the correct sheet
-
Click “Transform Data” to open Power Query Editor
🔧 2. Transformation Steps in Power Query (Power BI)
Rename your query as sales
(if needed).
🛠️ Step 1: Ensure Correct Column Names
Columns should be:
-
OrderID
-
Product
-
Quantity
-
UnitPrice
-
Discount (%)
🛠️ Step 2: Set Data Types
Assign proper data types:
-
OrderID
→ Text or Whole Number -
Product
→ Text -
Quantity
→ Whole Number -
UnitPrice
→ Decimal Number -
Discount (%)
→ Percentage or Decimal Number
💡 3. M Query: Add a New Column in Power Query
Let’s add a Net Sales column (after discount):
➕ New Column: NetSales
= Table.AddColumn(sales, "NetSales", each [Quantity] * [UnitPrice] * (1 - [#"Discount (%)"]))
= Table.AddColumn(sales, "NetSales", each [Quantity] * [UnitPrice] * (1 - [#"Discount (%)"]))
Steps:
-
Go to Add Column > Custom Column
-
Name it:
NetSales
-
Use formula:
[Quantity] * [UnitPrice] * (1 - [#"Discount (%)"])
Click OK → Review result → Click Close & Apply
4. DAX Measure (One Example)
After loading data back into Power BI:
➕ Measure: Total Revenue
Total Revenue = SUM(sales[NetSales])
Total Revenue = SUM(sales[NetSales])
Use this in a card visual or for aggregated analysis.
📘 5. Research Questions + Power BI Report Design
Q1: What is the total revenue generated from all products?
Steps:
-
Use
Total Revenue
measure -
Create a Card Visual
-
Add the measure to show overall revenue
🔍 Q2: Which products generated the highest revenue?
Steps:
-
Create a Bar/Column chart
-
Axis:
Product
-
Value:
SUM of NetSales
-
Sort descending
-
Apply Top N filter if needed
🔍 Q3: What is the average discount given per product?
Steps:
-
Create a Table visual
-
Add:
-
Product
-
Average of Discount (%)
-
Or create a DAX measure:
Average Discount = AVERAGE(sales[Discount (%)])
🔍 Q4: Which orders had the maximum quantity sold?
Steps:
-
Use a Table or Bar chart
-
Add:
-
OrderID
,Quantity
-
-
Sort by
Quantity
descending
🔍 Q5: Revenue breakdown by Quantity sold ranges
Steps:
-
Create a new column in Power Query:
if [Quantity] <= 5 then "Low" else if [Quantity] <= 10 then "Medium" else "High"
-
Use a Pie Chart or Stacked Bar Chart:
-
Axis:
Quantity Group
-
Value:
NetSales
-
Optional Visuals:
-
Line Chart: Revenue over time (if Date column is added later)
-
Matrix/Table: Order-wise and Product-wise breakdown
-
Treemap: Product revenue share
Line Chart: Revenue over time (if Date column is added later)
Matrix/Table: Order-wise and Product-wise breakdown
Treemap: Product revenue share
0 टिप्पण्या
कृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏