You can create a new data element (typically a measure) to add to your visualization. For example, you can create a new measure called Profit that uses the Revenue and Discount Amount measures.
- To open the Add Calculation dialog, go to the bottom of the Data Elements pane and click Add Calculation.
- In the Expression Builder, compose an expression. See About Composing Expressions and Expression Editor Reference.
- Click Validate.
- In the Name field, enter a name for the calculated data element.
- Click Save.The new data element is created and added to the My Calculations folder in the Data Elements pane. You can add this data element to your visualizations as you would any other data element. For example, in visualization drop targets or in filters.