e36a214e072c2c6fb4eefe991933ae5ef284535c
API/CodeSamples/AggregateFunctions.md
| ... | ... | @@ -1,5 +1,4 @@ |
| 1 | -We are currently updating this page. Please bear with us as we make these changes. |
|
| 2 | -<!-- #AggregateFunctions |
|
| 1 | +#AggregateFunctions |
|
| 3 | 2 | |
| 4 | 3 | [[_TOC_]] |
| 5 | 4 | |
| ... | ... | @@ -23,7 +22,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 23 | 22 | //Creates a connection to Microsoft SQL Server |
| 24 | 23 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 25 | 24 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 26 | - AdHocSettings.AggregateFunctions["Group By Fiscal Year"] = new SimpleAggregateFunction("DATEPART(yyyy, DATEADD(mm, 3, {0}))", "Group (Fiscal Year)", new SqlTypeGroup[] { SqlTypeGroup.Date, SqlTypeGroup.DateTime }, true, true); //The relevant setting |
|
| 25 | + AdHocSettings.AggregateFunctions["Group By Absolute Value"] = new SimpleAggregateFunction("ABS", "Group (Absolute Value)", new SqlTypeGroup[] { SqlTypeGroup.Numeric, SqlTypeGroup.Real }, true, true); //The relevant setting |
|
| 27 | 26 | HttpContext.Current.Session["ReportingInitialized"] = true; |
| 28 | 27 | } |
| 29 | 28 | } |
| ... | ... | @@ -44,7 +43,7 @@ Public Class CustomAdHocConfig |
| 44 | 43 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 45 | 44 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 46 | 45 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 47 | - AdHocSettings.AggregateFunctions("Group By Fiscal Year") = new SimpleAggregateFunction("DATEPART(yyyy, DATEADD(mm, 3, {0}))", "Group (Fiscal Year)", new SqlTypeGroup() { SqlTypeGroup.Date, SqlTypeGroup.DateTime }, True, True) 'The relevant setting |
|
| 46 | + AdHocSettings.AggregateFunctions("Group By Absolute Value") = New SimpleAggregateFunction("ABS", "Group (Absolute Value)", New SqlTypeGroup() {SqlTypeGroup.Numeric, SqlTypeGroup.Real}, True, True) 'The relevant setting |
|
| 48 | 47 | HttpContext.Current.Session("ReportingInitialized") = True |
| 49 | 48 | End Sub |
| 50 | 49 | End Class |
| ... | ... | @@ -52,7 +51,6 @@ End Class |
| 52 | 51 | |
| 53 | 52 | ##Screenshots |
| 54 | 53 | |
| 55 | -**The Group By Fiscal Year Function** |
|
| 54 | +**The Group By Absolute Value Function** |
|
| 56 | 55 | |
| 57 | - |
|
| 58 | ---> |
|
| ... | ... | \ No newline at end of file |
| 0 | + |
|
| ... | ... | \ No newline at end of file |