You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/features/code-actions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ The Code Actions below will appear with teal green dots under the first two char
121
121
| DR011 |[Rewrite using ISBLANK](xref:DR011)| Instead of comparing an expression with [`BLANK()`](https://dax.guide/BLANK), use the [`ISBLANK`](https://dax.guide/ISBLANK) function. Example:<br>`IF([Sales] = BLANK(), [Budget], [Sales])` -> `IF(ISBLANK([Sales], [Budget], [Sales])`|
122
122
| DR012 |[Remove unnecessary BLANK](xref:DR012)| Some DAX functions, such as [`IF`](https://dax.guide/IF) and [`SWITCH`](https://dax.guide/SWITCH) already return `BLANK()` when the condition is false, so there is no need to explicitly specify `BLANK()`. Example:<br>`IF(a > b, a, BLANK())` -> `IF(a > b, a)`|
123
123
| DR013 |[Simplify negated logic](xref:DR013)| When a logical expression is negated, it is often more readable to rewrite the expression using the negated operator. Example:<br>`NOT(a = b)` -> `a <> b`|
124
-
| DR014 |[Simplify using IN](xref:DR014)| Rewrite compound predicates (equality comparisons of the same expression that are combined using [`OR`](https://dax.guide/OR) or [`||`](https://dax.guide/op/or/)) with the [`IN`](https://dax.guide/IN) operator. Example:<br>`a = 1 || a = 2 || a = 100` -> `a IN { 1, 2, 100 }` |
124
+
| DR014 |[Simplify using IN](xref:DR014)| Rewrite compound predicates (equality comparisons of the same expression that are combined using [`OR`](https://dax.guide/OR) or [`\|\|`](https://dax.guide/op/or/)) with the [`IN`](https://dax.guide/IN) operator. Example:<br>`a = 1 \|\| a = 2 \|\| a = 100` -> `a IN { 1, 2, 100 }`|
// - Si la búsqueda y el reemplazo se realizaron correctamente
167
-
// - Cuántas particiones M se reemplazaron
168
-
// - En qué particiones M se aplicó la búsqueda y el reemplazo
165
+
//Informs
166
+
// - Whether the Find & Replace was successful
167
+
// - How many M partitions were replaced
168
+
// - Which M partitions had the Find & Replace done
169
169
Info (
170
-
"Se reemplazó correctamente\n\n"+
170
+
"Successfully replaced\n\n"+
171
171
_Find+
172
-
"\n\npor: \n\n"+
172
+
"\n\nwith: \n\n"+
173
173
_Replace+
174
-
"\n\nen"+
174
+
"\n\nin"+
175
175
Convert.ToString(_NrReplacements) +
176
-
"de"+
176
+
"of"+
177
177
Convert.ToString(_NrMPartitions) +
178
-
"particiones M:\n"+
178
+
"M Partitions:\n"+
179
179
_ReplacedPartitions
180
180
);
181
181
182
182
}
183
183
else
184
184
{
185
-
Error ( "Entrada cancelada. El script finalizó sin cambios.");
185
+
Error ( "Cancelled input! Ended script without changes.");
186
186
}
187
187
}
188
188
```
@@ -199,6 +199,5 @@ Luego buscará el valor predeterminado en todas las particiones M y lo reemplaza
199
199
</figure>
200
200
201
201
<figurestyle="padding-top: 15px;">
202
-
<imgclass="noscale"src="~/content/assets/images/Cscripts/script-create-parameter-auto-replace.png"alt="Data Security Create Role"style="width: 550px;"/><figcaptionstyle="font-size: 12px; padding-top: 10px; padding-bottom: 15px; padding-left: 75px; padding-right: 75px; color:#00766e"><strong>Figura 2:</strong> Cuadro de diálogo de confirmación que muestra que se ha creado el parámetro y que la subcadena de valor correspondiente se ha reemplazado en todas las expresiones de las particiones M. Para parámetros de otros tipos, ajusta el código C# según corresponda.</figcaption>
203
-
Para parámetros de otros tipos, ajusta el código C# según corresponda.</figcaption>
202
+
<imgclass="noscale"src="~/content/assets/images/Cscripts/script-create-parameter-auto-replace.png"alt="Data Security Create Role"style="width: 550px;"/><figcaptionstyle="font-size: 12px; padding-top: 10px; padding-bottom: 15px; padding-left: 75px; padding-right: 75px; color:#00766e"><strong>Figura 2:</strong> Cuadro de diálogo de confirmación que muestra que se ha creado el parámetro y que la subcadena de valor correspondiente se ha reemplazado en todas las expresiones de las particiones M. Para parámetros de otros tipos, ajusta el código C# según corresponda.</figcaption> Para parámetros de otros tipos, ajusta el código C# según corresponda.</figcaption>
0 commit comments