This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.
📖 Task Introduction
The Metric card widget configuration conforms to a different structure than others addressed up to this point. The Widget setup tab first allows you to choose layout and styling options. Configuring the metric requires advancing into the individual metrics themselves.
In this task, you’ll create a metric that conveys the average risk score of the alerts in the filtered object table.
🔨 Task Instructions
In the Widget setup tab, click into the generically named Metric 1—the first and only metric you’ll configure here (though you could add more if desired).
Set the first few values as follows:
Label: Avg Risk Score
Description: Avg risk score of filtered alerts
Value Type: Number
You’ve chosen a Number value type because the property you’ll be aggregating is a numeric value in the Ontology.
Click into the Select numeric variable . . . field and choose ➕ New numeric variable and then Object set aggregation.
In the variable flow-out window, click into the generic variable name Metric card: Avg Risk Score Value and change it to [n] Avg Risk Score. The [n] prefix indicates that this is a numeric variable, as opposed to an object set or filter.
Because we want the value to vary with the filter selection, set the object set variable to [o] Filtered flight Alerts.
Set the Aggregation Method to Average and the Object Property to Risk Score.