This commit is contained in:
Christian Wade 2021-06-14 18:25:19 -07:00
commit db8d466d3f
2 changed files with 5 additions and 1 deletions

View File

@ -275,7 +275,7 @@
"Description": "Use the DIVIDE function instead of using \"/\". The DIVIDE function resolves divide-by-zero cases. As such, it is recommended to use to avoid errors. \r\nReference: https://docs.microsoft.com/en-us/power-bi/guidance/dax-divide-function-operator",
"Severity": 2,
"Scope": "Measure, CalculatedColumn, CalculationItem",
"Expression": "RegEx.IsMatch(Expression,\"\\]\\s*\\/\")\r\nor\r\nRegEx.IsMatch(Expression,\"\\)\\s*\\/\")",
"Expression": "RegEx.IsMatch(Expression,\"\\]\\s*\\/(?!\\/)(?!\\*)\")\r\nor\r\nRegEx.IsMatch(Expression,\"\\)\\s*\\/(?!\\/)(?!\\*)\")",
"CompatibilityLevel": 1200
},
{

View File

@ -74,6 +74,10 @@ w.DownloadFile(url, downloadLoc);
## Version History
* 2021-06-13 Version 1.1.2
* Modified Rules
* [DAX Expressions] Use the DIVIDE function for division
* Updated the rule logic to not mistake comments for division
* 2021-05-26 Version 1.1.1
* Modified Rules
* [DAX Expressions] Inactive relationships that are never activated