The main rule with Calculated Field is to think about aggregation when you create a new Measure. As you know, a Measure is, by default, aggregated and so are Calculated Measures. You can specify the aggregation inside the formula or not. If you aggregate the data inside the formula, the pill of the Calculated Measure will start with AGG. If you don't specify the aggregation in the formula, a default one is added when you use the Calculated Measure, as for any normal Measure.
For example, the Calculated Measure Profit Ratio, in the Sample - Superstore Data Source, contains the aggregations inside the formula, so its pill starts with AGG displayed as follows: