Expression | Description |
|---|---|
reporting.Queries.CategoryValueOrZero('P 1', 1m, 'CurrentPeriod', null, null, true, null) | Fetches the value of a category code balance. Returns zero if the category code lacks GL assignments or has no balance. Filters within parentheses refine the returned value:
|
reporting.Queries.CategoryValueOrZero('P 1', 1m, 'CurrentPeriod', null, 'Company', true, null) | Fetches company-only data by changing the entity filter to the company identifier. The company/group identifier varies in our content, potentially appearing as 'E1' or 'Parent Entity'. |
reporting.Queries.CategoryValueOrZero('P 1', 1000m, 'CurrentPeriod', null, 'Company', true, null) | Fetches company-only data, rounded to the nearest 1000. |
reporting.Queries.CategoryValueOrZero('P 1', 1000m, 'CurrentPeriod', null, 'Company', false, null) | Fetches company-only data without reversing the sign. Shows revenue as a negative/credit value. |
reporting.Queries.CategoryValueOrZero('P 1', 1000m, 'CurrentPeriod', null, 'Company', false, 'Original Trial Balance') | Brings the value of the category based on journal data classified as 'Original Trial Balance'. |
reporting.Queries.AccountValueOrZero('10001', 0.01m, 'CurrentPeriod', null, null, false, null) | Fetches the value of an account code balance. Returns zero if the account code has no balance. Uses the same filters within parentheses as explained in the previous expressions. |
Country | Company Filter | Group Filter |
|---|---|---|
UK and Ireland | Company | Group |
Australia and New Zealand | Parent Entity | Consolidated Entity |
Other Countries | E1 | E2 |
Rounding filter | Description |
|---|---|
0.01m | Rounds to 2 decimal places |
1m | Rounds to whole number |
1000m | Rounds to thousands |
10000m | Rounds to tens of thousands |
100000m | Rounds to hundreds of thousands |
1000000m | Rounds to millions |
Period filter | Description |
|---|---|
CurrentPeriod | As described |
PriorPeriod | As described |
PriorPriorPeriod | As described |
Reverse sign filter | Description |
|---|---|
true | Reverses the sign of the value |
false | Doesn't reverse the sign of the value |