Skip to content

Commit 1fcc08e

Browse files
author
Owen Duncan
committed
SSAS updates for CTP 3.2.
1 parent b3efdfc commit 1fcc08e

4 files changed

Lines changed: 109 additions & 4 deletions

File tree

‎docs/analysis-services/server-properties/general-properties.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Analysis Services General Properties | Microsoft Docs"
3-
ms.date: 04/04/2019
3+
ms.date: 07/08/2019
44
ms.prod: sql
55
ms.technology: analysis-services
66
ms.custom:
@@ -15,7 +15,7 @@ manager: kfile
1515

1616
[!INCLUDE[ssASnoversion](../../includes/ssasnoversion-md.md)] supports the server properties listed in the following tables. This topic documents those server properties in the msmdsrv.ini file that are not otherwise included in a specific section, such as Security, Network, or ThreadPool. For more information about additional server properties and how to set them, see [Server Properties in Analysis Services](../../analysis-services/server-properties/server-properties-in-analysis-services.md).
1717

18-
**Applies to:** Multidimensional and Tabular server mode, unless noted otherwise
18+
These properties apply to Multidimensional and Tabular server mode, unless noted otherwise.
1919

2020
## Non-Specific Category
2121
**AdminTimeout**
@@ -30,7 +30,7 @@ manager: kfile
3030
A string property that identifies the name of the directory where backup files are stored by default, in the event a path is not specified as part of the Backup command.
3131

3232
**ClientCacheRefreshPolicy**
33-
Applies to Azure Analysis Services only. Overrides the **Scheduled cache refresh** setting for all Power BI datasets. All Live Connect reports will observe the server-level setting irrespective of the dataset-level setting, or which workspace they reside on.
33+
For tabular models in SSAS and Azure Analysis Services, this property overrides the **Scheduled cache refresh** setting for all Power BI datasets. All Live Connect reports will observe the server-level setting irrespective of the dataset-level setting, or which workspace they reside on.
3434

3535
The default value for this property is -1, which allows all background cache refreshes as specified in the Scheduled cache refresh setting for the dataset. To discourage all background cache refreshes, specify zero (0).
3636

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

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Calculation groups in Analysis Services tabular models | Microsoft Docs"
3-
ms.date: 06/17/2019
3+
ms.date: 07/08/2019
44
ms.prod: sql
55
ms.technology: analysis-services
66
ms.custom: tabular-models
@@ -23,6 +23,7 @@ This article describes:
2323
> * Benefits
2424
> * How calculation groups work
2525
> * Dynamic format strings
26+
> * Ordering
2627
> * Precedence
2728
> * Tools
2829
> * Limitations
@@ -251,6 +252,73 @@ The following animation shows the dynamic format currency conversion of the **Sa
251252

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

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+
254322
## Precedence
255323

256324
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.
55 KB
Loading

‎docs/sql-server/what-s-new-in-sql-server-ver15.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ In addition, the following features are added or enhanced for [!INCLUDE[sql-serv
5050
|:---|:---|
5151
|   |   |
5252

53+
### Analysis Services
54+
55+
| New feature or update | Details |
56+
|:---|:---|
57+
| Governance setting for Power BI cache refreshes. | The Power BI service caches dashboard tile data and report data for initial load of Live Connect report, causing an excessive number of cache queries being submitted to SSAS, and in extreme cases overload the server. This release introduces the **ClientCacheRefreshPolicy** property. This property allows you to override this behavior at the server level. To learn more, see [General Properties](../analysis-services/server-properties/general-properties.md). |
58+
| Online attach | This feature provides the ability to attach a tabular model as an online operation. Online attach can be used for synchronization of read-only replicas in on-premises query scale-out environments. To learn more see [Online attach](#online-attach-ctp32) in Details. |
59+
| Ordinal property to order calculation items in calculation groups. | This property ensures calculation items are shown to users in a more intuitive way. To learn more, see [Calculation groups](../analysis-services/tabular-models/calculation-groups.md#ordering). |
60+
|   |   |
61+
5362
## CTP 3.1 June 2019
5463

5564
### Big data clusters
@@ -838,6 +847,34 @@ FROM sys.dm_exec_requests AS d
838847

839848
### <a id="ssas"></a>[!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] Analysis Services (SSAS)
840849

850+
#### <a name="online-attach-ctp32"></a>Online attach (CTP 3.2)
851+
852+
CTP 3.2 introduces the ability to attach a tabular model as an online operation. Online attach can be used for synchronization of read-only replicas in on-premises query scale out environments.To perform an online-attach operation, use the **AllowOverwrite** option of the Attach XMLA command.
853+
854+
```xmla
855+
<Attach xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
856+
<Folder>C:\Program Files\Microsoft SQL Server\MSAS15\OLAP\Data\AdventureWorks.0.db\</Folder>
857+
<AllowOverwrite>True</AllowOverwrite>
858+
</Attach>
859+
```
860+
861+
This operation may require *double the model memory* to keep the old version online while loading the new version.
862+
863+
A typical usage pattern could be as follows:
864+
865+
1. DB1 (version 1) is already attached on read-only server B.
866+
867+
2. DB1 (version 2) is processed on the write server A.
868+
869+
3. DB1 (version 2) is detached and placed on a location accessible to server B (either via a shared location, or using robocopy, etc.).
870+
871+
4. The <Attach> command with AllowOverwrite=True is executed on server B with the new location of DB1 (version 2).
872+
873+
Without this feature, admins are first required to detach the database and then attach the new version of the database. This leads to downtime when the database is unavailable to users, and queries against it will fail.
874+
875+
When this new flag is specified, version 1 of the database is deleted atomically within the same transaction with no downtime. However, it comes at the cost of having both databases loaded into memory simultaneously.
876+
877+
841878
#### <a name="many-to-many-ctp24"></a>Many-to-many relationships in tabular models (CTP 2.4)
842879

843880
This feature allows many-to-many relationships between tables where both columns are non-unique. A relationship can be defined between a dimension and fact table at a granularity higher than the key column of the dimension. This avoids having to normalize dimension tables and can improve the user experience because the resulting model has a smaller number of tables with logically grouped columns. For this CTP 2.4 release, many-to-many relationships are engine-only features.

0 commit comments

Comments
 (0)