Skip to content
Permalink
Browse files

19.2 zakhodyeva dashboards (#99)

* update expression syntax and export topics

* update

* update

* added Advanced Functions

* update

* minor updates

* update

* minor update-2
  • Loading branch information
ritazakhodyaeva authored and natakazakova committed Nov 14, 2019
1 parent b1ddf1f commit c971ce2c5994d7588aa75240d952881a861c8a14
@@ -69,11 +69,22 @@ _CriteriaOperator.Parse("[Region] != ?")_

## Functions

**Advanced Functions - Intermediate Aggregation Level**

| Function | Description | Example |
|---|---|---|
| aggr(SummaryExpression, Dimensions) | Uses the detail level specified by a predefined set of dimensions and a specified summary function to aggregate underlying data.| aggr(Sum([Sales]), [Category], [Product]) |
| w(WindowExpression, partitionByFunction, orderByFunction) | Calculates aggregated values with the specified window function for the window defined by the specified partitioning and ordering. | w(RankDense(Sum([ProductSales]), 'desc'), partitionBy([CategoryName]), orderBy()) |
| partitionBy(column1, column2, ...) | Specifies the columns by which the data rows are partitioned. The window function is applied to each partition separately. The _partitionBy_ function can be used only as a _w function_ argument. | partitionBy([Product])|
| orderBy(column1, column2, ...) | Specifies the logical order in which the window function calculation is performed on the rows in the window. The _orderBy_ function can be used only as a _w function_ argument.| orderBy(GetYear([Date]), desc(Sum([Sales]))) |
| asc(column) | Specifies that the values in the specified column are sorted in ascending order. This is the default sort order. The _asc_ function can be used only as a _w function_ argument. |asc(Sum([Sales]))|
| desc(column) | Specifies that the values in the specified column are sorted in descending order. The _desc_ function can be used only as a _w function_ argument. | desc(Sum([Sales]))|


**Aggregate Functions**

| Function | Description | Example |
|---|---|---|
| Aggr(SummaryExpression, Dimensions) | Aggregates underlying data using the detail level specified by a predefined set of dimensions and a specified summary function. | Aggr(Sum([Sales]), [Category], [Product]) |
| Avg(Value) | Returns the average of all the values in the expression. | Avg([Profit]) |
| Count() | Returns the number of values. | Count() |
| CountNotNull(Value) | Returns a number of non-null objects in a collection. | CountNotNull([Orders]) |
@@ -70,11 +70,21 @@ _CriteriaOperator.Parse("[Region] != ?")_

## Functions

**Advanced Functions - Intermediate Aggregation Level**

| Function | Description | Example |
|---|---|---|
| aggr(SummaryExpression, Dimensions) | Uses the detail level specified by a predefined set of dimensions and a specified summary function to aggregate underlying data.| aggr(Sum([Sales]), [Category], [Product]) |
| w(WindowExpression, partitionByFunction, orderByFunction) | Calculates aggregated values with the specified window function for the window defined by the specified partitioning and ordering. | w(RankDense(Sum([ProductSales]), 'desc'), partitionBy([CategoryName]), orderBy()) |
| partitionBy(column1, column2, ...) | Specifies the columns by which the data rows are partitioned. The window function is applied to each partition separately. The _partitionBy_ function can be used only as a _w function_ argument. | partitionBy([Product])|
| orderBy(column1, column2, ...) | Specifies the logical order in which the window function calculation is performed on the rows in the window. The _orderBy_ function can be used only as a _w function_ argument.| orderBy(GetYear([Date]), desc(Sum([Sales]))) |
| asc(column) | Specifies that the values in the specified column are sorted in ascending order. This is the default sort order. The _asc_ function can be used only as a _w function_ argument. |asc(Sum([Sales]))|
| desc(column) | Specifies that the values in the specified column are sorted in descending order. The _desc_ function can be used only as a _w function_ argument. | desc(Sum([Sales]))|

**Aggregate Functions**

| Function | Description | Example |
|---|---|---|
| Aggr(SummaryExpression, Dimensions) | Aggregates underlying data using the detail level specified by a predefined set of dimensions and a specified summary function. | Aggr(Sum([Sales]), [Category], [Product]) |
| Avg(Value) | Returns the average of all the values in the expression. | Avg([Profit]) |
| Count() | Returns the number of values. | Count() |
| CountNotNull(Value) | Returns a number of non-null objects in a collection. | CountNotNull([Orders]) |
@@ -18,4 +18,6 @@ Boolean expressions:

_"[Country] == 'USA'"_

For more information about syntax you can use in expressions, see [Expression Operators, Functions and Constants](expression-editor/expression-operators-functions-and-constants.md)

The Expression Editor supports numerous standard functions, allowing you to easily perform different string, date-time, logical and math operations over data. You can access the available functions by selecting the **Functions** category.

0 comments on commit c971ce2

Please sign in to comment.
You can’t perform that action at this time.