mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 22:24:31 +08:00
Transformations: Binary operation on all numbers (#92172)
* Transformations: Binary operation on all numbers * Handle replaceFields option * Change left clear out to string * Handle time field * Fix filtering * Update new field names to remove double space * Add tests * Add BinaryValue interface and update editor * Fix initial behavior * Rollback rendering standards * Add ctx interpolate * Fix fixed value variable * Add function to convert old binary value type * Update tests for new structures * Add bullet for all number field option * baldm0mma/run content build script * Disable alias control for type matching
This commit is contained in:
@ -188,6 +188,7 @@ Use this transformation to add a new field calculated from two other fields. Eac
|
||||
- **Field name** - Select the names of fields you want to use in the calculation for the new field.
|
||||
- **Calculation** - If you select **Reduce row** mode, then the **Calculation** field appears. Click in the field to see a list of calculation choices you can use to create the new field. For information about available calculations, refer to [Calculation types][].
|
||||
- **Operation** - If you select **Binary operation** or **Unary operation** mode, then the **Operation** fields appear. These fields allow you to apply basic math operations on values in a single row from selected fields. You can also use numerical values for binary operations.
|
||||
- **All number fields** - Set the left side of a **Binary operation** to apply the calculation to all number fields.
|
||||
- **As percentile** - If you select **Row index** mode, then the **As percentile** switch appears. This switch allows you to transform the row index as a percentage of the total number of rows.
|
||||
- **Alias** - (Optional) Enter the name of your new field. If you leave this blank, then the field will be named to match the calculation.
|
||||
- **Replace all fields** - (Optional) Select this option if you want to hide all other fields and display only your calculated field in the visualization.
|
||||
|
Reference in New Issue
Block a user