
Applies to: Planning and Consolidation connections. If you use this function on other connections, a simple subtraction is performed, since the account type cannot be retrieved.
Performs a better or worse comparison of two values, based on the account type property of the account member.
| Parameter | Description |
|---|---|
| connection name | Name of the connection. For details about the syntax you must use, see Connection Name Parameter - Syntax. |
| account | Name of the account member. Mandatory. |
| cell1 | Cell reference of one of the values in the comparison. Mandatory. |
| cell2 | Cell reference of the other value in the comparison. Mandatory. |
EPMComparison("Finance","Revenue",B2,C2). If cell B2 is greater than cell C2 and the account is a revenue (income) account, the resulting variance is expressed as a positive. If the account is an expense account, the variance is negative.