How to Add Two Columns in Power BI DAX

Cody Schneider9 min read

Adding two columns together in Power BI is one of the first and most common tasks you'll encounter, whether you're calculating total sales or creating a full name field. With DAX (Data Analysis Expressions), you can do this and much more. This guide will walk you through the various ways to add columns using DAX, explain the core concepts, and show you some common pitfalls to avoid.

Why Add Columns in Power BI?

Before jumping into the formulas, it's helpful to understand why you'd want to create a new column from existing ones. Your raw data is rarely in the perfect format for analysis. Often, you need to derive new information to get the insights you're after.

Here are a few common scenarios:

  • Calculating Totals: Adding a product price and a shipping fee to get the total cost for each order.
  • Combining Text: Merging 'First Name' and 'Last Name' columns to create a single 'Full Name' column for easier labeling in charts.
  • Figuring Out Metrics: Calculating a profit column by subtracting a 'Cost' column from a 'Revenue' column.
  • Creating Categories: Combining product category and sub-category columns to create a more specific product descriptor, like "Accessories - Headphones".

In all these cases, you're not changing your source data, you're simply adding a new, more useful layer of information to your data model inside Power BI.

Method 1: The Simple Way - Adding Two Numeric Columns

The most straightforward task is adding two columns that contain numbers. For this, we'll create a calculated column. A calculated column uses a DAX formula to perform a calculation on each row of your table and stores the result as a new column.

Let's say you have an 'Orders' table with a 'ProductCost' column and a 'ShippingCost' column. You want to create a 'TotalCost' column. Here's how you do it, step-by-step.

Step-by-Step Guide to Adding Numeric Columns

Step 1: Go to the Data View

Open your Power BI file. On the left side of the screen, you’ll see three icons: Report, Data, and Model. Click the Data view icon (it looks like a small table) to see your data tables.

Step 2: Select Your Table

On the right-hand side, in the 'Fields' pane, find and select the table where you want to add the new column. In our example, we would click on the 'Orders' table.

Step 3: Click 'New Column'

With your table selected, a 'Table tools' tab appears in the top ribbon. Click on New Column.

This will bring up the DAX formula bar just below the ribbon, where you can type your expression.

<div style="background-color: #f3f3f3, border: 1px solid #ddd, padding: 15px, margin: 20px 0, border-radius: 5px,"> ### A Quick Note on DAX Syntax

DAX formulas reference tables and columns using a specific syntax: TableName[ColumnName]. You don't need to specify the row because a calculated column automatically performs the operation for every single row in the table.

</div>

Step 4: Write the DAX Formula

In the formula bar, you'll first name your new column, followed by an equals sign, and then the expression. Power BI’s formula editor is helpful and will suggest table and column names as you type.

To add 'ProductCost' and 'ShippingCost', you would type the following:

TotalCost = Orders[ProductCost] + Orders[ShippingCost]

Hit 'Enter' to confirm the formula.

Step 5: Check Your New Column

That's it! Power BI will process the calculation for every row in your 'Orders' table, and a new 'TotalCost' column will appear. You can now use this new column in any of your visuals, just like any other column in your data model.

Method 2: Beyond Numbers - Combining Text Columns

Adding (or more accurately, concatenating) text columns is just as common. A classic example is combining separate 'FirstName' and 'LastName' columns into a single 'FullName' column. The process starts the same way: create a new calculated column from the ribbon.

The main difference is the DAX operator you’ll use. Instead of the '+' sign, you will use the ampersand ('&').

Step-by-Step Guide to Combining Text Columns

Let's assume you have a 'Customers' table with 'FirstName' and 'LastName' columns.

  1. Navigate to the Data view and select your 'Customers' table.
  2. Click New Column in the 'Table tools' ribbon.
  3. In the formula bar, type the following DAX expression:

FullName = Customers[FirstName] & " " & Customers[LastName]

Let's break that down:

  • FullName =: This names our new column.
  • Customers[FirstName]: This calls the first text value.
  • &: The ampersand joins the values together.
  • " ": This is a space enclosed in double quotes. This is crucial! Without it, names like "John Smith" would appear as "JohnSmith".
  • &: Another ampersand to join the space with the next value.
  • Customers[LastName]: This calls the second text value.

Press 'Enter', and your 'FullName' column is ready. You can use this technique to join any text-based columns or even mix text with numbers (though DAX will convert the numbers to text first).

Alternative: The CONCATENATE Function

DAX often provides multiple ways to do the same thing. For combining text, you can also use the 'CONCATENATE' function. It works like this:

