Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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?
Solved! Go to Solution.
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).
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).
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |