Skip to content

Commit 34573cd

Browse files
author
Owen Duncan
authored
Update calculation-groups.md
Removing Ordering section added for CTP 3.2. Ordinal property is being pushed to RC1.
1 parent 6ff1074 commit 34573cd

1 file changed

Lines changed: 0 additions & 67 deletions

File tree

‎docs/analysis-services/tabular-models/calculation-groups.md‎

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -252,73 +252,6 @@ The following animation shows the dynamic format currency conversion of the **Sa
252252

253253
![Currency conversion dynamic format string applied](media/calculation-groups/calc-groups-dynamic-format-string.gif)
254254

255-
## Ordering
256-
257-
The **Ordinal** property is used to order calculation items in calculation groups. When specified, calculation items can be shown to users in a more intuitive way, for example:
258-
259-
![Ordinal property benefit](media/calculation-groups/calc-groups-ordinal-benefit.png)
260-
261-
To use this property, the model must be at the 1480 compatibility level.
262-
263-
The following JSON-metadata from a model.bim file shows the required properties to create an **Ordinal** column for sorting:
264-
265-
```json
266-
{
267-
"tables": [
268-
{
269-
"name": "Time Intelligence",
270-
"description": "Utility table for time-Intelligence calculations.",
271-
"columns": [
272-
{
273-
"name": "Time Calc",
274-
"dataType": "string",
275-
"sourceColumn": "Name",
276-
"sortByColumn": "Ordinal Col"
277-
},
278-
{
279-
"name": "Ordinal Col",
280-
"dataType": "int64",
281-
"sourceColumn": "Ordinal",
282-
"isHidden": true
283-
}
284-
],
285-
"partitions": [
286-
{
287-
"name": "Time Intelligence",
288-
"source": {
289-
"type": "calculationGroup"
290-
}
291-
}
292-
],
293-
"calculationGroup": {
294-
"calculationItems": [
295-
{
296-
"name": "YTD",
297-
"description": "Generic year-to-date calculation.",
298-
"calculationExpression": "CALCULATE(SELECTEDMEASURE(), DATESYTD(DimDate[Date]))",
299-
"ordinal": 1
300-
},
301-
{
302-
"name": "MTD",
303-
"description": "Generic month-to-date calculation.",
304-
"calculationExpression": "CALCULATE(SELECTEDMEASURE(), DATESMTD(DimDate[Date]))",
305-
"ordinal": 2
306-
}
307-
]
308-
}
309-
}
310-
]
311-
}
312-
```
313-
314-
Validation is performed to ensure if two columns are specified in the calculation group, the following rules are applied:
315-
316-
- One column is of type string and the SourceColumn is “name”.
317-
- One column is of type int64 and the SourceColumn is “ordinal”.
318-
- All calculation items have unique Ordinal values.
319-
320-
321-
322255
## Precedence
323256

324257
Precedence is a property defined for a calculation group. It specifies the order of evaluation when there is more than one calculation group. A higher number indicates greater precedence, meaning it will be evaluated before calculation groups with lower precedence.

0 commit comments

Comments
 (0)