#powerbi #calculatedcolumn #Measure #dax
What is a Calculated Column?
Calculated column is just like any other Column in your data except its not direct pull from DB and you have done the calculation in Power BI end.
Its Evaluated for each row in your table, immediately after you hit ‘Enter’.
Its Saved back into the model so its going to take up space and increase the size of your model.
What is Measure?
A measure is usually a calculation that works on an aggregated level.
Aggregation can be done with a various DAX functions such as Average, Sum, SumX, Calculate etc.
Measure evaluates on the fly, if there is a slicer value for Country=India and year =2022, then the calculation will be done on the subset of data which is for India,2022.
Also please remember that Measures do not consume RAM
When to use Measure and when to use Calculated Column?
To answer this Golden question you need to ask yourself Is the calculation row by row? or it is an aggregation affected by Filters that the user selects?
Answer: If its row by row calculation then use calculated column and if your requirement is based on aggregate level where user selection is going to effect the visual outcome then use measure.
Calculated Column Measure
Stored in Memory Is not stored in Memory
Calculates at the time of Refresh Report Calculated on the fly
Row by row calculation Usually used in aggregation
Value seen in the column in Data tab Value seen when adding in report
Can be performed in Power Query Calculated in DAX usually
Get the Pbix file for this video here .Please download and open in Desktop
Link : https://drive.google.com/file/d/1IVjy...
For more details please visit :https://powerbizone.com/difference-be...
Chapters:
0:00 Difference between a calculated column and measure
0:29 Practical Example
1:35 Calculated column example
4:00 Measure example
5:30 Conclusion