diff --git a/BestPracticeRules/BPARules.json b/BestPracticeRules/BPARules.json index c8aa0024..22be2456 100644 --- a/BestPracticeRules/BPARules.json +++ b/BestPracticeRules/BPARules.json @@ -615,10 +615,10 @@ "ID": "PROVIDE_FORMAT_STRING_FOR_MEASURES", "Name": "[Formatting] Provide format string for measures", "Category": "Formatting", - "Description": "Visible measures should have their format string property assigned", + "Description": "Visible not string measures should have their format string property assigned", "Severity": 3, "Scope": "Measure", - "Expression": "not IsHidden \r\nand not Table.IsHidden \r\nand string.IsNullOrWhitespace(FormatString)", + "Expression": "not IsHidden \r\nand not Table.IsHidden \r\nand string.IsNullOrWhitespace(FormatString)\r\nand DataType <> \"String\"", "CompatibilityLevel": 1200 }, { @@ -724,4 +724,4 @@ "Expression": "Name.ToUpper().Contains(\"MONTH\")\r\nand\r\n! Name.ToUpper().Contains(\"MONTHS\") \r\nand \r\n\n\nDataType == DataType.String \r\nand \r\nSortByColumn == null", "CompatibilityLevel": 1200 } -] \ No newline at end of file +]