A formula is a custom metric whose value aclipp calculates from the clipping's other data. Nobody enters it by hand, and it updates whenever that data changes.
Write a formula#
Type @ in the formula editor to insert a reference:
- Metrics: Number, Slider, Dropdown or other Formula metrics. A dropdown contributes its numeric value, not its option text.
- Channel fields: built-in data such as Media Value, Views, Likes, Reach or Print Run. The editor only offers fields that every channel assigned to the formula has.
- Functions: see the table below.
Operators are +, -, *, /, % (remainder), ^ (power) and ( ) for grouping.
| Function | Does | Example |
|---|---|---|
round() | Rounds to the nearest integer | round(3.7) → 4 |
roundTo() | Rounds to N decimal places | roundTo(3.756, 2) → 3.76 |
floor() | Rounds down | floor(3.7) → 3 |
ceil() | Rounds up | ceil(3.2) → 4 |
abs() | Absolute value | abs(-5) → 5 |
sqrt() | Square root | sqrt(16) → 4 |
min() | Smaller of two values | min(3, 7) → 3 |
max() | Larger of two values | max(3, 7) → 7 |
Examples#
| Formula | Result |
|---|---|
@Media Value * 2 | Double the media value |
round(@Views / 1000) | Views in thousands, rounded |
(@Sentiment Score + @Visibility Score) / 2 | Average of two metrics |
roundTo(@Media Value / @Print Run, 2) | Cost per copy, two decimals |
@Sentiment * @Media Value | Media value weighted by a sentiment dropdown (Positive 1, Neutral 0, Negative -1) |
Channel compatibility#
Every field a formula uses must exist on every channel the formula is assigned to. A formula that uses Views and is assigned to YouTube and Print shows an error, because print clippings have no views. Remove channels from the formula, or use only fields all of them share, such as Media Value.