How to Remove Blanks in Power BI

Cody Schneider8 min read

Seeing blank values in your Power BI visuals can be frustrating, making your reports look unfinished and potentially misleading your audience. Fortunately, getting rid of them is a common task with several straightforward solutions. This guide will walk you through the three most effective methods to remove blanks, whether you want to hide them in a specific chart, clean them from your dataset permanently, or handle them directly within your calculations.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Why Do Blanks Appear in Power BI?

Before we jump into the solutions, it helps to understand why you might be seeing blanks in the first place. They typically pop up for a few main reasons:

  • Missing Source Data: The most common reason. The original data in your spreadsheet, database, or other source simply has empty cells or null values.
  • Data Model Relationship Issues: If you have two tables in a relationship (e.g., Sales and Products) and an item in one table doesn't have a matching entry in the other, Power BI will show a blank. For example, a product listed in your Products table that has never had a sale will show a blank for its total sales amount.
  • DAX Measure Calculations: Your own measures can produce blanks. For example, a measure that calculates Sales / Clicks will return a blank for any row where Clicks is zero to avoid a "divide by zero" error.

Understanding the source of the blank is helpful for choosing the most effective removal method.

Method 1: Using the Filter Pane (The Quickest Fix)

The Filter Pane is the simplest way to hide blanks from a specific visual without altering your underlying data model. This is perfect for quick, on-the-fly adjustments to a chart or table.

Let’s say you have a bar chart showing sales revenue by product, but some products have no sales for the selected period and are showing up as blanks. Here's how to hide them:

Step 1: Select Your Visual Click on the chart or table you want to modify to make it active. This will bring up its associated fields and filters in the "Visualizations" and "Filter" panes.

Step 2: Add the Field to the Filter Pane In the Visualizations pane, find the data field that is generating the blank values. This would be your sales revenue measure. Drag this field into the "Filters on this visual" section in the Filter pane.

Step 3: Set the Filter Type Once the field is in the Filter pane, you'll see some filtering options. Click on "Filter type" and choose "Advanced filtering."

Step 4: Configure the "Is Not Blank" Rule In the "Advanced filtering" options:

  • In the "Show items when the value:" dropdown, select is not blank.

Step 5: Apply the Filter Click the "Apply filter" button. And that’s it! Power BI will immediately hide all the rows in your visual where the sales revenue measure was blank, giving you a much cleaner chart focused only on the products that actually generated sales.

When to use this method: Use the Filter Pane when you need a quick fix for one or two visuals and don't want to affect the rest of your report or the raw data itself.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Method 2: Using the Power Query Editor (For Permanent Data Cleaning)

If your blanks are coming from messy source data and you want to clean them permanently before they ever reach your report, the Power Query Editor is your best friend. Changes made here affect the entire dataset for your entire report. This is a best practice for building clean, reliable data models.

Imagine your source data is an Excel sheet with entire rows that are completely blank, or specific columns have sporadic empty cells that you want gone.

Remove Entire Blank Rows

This is useful when your dataset has separator rows or just accidental empty entries.

Step 1: Open the Power Query Editor From the main Power BI Desktop window, go to the "Home" tab and click "Transform data." This will launch the Power Query Editor.

Step 2: Remove Blank Rows With your table selected, go to the "Home" tab in Power Query and find the "Remove Rows" button. Click on it, and select "Remove Blank Rows" from the dropdown menu. Power Query will automatically remove any row where every single cell is null or empty.

Filter Blanks Out of a Specific Column

Sometimes you don't want to delete the whole row, just the rows that are blank in a crucial column (like an Order ID or Customer Email).

Step 1: Select Your Column In the Power Query Editor, find the column you want to clean up.

Step 2: Use the Column Filter Click the dropdown arrow on the column header. In the filter list that appears, simply uncheck the boxes next to (null) and (blank). You can also explicitly click "Remove Empty." Click "OK." Power Query will remove all rows containing a blank or null value in that specific column.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Replace Blanks with a Different Value

