You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><strong>{{ results.totalCount }}</strong> rows of data</li>
61
-
<li>a total salary commitment from the 'Salary' column of <strong>{{ data_sum(data, 'Salary') | currency }}</strong>.</li>
62
-
<li>an average salary from the 'Salary' column of <strong>{{ data_avg(data, 'Salary') | currency }}</strong>.</li>
97
+
<li>a total salary commitment from the 'Salary' column of <strong>{{ sum_result.value | currency }}</strong> from {{ sum_result.count }} {{ sum_result.count | pluralize("value", "values") }}.</li>
98
+
<li>an average salary from the 'Salary' column of <strong>{{ avg_result.value | currency }}</strong> from {{avg_result.count}} {{ avg_result.count | pluralize("value", "values") }}.</li>
Copy file name to clipboardExpand all lines: prototypes/basic/app/views/review.html
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -87,12 +87,15 @@ <h1 class="govuk-heading-l">Review your data</h1>
87
87
{% endif %}
88
88
89
89
<pclass="govuk-body">
90
-
The uploaded data contains the following data:
90
+
The uploaded data contains the following data:
91
+
92
+
{% set sum_result = data_sum(data, 'Salary')%}
93
+
{% set avg_result = data_avg(data, 'Salary') %}
91
94
92
95
<ulclass="govuk-list govuk-list--bullet">
93
96
<li><strong>{{ results.totalCount }}</strong> rows of data</li>
94
-
<li>a total salary commitment from the 'Salary' column of <strong>{{ data_sum(data, 'Salary') | currency }}</strong>.</li>
95
-
<li>an average salary from the 'Salary' column of <strong>{{ data_avg(data, 'Salary') | currency }}</strong>.</li>
97
+
<li>a total salary commitment from the 'Salary' column of <strong>{{ sum_result.value | currency }}</strong> from {{ sum_result.count }} {{ sum_result.count | pluralize("value", "values") }}.</li>
98
+
<li>an average salary from the 'Salary' column of <strong>{{ avg_result.value | currency }}</strong> from {{avg_result.count}} {{ avg_result.count | pluralize("value", "values") }}.</li>
0 commit comments