To do data analysis in Power BI, you connect to your data, clean and shape it in Power Query, build a data model with relationships, create DAX measures, and then design interactive visuals and reports. The whole workflow runs inside Power BI Desktop, which is free to download from Microsoft. You do not need a paid license to build and explore reports locally; publishing and sharing them with others requires a Power BI account and, depending on your organisation, a capacity or per-user license. The steps below assume you are working in Power BI Desktop on Windows, because the desktop app is not available for Mac. Labels in menus can differ slightly by version and region, so if you cannot see an exact option, look for the closest match.
What You'll Need
- A Windows PC with Power BI Desktop installed from Microsoft's official download page (avoid third-party installers).
- Your source data: an Excel or CSV file, a database, a SharePoint list, or a cloud service you have credentials for.
- A Power BI account (work or school account) if you plan to publish reports to the Power BI service.
- A basic understanding of your data: what each column means, which column uniquely identifies a row, and what questions you want the report to answer.
- Optional: a gateway or dataset connection if your data lives on-premises and needs scheduled refresh.
Step-by-Step
- Open Power BI Desktop and start with Get Data. On the Home ribbon, click Get data and choose your source (for example Excel workbook, Text/CSV, SQL Server, or a web source). Browse to the file or enter the connection details, then click Load or Transform Data. Choose Transform Data if you already know the table needs cleaning.
- Clean and shape the data in Power Query Editor. In the Power Query window, use the ribbon to remove unnecessary columns, set correct data types (dates as Date, numbers as Decimal or Whole Number, IDs as Text), rename columns to friendly names, and filter out blank or test rows. Use Remove Rows > Remove Blank Rows and Use First Row as Headers where needed. Every change is recorded as a step on the right; you can delete or reorder steps. Click Close & Apply when done.
- Check the data model. Switch to Model view (the table-relationship icon on the left). Power BI may auto-detect relationships; verify them. If two tables share a key, drag one key onto the other to create a relationship. Set the cardinality correctly (usually many-to-one) and make sure the lookup table has unique values in its key column. A star schema, with one fact table and several dimension tables, performs best.
- Create DAX measures for your key metrics. In Report view, right-click a table and choose New measure. Write expressions such as
Total Sales = SUM(Sales[Amount])orProfit Margin = DIVIDE([Total Profit], [Total Sales]). Use DIVIDE rather than the slash operator to avoid divide-by-zero errors. Measures recalculate with filters, so they are more flexible than calculated columns for most analysis. - Build your first visual. From the Visualizations pane, pick a chart type (bar, line, card, matrix). Drag fields into the Axis and Values wells. For a KPI card, drop a measure into the Values well. Resize and position visuals on the canvas; use Format to set titles, colours, and data labels.
- Add slicers for interactivity. Select the Slicer visual and drag a field such as Date, Region, or Product Category into it. Choose a style (list, dropdown, between for dates). Slicers filter every visual on the page that uses the same field, which lets viewers explore the data themselves.
- Create additional report pages. Right-click a page tab to duplicate or add a new page. Keep each page focused on one theme (overview, trends, detail). Use Drill through if you want a detail page that opens filtered to a selected item.
- Validate the numbers. Cross-check a few totals against your source file. A quick way is to build a table visual with the raw rows and compare sums. If a measure looks wrong, check filter context and relationships; a missing relationship often causes totals to repeat across rows.
- Save and publish. Save the .pbix file locally, then click Publish on the Home ribbon and choose a workspace. In the Power BI service, you can set up scheduled refresh for cloud sources, or configure a gateway for on-premises data. Share the report or build a dashboard by pinning visuals.
- Iterate. Collect feedback, then return to Power BI Desktop, adjust measures or visuals, and republish. The service keeps version history, so you can compare changes.
Common Mistakes
- Leaving columns with the wrong data type, which breaks date hierarchies and sorting.
- Creating calculated columns where a measure would be more efficient and flexible.
- Building relationships on columns that are not unique, causing ambiguous or inflated totals.
- Using many-to-many relationships without understanding the filter direction, which produces unexpected results.
- Loading entire tables when only a subset is needed, slowing refresh and bloating the file.
- Hard-coding values in DAX instead of referencing tables and columns, which breaks when data changes.
- Forgetting to validate totals against the source, so errors reach stakeholders.
Tips
- Name measures clearly and group them in a dedicated measures table for easier management.
- Use the Performance Analyzer (View ribbon) to see which visuals are slow and optimise them.
- Prefer star schemas: keep fact tables narrow and push descriptive attributes into dimension tables.
- Use bookmarks and buttons to create guided navigation without complex custom visuals.
- Document your measures with comments in the DAX editor so others can maintain the report.
- Test the report in the Power BI service as well as Desktop, because rendering and refresh behaviour can differ.
Troubleshooting
If a visual shows blank or repeated totals, check that the relationship between the tables exists and that the key columns have matching data types. If a date field will not build a hierarchy, set its type to Date and mark the table as a date table. If refresh fails in the service, confirm credentials under dataset settings and check whether a gateway is required for on-premises sources. If a measure returns an error, read the message in the formula bar; common causes are missing table references or circular dependencies. If publishing is blocked, verify your account has permission to the workspace. When numbers differ from the source, filter out blank rows and confirm no duplicate keys exist in lookup tables. If performance is slow, reduce the number of visuals per page and remove unused columns in Power Query.
Frequently Asked Questions
Do I need a paid license to use Power BI?
Power BI Desktop is free. Publishing and sharing reports requires a Power BI account, and some sharing scenarios need a per-user or capacity license; check Microsoft's licensing page for current options.
Can I use Power BI on a Mac?
Power BI Desktop is Windows-only. Mac users can access the Power BI service in a browser, but building reports locally requires a Windows environment.
What is the difference between a calculated column and a measure?
A calculated column is computed row by row and stored in the model. A measure is computed at query time based on filter context, so it responds dynamically to slicers and visuals.
How often can data refresh?
Refresh frequency depends on your license and source. Scheduled refresh is configured in the Power BI service; on-premises sources need a gateway. Check the dataset settings for the allowed schedule.
Can I connect to multiple data sources in one report?
Yes. Use Get Data repeatedly to add sources, then model relationships between them in Model view.
Why does my total not match the sum of visible rows?
This usually indicates a relationship or filter-context issue, or duplicate keys in a lookup table. Check the model and use a table visual to inspect the underlying rows.