mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
fix: set a threshold for participation count
This commit is contained in:
parent
093ecb5c6d
commit
dbfbf55700
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ module Report
|
|||
.values.max || 0
|
||||
|
||||
participation_count = non_early_ed_count + early_ed_count
|
||||
participation_count = 0 if participation_count < threshold
|
||||
participation_rate = participation_count / respondent_count * 100
|
||||
participation_rate = 0 if participation_rate.nil? || participation_rate.nan? || participation_rate < 5
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue