Expression | Description |
|---|---|
(select reporting.Queries.CategoryValueorZero('P 1', 0.01m, 'PriorPeriod', null, 'E1', null, null, null, false) case 0m: 0m default: ((reporting.Queries.CategoryValueOrZero('P 1', 0.01m, 'CurrentPeriod', null, 'E1', true, null)- reporting.Queries.CategoryValueOrZero('P 1', 0.01m, 'PriorPeriod', null, 'E1', true, null)) reporting.Queries.CategoryValueOrZero('P 1', 0.01m, 'PriorPeriod', null, 'E1', true, null)) *100) | Calculates the percentage increase or decrease in turnover/revenue in the current year of the financial period.
note This expression might cause a problem if divided by zero. If the prior year's revenue is zero, the calculation will cause an error. At the start of the expression, the category for prior year revenue is selected, and the outcome for a zero value is defined. In this example, when prior year revenue is zero, the expression returns zero. When prior year revenue isn't zero, the percentage increase or decrease is calculated using this formula: ((Current Period Revenue – Prior Period Revenue) / Prior Period Revenue) * 100 |
(select reporting.Queries.CategoryValueorZero('P 1', 0.01m, 'CurrentPeriod', null, 'Company', null, null, null, false) case 0m: 0m default: (reporting.Queries.CategoryValueorZero('P 1', 0.01m, 'CurrentPeriod', null, 'Company', null, null, null, false) + reporting.Queries.CategoryValueorZero('F 1', 0.01m, 'CurrentPeriod', null, 'Company', null, null, null, false)) reporting.Queries.CategoryValueorZero('P 1', 0.01m, 'CurrentPeriod', null, 'Company', null, null, null, false)*100)) | Calculates the gross profit ratio for the current period. There are 2 cases defined in this expression:
|
(select reporting.Queries.CategoryValueorZero('CL', 0.01m, 'CurrentPeriod', null, 'Company', null, null, null, true) case 0m :0m default: reporting.Queries.CategoryValueorZero('CA', 0.01m, 'CurrentPeriod', null, 'Company', null, null, null, false) / reporting.Queries.CategoryValueorZero('CL', 0.01m, 'CurrentPeriod', null, 'Company', null, null, null, true)) | Calculates the current ratio (working capital ratio) for the current period. There are 2 cases defined in this expression:
|
reporting.Queries.FinancialPeriodDataSum ("FYNonImport| NotesToBalanceSheet| CurrentReceivables| TradeReceivablesProvisionForDoubtfulDebts| ProvisionForDoubtfulDebts| Columns| Value|*", 'PriorPeriod', 'FY|FY', 'E1', null) | Calculates the sum of values in the prior period column of a financial period data capture grid. In this example, the NL content sums all values in the data grid for the provision of doubtful debts. This sum automates the opening balance in the current period based on data entered for the prior period. |


Expression | Description |
|---|---|
(reporting.queries.FinancialPeriodDataSum ("FYNonImport| NotesToBalanceSheet| TangibleFixedAssets| TangibleFixedAssets| TangibleFixedAssets| Rows| *:filter[Section| Value=B]:filter[RowRef.| Value=Dep]| *", "CurrentPeriod", "FY|FY", "E1", null)) | Calculates the sum of values contained within a row of a financial period data capture grid. In this example, sum all the values within the depreciation row of the data capture grid for property, plant, and equipment. This allows you to automate the depreciation balance in the statement of cash flows for the current period. Filters ensure the selection of the exact row. Specifically, filter on the section label B and fetch the sum of values from the row with the row reference Dep . |



