API/CodeSamples/AllowComparativeArithmetic.md
... ...
@@ -52,10 +52,24 @@ End Class
52 52
53 53
##Screenshots (Report Designer)
54 54
55
-Field "Quantity" compared to field "ExtendedPrice" with alias "Sales"
55
+Field "Quantity" compared to field "ExtendedPrice" with alias "Sales" (less than arithmetic) (average operator)
56 56
57
-![](http://wiki.izenda.us/API/CodeSamples/AllowComparativeArithmetic/AllowComparativeArithmetic_lt.png)
57
+![](http://wiki.izenda.us/API/CodeSamples/AllowComparativeArithmetic/AllowComparativeArithmetic_lt2.png)
58 58
59
-Provided "Average" is selected, this will generate SQL like the following:
60 59
CASE WHEN ([dbo].[Invoices].[ExtendedPrice]<AVG(CAST([dbo].[Invoices].[Quantity] AS float))) THEN 1 ELSE 0 END AS 'Sales'
61 60
61
+---
62
+
63
+Field "Quantity" compared to field "ExtendedPrice" with alias "Sales" (equals arithmetic) (group operator)
64
+
65
+![](http://wiki.izenda.us/API/CodeSamples/AllowComparativeArithmetic/AllowComparativeArithmetic_eq.png)
66
+
67
+CASE WHEN ([dbo].[Invoices].[ExtendedPrice]=[dbo].[Invoices].[Quantity]) THEN 1 ELSE 0 END AS 'Sales'
68
+
69
+---
70
+
71
+Field "Quantity" compared to field "ExtendedPrice" with alias "Sales" (greater than arithmetic) (sum operator)
72
+
73
+![](http://wiki.izenda.us/API/CodeSamples/AllowComparativeArithmetic/AllowComparativeArithmetic_gt.png)
74
+
75
+CASE WHEN ([dbo].[Invoices].[ExtendedPrice]>SUM([dbo].[Invoices].[Quantity])) THEN 1 ELSE 0 END AS 'Sales'
... ...
\ No newline at end of file