cancel
Showing results for
Did you mean:
Highlighted
Visitor

## X-aggregator function vs calculated column

I've been doing my best to learn Dax via the BiAtMicrosoft tutorials and I've got a question about calculated columns and measures. From what I understand calculated columns are best suited for slicer/ filtering purposes and measures aggregate on the tabular level. What I'd like to have clarified is when to use a calculated column and when to use an x-aggregator function in a measure. From my understanding, a calculated column and an x aggregator function both compute some value on a row by row level. Is there more to it?

1 ACCEPTED SOLUTION

Accepted Solutions
Member

## Re: X-aggregator function vs calculated column

Well, some information you should keep in mind, a calculated column is stored in memory and is computed once. A measure with an aggregator function (or any measure) is not stored in memory and is calculated whenever it is used. It will be up to you to balance when to use one over the other. If the value is used many times, it may be better to use a calculated column, since it is computed once and the value is always there. If the value is used occasionally, it is best to use a measure since it does not take up space in memory (which is beneficial when using a very large set of data).

Member

## Re: X-aggregator function vs calculated column

Well, some information you should keep in mind, a calculated column is stored in memory and is computed once. A measure with an aggregator function (or any measure) is not stored in memory and is calculated whenever it is used. It will be up to you to balance when to use one over the other. If the value is used many times, it may be better to use a calculated column, since it is computed once and the value is always there. If the value is used occasionally, it is best to use a measure since it does not take up space in memory (which is beneficial when using a very large set of data).

Announcements

#### Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

#### Community News & Announcements

Get your latest community news and announcements.

#### Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 357 members 3,554 guests
Recent signins: