In Strategy, users may wish to create conditions within a case function that include attributes, and then use this case function within a metric.
For example, a user may wish to create a metric that has the following logic:
When attribute1 is element1, return value1 (this value can be a metric or a constant), else return value2 (this value can be a metric or a constant.)
An example of a metric that contains this logic is seen below:

Sum(Case((Year@ID = "2011"), 1, 0)) {~} 
To create a metric with the logic described above follow these steps:

Users should note that even though the example above only uses one condition, Year@ID="2011", users are able to include as many condition as desired in the case formula. The following is an example of a metric containing a case function with multiple conditions:

This metric will display a value of 1 for 2011, the Revenue of 2012, and 0 otherwise.

For more information on the case function users can refer to the Strategy Functions Reference manual.