Home>Blogs>Power BI>Power BI Sales Dashboard from Raw Data: Step by Step
Power BI

Power BI Sales Dashboard from Raw Data: Step by Step

This tutorial builds a sales dashboard in Power BI from raw point of sale exports. The example is Summit Home and Outdoor, a fictional US retailer with twelve stores and an online shop. You combine four monthly CSV files, model the data, write the measures and design one report page.

Sales dashboard in Power BI built from raw data
The finished dashboard: $1,548,957 total sales and a 48.2% margin.

⬇️  Download the Free Practice Files
4 CSV exports, product list, store list and the finished report · .zip · Power BI Desktop

Watch the Video Tutorial

Video Overview

The video first shows the finished report and filters it to the online shop. Then it starts from a blank file: folder connector, clean data types in Power Query, a date table, three relationships, DAX measures, slicers, cards, charts and a product table. It ends with a quick test of the slicers.

The Raw Data

There are four CSV exports, one per month from July to October 2026, with almost eight thousand order lines in total, plus an Excel product list and store list.

Step 1: Get Data and Clean It in Power Query

On the Home tab click Get data, choose Folder, paste the path of the Sales Exports folder and choose Combine and Transform Data. Rename the query to Sales.

Power BI folder connector preview of four CSV files
The folder connector lists the four monthly files.
Combine files dialog in Power BI
Power BI uses the first file as the sample.

Remove the Source.Name column. The order dates are written month first, so right-click Order Date, choose Change Type, Using Locale, then Date and English (United States). Set Sales and Cost to Decimal Number. Add the product list and store list with New Source, and name them Products and Stores. Then Close and Apply.

Change type using locale in Power Query
Using Locale keeps July 1 as July 1 on any computer.

Step 2: Build a Date Table

On the Modeling tab click New table. Use CALENDAR from the first order date to the last one, and add year, month number, month name and month-year columns with ADDCOLUMNS. Sort the month-year column by the year-month number and mark the table as the date table.

Date table in Power BI created with CALENDAR
One row for every day in the data.

Step 3: Create the Relationships

In Model view connect Sales[Order Date] to the date column, Sales[Product ID] to Products and Sales[Store ID] to Stores. All three are many to one with a single filter direction. That shape is a star schema, as described in Microsoft’s star schema guidance.

Creating relationships in Power BI model view
Joining the fact table to the lookup tables.

Step 4: Write the DAX Measures

Create an empty table called _Measures and add these measures to it.

Total Sales = SUM(Sales[Sales])

Total Cost = SUM(Sales[Cost])

Gross Profit = [Total Sales] - [Total Cost]

Margin % = DIVIDE([Gross Profit], [Total Sales])

Orders = DISTINCTCOUNT(Sales[Order ID])

Avg Order Value = DIVIDE([Total Sales], [Orders])

A Product Rank measure uses RANKX with ISINSCOPE to rank products by total sales.

Measures table in Power BI
Keeping every measure in one table.

Step 5: Design the Dashboard Page

Add a month slicer and a region slicer, then a card visual with Total Sales, Gross Profit, Margin %, Orders and Average Order Value.

Card visual with five sales measures
The headline numbers.

Add a clustered column chart of sales and gross profit by month, a bar chart by category and another by region, and a product table sorted by total sales. July is the best month with about $447,000 in sales, Grills and Smokers is the top category and South is the best region.

Column and bar charts in the Power BI sales report
Month, category and region views.
Top products table in Power BI with product rank
The Pellet Smoker Grill comes first.

Clean the Store IDs with Trim

The October file has store IDs with a trailing space. The relationship still matches them, but the space can break a merge in Power Query, so apply Trim to Store ID and Close and Apply again.

Test the Dashboard

Pick Online in the Region slicer and October 2026 in the Month slicer. Every visual changes together, and online sales for October show $42,837.

Filtered Power BI dashboard for online sales
The slicers filter every visual.

Monthly Excel Report or Power BI Dashboard?

TaskManual reportThis Power BI model
New monthCopy and paste the exportDrop the file in the folder and refresh
CleaningRepeated by handRecorded Power Query steps
FilteringRebuild tablesClick a slicer
CalculationsCopied formulasReusable DAX measures

Download the Free Practice Files

The zip holds the raw data and the finished report. If you refresh the finished report, point the queries to the folder where you saved the files.

⬇️  Download the Free Practice Files
4 CSV exports, product list, store list and the finished report · .zip · Power BI Desktop

Want a Ready-Made Dashboard?

See the ready-to-use Sales Dashboard in Power BI from Next Gen Templates. To learn the whole process, join Power BI: Raw Data to Professional Business Dashboards. Code PKEE-PBI20 gives 20% off, valid till December 31, 2026.

Related Tutorials

Frequently Asked Questions

How do I combine several CSV files in Power BI?

Use Get data, choose the Folder connector, paste the folder path and pick Combine and Transform Data. Power Query stacks all the files into one table.

Why should a Power BI model have a date table?

A date table gives one row per day with year and month columns, so months sort correctly and every fact table can be filtered by the same calendar.

How do I stop months sorting alphabetically?

Select the month label column, choose Sort by column and pick a numeric year-month column.

What is a star schema?

One fact table, here Sales, in the middle with lookup tables such as Date, Products and Stores around it, joined one to many.

Why use DIVIDE instead of the slash operator?

DIVIDE returns a blank instead of an error when the denominator is zero.

What happens when next month’s file arrives?

Save the new CSV export in the same folder with the same columns and click Refresh.

By PK, An Excel Expert. Summit Home and Outdoor and all names and numbers are fictional example data for learning.

Conclusion

Power Query combines the monthly files, the star schema keeps the model simple, and a handful of DAX measures drive a sales dashboard in Power BI that refreshes when the next file arrives.

PK
Meet PK, the founder of PK-AnExcelExpert.com! With over 15 years of experience in Data Visualization, Excel Automation, and dashboard creation. PK is a Microsoft Certified Professional who has a passion for all things in Excel. PK loves to explore new and innovative ways to use Excel and is always eager to share his knowledge with others. With an eye for detail and a commitment to excellence, PK has become a go-to expert in the world of Excel. Whether you're looking to create stunning visualizations or streamline your workflow with automation, PK has the skills and expertise to help you succeed. Join the many satisfied clients who have benefited from PK's services and see how he can take your Excel skills to the next level!
https://www.pk-anexcelexpert.com