07177fd2ed2e7672a0f1554a35d36e9ff25665c2
FAQ/Questions/Custom-Aggregate-Functions.md
| ... | ... | @@ -48,6 +48,10 @@ And below is what the resulting function could look like. |
| 48 | 48 | |
| 49 | 49 | You may introduce your own custom class to contain your aggregate function. A custom class is useful for when you are using more complex expressions that require specific conditional formatting of the parameters. This class simply inherits the IAggregateFunction interface, overriding each of the interface's methods. See the example below for what this could look like. |
| 50 | 50 | |
| 51 | +*NOTE*: When you use SimpleAggregateFunction constructor you can't specify the function as a format string, you can only specify a function to call and then those string will be generated automatically as <Function>(<Argument>). |
|
| 52 | + |
|
| 53 | +So the correct way to specify such function would be this: |
|
| 54 | + |
|
| 51 | 55 | ```csharp |
| 52 | 56 | public class GroupByFiscalYearFunction : IAggregateFunction { |
| 53 | 57 | public string GetSQL(string innerExpression, SqlType type) { |