Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Power BI Table Show Blank Rows: How to Display Nulls

· 7 min read · Smart Home

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To show blank rows in a Power BI table, you must ensure that the fields used in the visual have data present or that the underlying relationship allows for the display of unmatched rows. By default, Power BI filters out rows where all values are null to optimize performance and visual clarity. To force these to appear, the most effective method is to create a DAX measure that returns a value (such as a zero or a space) for blank results, or to adjust the "Show items with no data" setting on specific fields.

What You'll Need

  • Power BI Desktop installed on your machine.
  • A dataset loaded into your model with at least one table containing null or empty values.
  • Basic familiarity with the Report view and the Fields pane.
  • Optional: Basic knowledge of DAX (Data Analysis Expressions) if you intend to use measures to force row visibility.

Step-by-Step

  1. Create Your Table Visual: Open your Power BI report and navigate to the Report view. From the Visualizations pane, select the Table icon to add a new table to your canvas. Drag the columns you wish to analyze from the Data pane into the Columns bucket of the visual. Note that labels and menu paths may differ slightly depending on your version of Power BI Desktop or regional settings.
  2. Identify the Missing Rows: Observe the table. If you know your source data contains rows with null values but they are not appearing in the visual, Power BI is applying its default auto-filter. This happens because Power BI assumes that a row with no data in any of the selected columns is not useful to the end user.
  3. Enable Show Items With No Data: In the Visualizations pane, look at the Columns area where you have added your fields. Right-click (or click the down arrow) on the specific field that you expect to have blank values. From the context menu, select the option "Show items with no data". This tells Power BI to ignore the default filter for that specific dimension and display every unique value in that column, including the blanks.
  4. Verify Relationship Integrity: If the blanks still do not appear, check your Model view. If your table is on the "Many" side of a one-to-many relationship and you are pulling a field from the "One" side, Power BI may hide rows that have no matching record in the related table. Ensure the relationship is active and that the direction of the cross-filter is appropriate for the data you want to see.
  5. Create a Forced-Value Measure: If the "Show items with no data" toggle does not produce the desired result (which often happens when using complex measures), you can create a DAX measure to fill the void. Go to the Home tab, select "New Measure", and use a formula like Measure Name = IF(ISBLANK([YourExistingMeasure]), 0, [YourExistingMeasure]) or Measure Name = [YourExistingMeasure] + 0. Adding zero to a blank value converts the result from a Null to a 0, which Power BI recognizes as a value, thereby forcing the row to render in the table.
  6. Apply the Measure to the Table: Remove the original raw numeric column from your table visual and replace it with the new measure you just created. The table will now populate every row associated with the dimension, replacing the blanks with zeros.
  7. Format the Zeros as Blanks (Optional): If you want the row to exist but you don't actually want to see a "0", you can use Custom Formatting. Select the measure in the Data pane, go to the Measure tools tab, and in the Format dropdown, select "Custom". Enter a format string like #,#0;-#,#0;"". This tells Power BI to show positive numbers, negative numbers, and to show an empty string for zeros. This achieves the visual look of a blank row while maintaining the technical presence of a value.

Common Mistakes

One of the most frequent errors is applying the "Show items with no data" setting to a measure instead of a column. This setting is only available for columns (dimensions). If you are trying to force a row to appear based on a calculation, you must use the DAX approach mentioned in the steps above.

Another common mistake is ignoring the Filter pane. Users often enable "Show items with no data" but forget that they have a Page-level or Visual-level filter active that explicitly excludes blanks. Check the Filter pane to ensure that no "is not blank" filters are applied to the fields in your table.

Many users also confuse "Empty Strings" with "Nulls". An empty string (a cell that looks empty but contains a text string of length zero) is treated as a value by Power BI and will show up automatically. A Null (a truly empty cell in the database) is what triggers the hiding behavior. If your data is inconsistent, you may see some rows appearing and others disappearing unexpectedly.

Tips

When working with large datasets, be cautious about using the "+ 0" DAX trick. Forcing every single possible combination of dimensions to show a zero can lead to "visual explosion," where a table that should have 100 rows suddenly tries to render 100,000 rows. This can significantly slow down report performance and may lead to the visual crashing or returning an error stating that the result set is too large.

To prevent visual explosion, combine your forced-value measure with a filter. For example, use a filter to only show rows where at least one other related column has data, or use a slicer to limit the time frame. This ensures you see the blanks you care about without rendering every empty permutation in your database.

If you are using a DirectQuery connection, keep in mind that the "Show items with no data" feature may behave differently depending on the source database's ability to handle outer joins. If the performance is poor, consider creating a dedicated "Dimension Table" in your data model that contains all possible values, ensuring a clean one-to-many relationship.

Troubleshooting

If the rows are still not appearing after following the steps, start with the simplest check: restart Power BI Desktop. Occasionally, the visual cache does not update immediately after a relationship change or a DAX modification.

Next, verify your data source. Go to the "Transform Data" (Power Query) editor and check the column for nulls. If the cells say "null" in italics, they are true nulls. If they are just empty white space, they are strings. If they are strings, you may need to use the "Replace Values" feature in Power Query to replace empty strings with actual nulls to make the "Show items with no data" feature work correctly.

Check for conflicting relationships. If your table uses fields from three different tables, and one of those tables has a relationship that filters the others, the blank rows may be filtered out by the most restrictive relationship. Try removing columns one by one from the table visual to identify which field is causing the rows to disappear.

Finally, check the data types. If you are trying to force zeros into a column that is formatted as Text, the DAX + 0 trick will fail. Ensure your measure is returning a numeric data type (Decimal or Whole Number) before applying the additive logic.

Frequently Asked Questions

Why does Power BI hide blank rows by default?

Power BI optimizes for performance and readability. In most business intelligence scenarios, a row with no data provides no insight, so the engine removes it to reduce the amount of data processed and rendered on the screen.

Does "Show items with no data" affect the total sum?

No, this setting only affects the visual representation of the rows. It does not create new data or change the underlying sum of your measures; it simply makes the empty slots visible.

Can I show blank rows in a Matrix visual as well?

Yes, the process is identical for Matrix visuals. You can right-click the row or column headers in the Visualizations pane and select "Show items with no data" to reveal empty intersections.

Will using a DAX measure to show blanks slow down my report?

It can. By forcing a value into every row, you are preventing Power BI from using its internal optimization to skip nulls. On very large tables, this can increase the memory load and slow down the rendering time.

What is the difference between a blank and a zero in Power BI?

A blank (Null) represents the absence of a value, while a zero is a specific numerical value. Power BI treats them differently in calculations; for example, AVERAGE ignores blanks but includes zeros in the calculation, which can change your results.