Often, a better approach than removing rows is to replace blanks with a meaningful value. For numerical data, this is often a zero (0), and for text data, it could be "N/A" or "Not Specified." This keeps your data rows intact but fixes the analytical issue.

Step 1: Select the Column and Use "Replace Values" Right-click on the column header containing the blanks and select "Replace Values."

Step 2: Configure the Replacement A dialog box will appear. To replace nulls:

  • In the "Value To Find" box, type null.
  • In the "Replace With" box, type 0 (or your desired value).
  • Click "OK."

Then, repeat the process for any empty text strings if they exist by leaving "Value To Find" blank and putting your replacement value in "Replace With."

When to use this method: Use Power Query when your source data is consistently messy. It's the most robust way to build a reliable and clean foundation for your reports, ensuring you and your team don't have to deal with the same data quality issues over and over.

Method 3: Writing DAX Measures to Handle Blanks

Sometimes, your source data is perfectly clean, but your calculations still produce blanks. This is common when you’re measuring metrics across different categories. For instance, a matrix showing Product Sales by Month will have blanks for a new product in the months before it was launched.

Instead of hiding these blanks, you might want to show them as zero. This is where basic DAX comes in.

The "+ 0" Trick (The Simplest DAX Fix)

Let's say you have a basic measure for total sales:

Total Sales = SUM('Sales'[SalesAmount])

When this measure is evaluated for a month with no sales, it returns a blank. The fastest way to convert that blank into a zero is to simply add zero to your measure. In DAX, BLANK() + 0 returns 0.

Your new measure would look like this:

Total Sales = SUM('Sales'[SalesAmount]) + 0

Now, any item in your visual that previously showed a blank for this measure will show a 0 instead. This makes tables and matrices look much neater and more complete.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Using IF with ISBLANK

A slightly more descriptive, but longform, way to achieve the same result is by using the IF and ISBLANK functions. This logic clearly states your intention: "If the result of my formula is blank, then show 0, otherwise show the result."

Let’s write the Total Sales measure using this pattern:

Total Sales = 
IF(
    ISBLANK(SUM('Sales'[SalesAmount])),
    0,
    SUM('Sales'[SalesAmount])
)

This does the exact same thing as the "+ 0" trick but can be easier for team members to read and understand down the line.

The COALESCE Function (The Modern, Robust Approach)

The COALESCE function is designed for precisely this scenario. It evaluates a list of arguments in order and returns the first one that is not blank. It's an awesome, clean way to set a default value for your calculations.

Here's how to use it for our sales measure:

Total Sales = COALESCE(SUM('Sales'[SalesAmount]), 0)

This formula tells Power BI: "Try to calculate the SUM of SalesAmount. If that result is blank, use 0 instead." It is highly readable, efficient, and is now considered the preferred DAX pattern for replacing blanks in measures.

When to use this method: Use DAX when you want to control the output of your calculations without filtering or removing the underlying data. It's the best way to handle situations where a blank is a valid calculation result but you'd prefer to display it as a zero for clarity.

Final Thoughts

Handling blanks in Power BI is a fundamental skill that significantly improves the quality and professionalism of your reports. By mastering the Filter Pane for visual-level tweaks, Power Query for robust data pipeline cleaning, and DAX for precise calculation control, you can ensure your dashboards are always clear, accurate, and easy to interpret.

While manual fixes in tools like Power BI are powerful, the process of hunting down blanks, cleaning data, and writing formulas still takes time - time that could be spent analyzing trends and making decisions. To speed things up, we built Graphed to be your AI data analyst. Instead of clicking through menus or checking DAX syntax, you just connect your data sources (like Google Ads, Shopify, and Salesforce) once and then ask questions in plain English. Graphed automatically handles the data wrangling and builds clean, real-time dashboards for you, so you can go from data to insight in seconds, not hours.

Related Articles