FullName = CONCATENATE(Customers[FirstName], " ") & Customers[LastName]

The 'CONCATENATE' function only accepts two arguments, so it can feel a bit fussy if you need to combine more than two things. In the example above, we had to use an ampersand anyway to add the last name. For this reason, many people find the ampersand '&' operator simpler and more flexible for combining multiple strings of text.

Calculated Column vs. Measure: What's the Difference?

When you start writing DAX, one of the most important concepts to grasp is the difference between a calculated column and a measure. What we've created so far are calculated columns.

  • Calculated Column: As you've seen, this adds a new column to your table. The calculation is performed for each row during data refresh, and the results are physically stored in your data model. This consumes RAM and increases your file size. A calculated column is great when you need to define a value that is specific to each row, and then use it in a visual filter, a slicer, or as a category.
  • Measure: A measure calculates a value on the fly, based on the context of your report (like filters from a slicer or columns in a table). It does not store values for each row. Instead, it computes an aggregate value (like a sum, average, or count) over many rows. Measures are the workhorses of Power BI reporting and are best for calculating ratios, percentages, and totals to display in your visualizations.

A simple rule of thumb: Use a calculated column if you want to see a result for each row in your table or if you need to use the new value to slice or filter your data. Use a measure if you need to calculate an aggregation or a total that changes based on what the user is looking at.

DAX for More Than Just Adding

The same principles apply to other mathematical operations. Sticking with calculated columns, you can easily create columns for subtraction, multiplication, or division.

  • Subtraction: To find profit by subtracting cost from revenue.
  • Multiplication: To calculate line item revenue from quantity and price.
  • Division: To calculate profit margin.

Pro Tip: It is better to use the 'DIVIDE()' function in DAX for division because it gracefully handles cases where you might be dividing by zero, which would otherwise cause an error.

ProfitMargin = DIVIDE(Sales[Profit], Sales[Revenue], 0)

The last argument in 'DIVIDE()' (in this case, '0') is the result it will return if division by zero occurs.

Troubleshooting Common DAX Errors

When you are getting started with DAX, you're bound to run into a few errors. Here are some of the most common issues you might face when adding columns and how to resolve them.

Data Type Mismatch

This is probably the most frequent error. It happens when you try to perform a mathematical operation on columns that aren't number types. For example, trying to use the '+' operator on a text column and a number column.

  • The Error: You'll see an error message like "DAX comparison operations do not support comparing values of type Text with values of type Integer."
  • The Fix: Go to the Data view or the Power Query Editor, select the column causing the issue, and change its data type to a compatible format (e.g., Whole Number, Decimal Number).

Incorrect Syntax

DAX is particular about its syntax. A missing bracket or an extra comma can break your formula.

  • The Error: Your formula is underlined in red, or Power BI gives you a syntax error message when you press Enter.
  • The Fix: Carefully double-check your formula. Make sure all table names and column names are spelled correctly, that column references use square brackets like 'Sales[Revenue]', that functions have opening and closing parentheses, and text strings are inside double quotes.

Final Thoughts

Adding columns in Power BI is a fundamental skill that opens up a world of new analytical possibilities. With DAX operators like '+' for numbers and '&' for text, you can easily create calculated columns that transform your raw data into actionable information. Understanding the important distinction between a calculated column and a measure sets you on the right path to creating efficient and powerful reports.

Learning DAX is a fantastic way to level up your analytics skills, but sometimes you just need answers faster, without looking up formulas. At Graphed, we've made data analysis as easy as asking a question. By connecting your data sources, you can use plain English to ask things like, "create a dashboard showing sales vs. profit margin by product category." We instantly build the dashboard for you in real-time, pulling data from your connected platforms, giving you back time to focus on strategy instead of struggling with syntax.

Related Articles

How to Connect Facebook to Google Data Studio: The Complete Guide for 2026

Connecting Facebook Ads to Google Data Studio (now called Looker Studio) has become essential for digital marketers who want to create comprehensive, visually appealing reports that go beyond the basic analytics provided by Facebook's native Ads Manager. If you're struggling with fragmented reporting across multiple platforms or spending too much time manually exporting data, this guide will show you exactly how to streamline your Facebook advertising analytics.

Appsflyer vs Mixpanel​: Complete 2026 Comparison Guide

The difference between AppsFlyer and Mixpanel isn't just about features—it's about understanding two fundamentally different approaches to data that can make or break your growth strategy. One tracks how users find you, the other reveals what they do once they arrive. Most companies need insights from both worlds, but knowing where to start can save you months of implementation headaches and thousands in wasted budget.