diff --git a/te3/features/code-actions.md b/te3/features/code-actions.md index f4a197f..590a734 100644 --- a/te3/features/code-actions.md +++ b/te3/features/code-actions.md @@ -95,7 +95,7 @@ The Code Actions below will appear with teal green dots under the first two char | ID | Name | Description | | --- | --- | --- | | DR001 | [Convert to scalar predicate](xref:DR001) | A column filter can be written more concisely as a scalar predicate, without explicitly using the [`FILTER`](https://dax.guide/FILTER) function. Examples:
`FILTER(ALL(Products[Color]), Products[Color] = "Red")` -> `Products[Color] = "Red"`
`FILTER(VALUES(Products[Color]), Products[Color] = "Red")` -> `KEEPFILTERS(Products[Color] = "Red")` | -| DR002 | [Use aggregator instead of iterator](xref:DR002) | d | +| DR002 | [Use aggregator instead of iterator](xref:DR002) | Use an aggregator function instead of an iterator function when possible, to simplify the code. Example:
`SUMX(Products, Products[SalesAmount])` -> `SUM(Products[SalesAmount])` | | DR003 | [Use VALUES instead of SUMMARIZE](xref:DR003) | When [`SUMMARIZE`](https://dax.guide/SUMMARIZE) only specifies a single column, and that column belongs to the table specified in the first argument, the code can be more concisely written using [`VALUES`](https://dax.guide/VALUES). Example:
`SUMMARIZE(Products, Products[Color])` -> `VALUES(Products[Color])` | | DR004 | [Prefix variable](xref:DR004) | Variables should use a consistent naming convention. It is recommended to use a prefix, such as an underscore. You can configure which prefix to use, to match your preferred style. Example:
`VAR totalSales = SUM(Sales[SalesAmount])` -> `VAR _totalSales = SUM(Sales[SalesAmount])` | | DR005 | [Prefix temporary columns](xref:DR005) | It is recommended to use a consistent prefix for temporary columns, to more easily distinguish them from base columns or measures. You can configure which prefix to use, to match your preferred style. Example:
`ADDCOLUMNS(Product, "SalesByProd", [Sales])` -> `ADDCOLUMNS(Product, "@SalesByProd", [Sales])` |