A reference table in Power BI is a small, static table that holds lookup values such as product categories, region names, or status labels, and you relate it to your fact tables so slicers and visuals filter consistently. To build one, load or enter the lookup data, mark it as a date table only if it is a calendar, create a one-to-many relationship to the fact table, and hide the redundant key columns from report view. The result is cleaner filtering and fewer duplicated text values in your model.

What You'll Need

  • Power BI Desktop installed (the steps below use the current desktop version; menu labels can differ slightly by version and region).
  • At least one existing table with the column you want to look up, such as a sales table containing a Category or Region column.
  • The list of reference values you want to standardise, ideally in Excel, CSV, or a database table.
  • Permission to edit the data model in the file you are working on.

Step-by-Step

  1. Decide what belongs in the reference table. A reference table should contain one row per unique value and only the columns needed to describe that value. For example, a Product Category table might have CategoryID, CategoryName, and SortOrder. Keep transactional numbers such as quantity or revenue out of it.
  2. Get the data into Power BI. On the Home ribbon, choose Get data and pick your source. For a short list, Enter data opens a blank table where you can type values directly; this is the quickest route for a handful of categories. For a maintained list, use Excel workbook or Text/CSV and select the sheet or file. In the Navigator preview, confirm the columns look correct, then choose Transform Data if you need to clean them or Load to bring them straight in.
  3. Clean the table in Power Query. In the Power Query Editor, set the data types explicitly: text for names, whole number for IDs, and whole number for sort columns. Use Remove Duplicates on the name column if your source list may repeat values. Rename the query to something descriptive, such as DimProductCategory, then choose Close & Apply.
  4. Check the key column in the fact table. Open Data view and confirm the fact table has a column that matches the reference table, for example CategoryID. If the fact table stores the category name as text and the reference table stores an ID, either add a matching ID to the fact table at source or relate on the text column. The data types on both sides of a relationship must match.
  5. Create the relationship. Go to Model view. Drag the key column from the reference table onto the matching column in the fact table. In the Edit relationship dialog, confirm the cardinality is One to many with the reference table on the one side and the fact table on the many side, and that the cross filter direction is Single. Choose OK.
  6. Mark a date table if the reference table is a calendar. If the table contains a continuous date column, select it in Data view, then on the Table tools ribbon choose Mark as date table and pick the date column. This enables time intelligence functions; do not mark a table that has gaps or duplicate dates.
  7. Hide redundant columns. In Model view or Data view, right-click the key column in the reference table and choose Hide in report view. Do the same for any technical columns users should not drag into visuals. Keep the descriptive name column visible so it appears in the field list.
  8. Sort the visible column properly. Select the name column in Data view, then on the Column tools ribbon choose Sort by column and pick your sort order column. This makes slicers list categories in a logical order rather than alphabetically.
  9. Use the reference table in visuals. Build a slicer or chart using the name column from the reference table, not the text column in the fact table. Because the relationship filters in one direction, selections on the reference table flow into the fact table and all related visuals update together.

Common Mistakes

  • Relating on columns with different data types, such as text on one side and whole number on the other. The relationship will not be created or will behave unpredictably.
  • Creating a many-to-many relationship when a proper lookup key exists. This usually produces ambiguous filter results; fix the key instead.
  • Leaving duplicate values in the reference table, which breaks the one side of the relationship.
  • Building slicers from the fact table's text column instead of the reference table, so filtering is inconsistent across pages.
  • Forgetting to hide key columns, which clutters the field list and invites users to build visuals on IDs.
  • Marking a table as a date table when it contains duplicate or missing dates, which causes time intelligence errors.

Tips

  • Name reference tables with a consistent prefix such as Dim, for example DimRegion, so they are easy to find in the model.
  • Add a sort order column to any reference table with categories that have a natural sequence, such as Low, Medium, High.
  • Keep reference tables narrow. Every extra column adds model size and confusion without improving filtering.
  • If the reference list changes often, keep it in a maintained source such as a spreadsheet or database table and refresh rather than retyping values with Enter data.
  • Use the relationship's single cross filter direction unless you have a specific reason to change it; bidirectional filters can create unexpected results and slow the model.

Troubleshooting

If the relationship will not save, check that the key column on the one side contains no blanks or duplicates and that both columns share the same data type. If slicers filter some visuals but not others, confirm every visual uses fields from tables connected through the same relationship path. If totals look wrong after adding a reference table, look for an inactive relationship or a second fact table that is not related to the reference table. If a date table is not recognised, verify the date column has no gaps, no duplicates, and is formatted as a date. If the field list shows the reference table but no rows appear in a visual, check that the relationship is active and that the key values actually match between the two tables.

Frequently Asked Questions

What is the difference between a reference table and a fact table?

A fact table stores transactional rows such as sales or events, while a reference table stores the unique descriptive values those rows point to. Reference tables sit on the one side of a relationship and are used for filtering and labelling.

Can I create a reference table by typing values directly in Power BI?

Yes. Get data then Enter data lets you type a small table manually. It is suitable for short, rarely changing lists; for maintained lists, load from Excel, CSV, or a database instead.

Do I need a relationship if I only use the reference table in a slicer?

Yes. Without a relationship, selecting a value in the slicer will not filter the fact table. The relationship is what carries the filter from the reference table to the related data.

Should every reference table be marked as a date table?

No. Only mark a table as a date table when it is a calendar table with one row per date and no gaps. Marking other reference tables has no benefit and can cause errors.

Why is my reference table column greyed out in the field list?

It has probably been hidden in report view. Hidden columns remain in the model but are removed from the field list to keep reports tidy. Unhide it from Model view if you need it.

Can I relate one reference table to more than one fact table?

Yes. A single reference table can have one-to-many relationships with several fact tables, which is a common way to keep category or region filtering consistent across the whole model.