07ef444aa4162f423fa1acfa1b51c629ae95403f
Guides/ReportDesign/15.0-Expressions-in-Izenda.md
| ... | ... | @@ -133,7 +133,7 @@ More information about using these functions can be found [[here|http://msdn.mic |
| 133 | 133 | |
| 134 | 134 | _**Note:** Case statements became available as of version 6.7.0.262._ |
| 135 | 135 | |
| 136 | -_**Note:** You can nest other functions inside case statements using parenthesis around each nested function (e.g. **case when (SUM([Freight)) > 100 THEN (SUM([Freight])) * (COUNT(OrderID)) ELSE (SUM([Freight])) END**)._ |
|
| 136 | +You can also nest other functions inside case statements using parenthesis around each nested function (e.g. **case when (SUM([Freight)) > 100 THEN (SUM([Freight])) * (COUNT(OrderID)) ELSE (SUM([Freight])) END**). The results of the case expression **must** be of the same datatype, but they do not have to correspond to the datatype of the field you selected (e.g. selecting [Freight] and then outputting 'Valid' or 'Invalid' will work, but outputting [Freight] or 'Invalid' will not). This is a limitation within SQL itself. |
|
| 137 | 137 | |
| 138 | 138 | More information about using this function can be found [[here|http://msdn.microsoft.com/en-us/library/ms181765.aspx]]. |
| 139 | 139 |