This document explains how to create a metric using an ApplySimple statement to choose different metrics for calculation based on a prompt value. This document will use the Strategy Tutorial project with a warehouse in SQL Server to demonstrate the concept:



Since the value entered is 2001, the Case Metric will use the Profit metric for its calculation and therefore it has the same result as the Profit metric, as shown below:
