TabularEditor / BestPracticeRules

An official collection of standard Rules for use with Tabular Editor's Best Practice Analyzer.
122 stars 53 forks source link

[Rule Submit] META: Attributes that are visible and Int64 should be set to do not summarize #18

Closed Gezahegne closed 6 years ago

Gezahegne commented 7 years ago
"ID": "META:_COLUMNS_THAT_ARE_VISIBLE_AND_INT64_SHOULD_BE_SET_TO_DO_NOT_SUMMARIZE",
"Name": "META: Attributes that are visible and Int64 should be set to do not summarize",
"Category": null,
"Description": "Attributes that are vissible and their data type is Int 64 need to be set to DO NOT SUMMARIZE. DO NOT SUMMARIZE is one of the 'Reporting Properties' in Visual Studio ('Other' in Tabular Editor) and is found under 'Summarize By'.",
"Severity": 3,
"Scope": "DataColumn, CalculatedColumn, CalculatedTableColumn",
"ScopeString": "Columns",
"Expression": "DataType.ToString().Equals(\"Int64\") and !SummarizeBy.ToString().Equals(\"None\") and not IsHidden",
"FixExpression": null,
"Compatibility": null,
"IsValid": false
otykier commented 6 years ago

Rule implemented

All visible columns of type Int64, Decimal or Double will be reported. Columns on hidden tables are not reported.