Power BI: Create Calculated Columns Fast
Power BI
16. Okt 2025 04:32

Power BI: Create Calculated Columns Fast

von HubSite 365 über Reza Rad (RADACAD) [MVP]

Founder | CEO @ RADACAD | Coach | Power BI Consultant | Author | Speaker | Regional Director | MVP

Master Power BI calculated columns with Power Query Add Custom Column versus DAX for cleaner, faster data modeling

Key insights

  • Summary of the YouTube video: this piece explains how to create a calculated column in Power BI using the Power Query Custom Column feature and lists three reasons this approach can be better than making the column in DAX.
  • Clear definitions: Calculated Columns (DAX) are added in the data model and evaluate row-by-row during model refresh; they can use relationships and work in slicers and visuals.
    Custom Columns (Power Query M) run during data import and shape data before it enters the model, so they compute once per refresh and reduce model work.
  • How to create them quickly: for a DAX column, right-click a table in Data or Model view and choose New Column, then enter a DAX formula; for a Power Query column, open Transform Data, go to Add Column → Custom Column, and write an M expression.
    Both add a persistent column, but the editor and timing differ.
  • Three reasons to prefer Power Query Custom Column over DAX in many cases: better performance because the work runs once at import; smaller model size and faster refresh when heavy transformations are done before loading; and simpler data shaping for row-level changes like concatenation or text cleanup.
  • Best practices (2025): prefer measures for on-the-fly calculations, minimize calculated columns to keep the model lean, and use optimization tools like DAX Studio or Power BI Profiler to spot slow formulas and refresh bottlenecks.
  • Quick decision guide: Use Custom Columns for row-by-row transformations and pre-load shaping; Use Calculated Columns when you must use model relationships or need a column inside visuals or filters; Use Measures for dynamic aggregations and best runtime performance.

Introduction

Reza Rad (RADACAD) [MVP] recently published a YouTube video that examines the best way to create a calculated column in Power BI, and this article summarizes his key points for newsroom readers. The video contrasts two main techniques: creating a column with Power Query's Add Custom Column feature and creating a Calculated Column using DAX. In addition, the author explains why, in many situations, using a Custom Column in Power Query can be the more efficient choice.

Moreover, the video clarifies when each approach fits different workflows and highlights performance and maintenance considerations. Consequently, the guidance helps report developers decide whether to shape data before loading or to add logic inside the model. This report distills the practical advice while pointing out tradeoffs and implementation challenges.

Key differences between Custom Columns and Calculated Columns

First, the video outlines the technical distinction: a Custom Column built in Power Query uses the M language and runs during data import, whereas a Calculated Column uses DAX and is computed as part of the data model refresh. Therefore, custom columns are evaluated once per refresh step and become part of the transformed table before the model stores it. In contrast, calculated columns are evaluated during model processing and can increase memory footprint because they persist in the model storage.

Additionally, Reza notes that Calculated Columns can reference other tables and model relationships, which makes them useful for calculations that need model context. However, Custom Columns work within the current query and are ideal for row-by-row transformations like text concatenation and basic data cleaning. Thus, the choice often depends on whether you need relational context or you simply want to pre-process raw data.

When to prefer Power Query Custom Columns

The video stresses several scenarios where using a Custom Column is preferable, and this guidance is practical for everyday report authors. For instance, when you perform simple row-level transformations, remove or combine text fields, or normalize data prior to loading, Power Query is faster and reduces model size. Consequently, dataset refreshes usually run quicker because fewer calculated fields inflate the model.

Furthermore, Reza recommends Power Query for predictable transformations that do not depend on filter context or relationships. Since those columns are finalized during ETL, they remain stable across visuals and slicers but do not react dynamically. Therefore, using Power Query simplifies maintenance for common cleansing tasks and often reduces long-term complexity.

When to use DAX Calculated Columns and measures

On the other hand, the video acknowledges that Calculated Columns and measures still have clear use cases, particularly when calculations require relationships or dynamic behavior. For example, if a new column must refer to related tables or be used as a slicer or row label, a calculated column inside the model may be necessary. Likewise, complex aggregations and analytics should usually be implemented as measures, since measures evaluate dynamically and avoid inflating the model with stored values.

Reza also points out that developers should default to measures when possible because they optimize query-time evaluation and keep the model lean. However, when a column must exist as a physical field for visuals or export, a calculated column becomes unavoidable. Thus, balancing storage, interactivity, and usability drives the decision between DAX columns and measures.

Performance, best practices, and tradeoffs

The video highlights performance tradeoffs and offers best practices, and these recommendations are actionable for model builders. In particular, minimizing the number and complexity of stored calculated columns reduces model size and speeds refresh cycles, whereas pushing transformations to Power Query often yields better performance. Therefore, teams should audit columns regularly and migrate simple transformations to Power Query when feasible.

Moreover, Reza recommends using profiling tools and monitoring refresh times to identify bottlenecks, and he encourages developers to weigh maintainability against immediate convenience. While Power Query is efficient for ETL, it can complicate refresh logic when applied inconsistently across multiple queries, so governance matters. Ultimately, the tradeoff involves choosing the path that balances refresh performance, model size, and the need for relational context.

Challenges and practical recommendations

Finally, the video candidly addresses common challenges that teams face when choosing between approaches, and it provides pragmatic steps to manage them. For example, version control and collaboration can become harder when many transformations live in Power Query, and debugging complex M or DAX logic demands different skills from team members. Therefore, standardizing patterns and documenting rationale for column placement helps reduce friction across projects.

In conclusion, Reza Rad’s video delivers clear guidance: prefer Power Query Custom Columns for simple row-level work, use Calculated Columns when model relationships require them, and favor measures for dynamic calculations. By balancing performance, maintainability, and functionality, report teams can design cleaner, faster Power BI solutions that meet both business and technical needs.

Power BI - Power BI: Create Calculated Columns Fast

Keywords

Power BI calculated column, Power Query custom column, create calculated column Power BI, add custom column Power Query, DAX vs Power Query calculated column, Power BI calculated column tutorial, Power Query custom column examples, Power BI data modeling calculated column