...
Tip | ||||
---|---|---|---|---|
| ||||
By default, metrics used within a custom expression always use the current report as a filter of the data. However, by qualifying the metric with the name of a report, you can force the filters of that report to be applied when calculating the metric. For example, this represents the average score within the current report:
This represents the average score in the state of Utah, regardless of what the current report is: (assuming there is a report named "Utah Students")
|
...
Code Block |
---|
countOfProficientStudents = [Distinct Count: Proficient Students: Student ID]; countOfMyStudents = [Distinct Count: Student ID]; percentageProficient = round(countOfProficientStudents / countOfMyStudents * 100, 2); percentageGoal = 80; round(percentageGoal - percentageProficient, 2) |
...