Examples of Calculated Measures
Published on
September 29, 2023 at 7:58:49 AM PDT September 29, 2023 at 7:58:49 AM PDTth, September 29, 2023 at 7:58:49 AM PDT
The following examples show how you can use calculated measures in your pivot tables and charts.
Year over Year Growth
You can create a calculated measure to compare the year over year difference for your sales reps performance. The following steps show you how to create a pivot table with a calculated measure that returns this difference.
Step | Description |
---|---|
Step 1: Create two formula fields using the Sales (Ordered) dataset | To calculate the year over year variance, you need to split the sales amount into two separate fields in the dataset. You can create the two following formula fields:
|
Step 2: Create your pivot table | Set the following fields to the corresponding section of the Layout panel:
|
Step 3: Create your calculated measure | Use the following definition:
|
Step 4: Format the results | You can also customize your pivot table results, add totals and grand totals, or set the decimal values to percentage values. |
After you create the calculated measure, the pivot table displays the difference over time.