To create an order table in Power BI, import your order data and then use either a table visual or a matrix visual to display it. The table visual is the simplest way to show order-level rows, while the matrix visual is better when you need to group orders by customer, date, or status. You do not need to write DAX for a basic order table, but you do need your data loaded and a date field marked as a date table if you plan to use time intelligence. The steps below work in Power BI Desktop; the Power BI service has a similar visual pane but fewer data-shaping options.
What You'll Need
- Power BI Desktop installed (the free version from Microsoft is sufficient for building the report).
- An order data source: Excel, CSV, a database, or a Power BI semantic model. At minimum, include columns for order ID, order date, customer, product, quantity, and amount.
- Permission to connect to that source, or a copy of the file on your computer.
- A basic understanding of the Fields pane and the Visualizations pane.
Menu labels can differ slightly by Power BI Desktop version, device, and region. The steps below use the standard English desktop layout.
Step-by-Step
- Open Power BI Desktop and start a new report. On the Home ribbon, select Get data. Choose your source, such as Excel workbook or Text/CSV, then follow the connector prompts to select the file or database and load the order table. If you use a database, enter the server and database name when prompted.
- Check the data in Power Query before loading. In the Power Query Editor, confirm that the order date column is typed as Date, quantity is a whole number, and amount is a decimal number. Use Transform > Data Type to change a column type. Select Close & Apply when finished.
- Mark your date table if you have one. In the Data view or Model view, right-click the date table and choose Mark as date table, then select the date column. This is optional for a simple order table but needed for time-based calculations. If you do not have a separate date table, skip this step.
- Add a table visual. In the Report view, select the Table icon in the Visualizations pane. With the visual selected, drag fields from the Fields pane into the Values well: Order ID, Order Date, Customer, Product, Quantity, and Amount. The table shows one row per order line.
- Rename and format columns. Double-click a column header in the table visual to rename it. Use the Format pane (paintbrush icon) to set column widths, alignment, and number formatting for the Amount column, such as currency with two decimals.
- Sort the order table. Select the column header you want to sort by, such as Order Date, then use the sort icon that appears on the header or the Sort by column option in the visual's context menu. Choose ascending or descending as needed.
- Add filters if you want a focused view. Drag a field such as Order Status or Region into the Filters pane on the visual. Set the filter type and values. This keeps the table limited to the orders you care about without changing the underlying data.
- Switch to a matrix for grouped orders. If you need totals by customer or month, select the Matrix icon instead. Put Customer in Rows, Order Date in Columns (or the date hierarchy), and Amount in Values. The matrix automatically subtotals each group.
- Save and publish. Select File > Save As to save the .pbix file. To share, use the Publish button on the Home ribbon and choose a workspace in the Power BI service. The published report keeps the table and matrix visuals you built.
Common Mistakes
- Loading the wrong table. Order data is often split across order headers and order lines. If you load only one, quantities or amounts may be missing. Check the source and load both if needed, then relate them in Model view.
- Leaving dates as text. A date column typed as Text will sort alphabetically and break date filters. Change the type in Power Query before loading.
- Using a table visual for totals. A table visual does not automatically group and subtotal rows. Use a matrix visual for grouped totals, or add a separate card or table with summarized values.
- Forgetting to set relationships. If you load multiple tables, Power BI may not create relationships automatically. Open Model view and drag keys to connect them, or the table will show unrelated rows.
- Renaming in the wrong place. Renaming a column in the visual changes only the header. To rename the field everywhere, rename it in Power Query or in the Data view.
Tips
- Keep order ID as the first column so users can scan rows quickly.
- Use conditional formatting on the Amount column to highlight large orders. Select the visual, open the Format pane, and look for Cell elements or conditional formatting options.
- If the table is long, turn on the visual's scrollbar or reduce the number of columns rather than shrinking the font.
- For a clean order table, hide technical columns such as internal keys in the Fields pane by right-clicking and choosing Hide in report view.
- Use the matrix visual's Stepped layout option to control how row headers expand and collapse.
Troubleshooting
If the table visual is empty, check that fields are actually placed in the Values well and that no filter is excluding every row. Clear filters from the Filters pane and try again. If the order date sorts incorrectly, confirm the column type is Date, not Text. If amounts show as text or with too many decimals, change the data type in Power Query and set the format in the Format pane.
If a relationship is missing, rows may repeat or totals may be wrong. Open Model view and check the lines between tables. If a column you need is not in the Fields pane, it may be hidden; right-click the table in the Fields pane and choose to show hidden fields, or check that the column was included when you loaded the data.
If publishing fails, sign out of Power BI and sign in again, then check that you have permission to publish to the selected workspace. If the report looks different in the service, confirm the semantic model refreshed and that the visual uses fields available in the published model.
Frequently Asked Questions
What is the difference between a table and a matrix in Power BI?
A table visual shows rows exactly as they are in the data, one row per record. A matrix visual groups rows by the fields you place in Rows and Columns and adds subtotals and grand totals.
Can I create an order table without DAX?
Yes. A basic table or matrix visual needs only fields dragged into the Values well. DAX is required only for calculated columns, measures, or custom aggregations.
Why are my order rows duplicated?
Duplicates usually come from a missing or incorrect relationship between tables, or from loading a table that already contains joined data. Check Model view and confirm each order ID appears once per order line.
How do I sort the order table by date?
Select the Order Date column header in the visual, then use the sort option on the header or in the visual's context menu. Make sure the column is typed as Date, not Text.
Can I filter the order table to a specific customer?
Yes. Drag the Customer field into the Filters pane for that visual and select the customer or customers you want. This filters only the visual, not the underlying data.
Does the order table update automatically?
In Power BI Desktop, select Refresh on the Home ribbon to reload data from the source. In the Power BI service, the semantic model refreshes on the schedule set by the dataset owner, or you can refresh manually if you have permission.