Carrot reference
Methods
.nps()
calculates a net promoter score from a sequence docid\ jg4itlqwafzlparttfo67 or list docid\ xwh cukhj9waqaefb7h71 net promoter score is calculated by taking the number of promoters (values of 9 or 10), subtracting the number of detractors (values of <= 6), and dividing by the total number the result is multiplied by 100 and therefore will be between 100 (worst) and 100 (best) this is especially useful in calculating enps (employee net promoter score) syntax nps() returns the nps score of items in the sequence or list nps{expression} returns the nps score of items in the sequence or list evaluating expression for each item examples \[4, 8, 9, 10] nps() returns 25 findanswers('enps question', ' 30d') nps{it value} returns the enps score from all of the responses to the enps question question in the past 30 days findanswersbyassessment('enps question', '2h engagement survey') groupby{submitperson department} nps{it value} returns the enps score from all the answers to the enps question in the 2h engagement survey , grouped by department