Carrot reference
Methods
.countPercent()
returns the percentage of items in a sequence docid\ jg4itlqwafzlparttfo67 or list docid\ xwh cukhj9waqaefb7h71 that match a criteria the result is always returned as a percent docid\ fbn7bfahlfpv4f1c53dxa , calculated as (number of items that match the criteria) divided by (total number of items) syntax count{expression} returns the percentage of items in the sequence or list where the expression evaluates to a truthy value examples \[1, 2, 3, 4] countpercent{it >= 3} returns 50% db job find() countpercent{dept\ engineering} returns the percentage of all jobs in the organization that are in the engineering department db job find{dept\ engineering gender } countpercent{gender\ female} returns the percentage of female identified people, taken as a percentage of people in the engineering department who have specified their gender