You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reporting-for-desktop/articles/report-designer/report-designer-for-winforms/use-expressions/functions-in-expressions.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ This topic lists the functions that you can use in an [expression](expressions-o
40
40
| DateDiffSecond(startDate, endDate) | Returns the number of second boundaries between two non-nullable dates. | DateDiffSecond([StartTime], Now()) |
41
41
| DateDiffTick(startDate, endDate) | Returns the number of tick boundaries between two non-nullable dates. | DateDiffTick([StartTime], Now()) |
42
42
| DateDiffYear(startDate, endDate) | Returns the number of year boundaries between two non-nullable dates. | DateDiffYear([StartTime], Now()) |
43
+
| DateTimeFromParts(Year, Month, Day, Hour, Minute, Second, Millisecond) | Returns a date value constructed from the specified Year, Month, Day, Hour, Minute, Second, and Millisecond. | DateTimeFromParts(2018, 5, 5, 20) |
43
44
| GetDate(DateTime) | Extracts a date from the defined DateTime. | GetDate([OrderDateTime]) |
44
45
| GetDay(DateTime) | Extracts a day from the defined DateTime. | GetDay([OrderDate]) |
45
46
| GetDayOfWeek(DateTime) | Extracts a day of the week from the defined DateTime. | GetDayOfWeek([OrderDate]) |
@@ -306,6 +307,15 @@ Use the following functions when you [calculate a summary](../shape-report-data/
306
307
sumAvg([UnitPrice])
307
308
```
308
309
310
+
* sumCarryoverSum(Expression)
311
+
312
+
Calculates the carried forward and brought forward totals.
313
+
314
+
```
315
+
sumCarryoverSum([Amount])
316
+
```
317
+
318
+
309
319
* sumCount(Expression)
310
320
Counts the number of values within the specified summary region (group, page, or report). In a simple scenario, you may not pass a parameter.
Copy file name to clipboardExpand all lines: reporting-for-desktop/articles/report-designer/report-designer-for-wpf/creating-reports/scripting.md
+3-77Lines changed: 3 additions & 77 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ legacyId: 116357
7
7
This document describes the basic principles of _scripting_, which can be performed by handling the events of a report, and its [bands](../report-elements/report-bands.md) and [controls](../report-elements/report-controls.md).
8
8
9
9
This documents consists of the following sections.
10
-
*[Scripting Overview](#overview)
11
-
*[Maintaining Scripts](#maintain)
12
-
*[Example: Custom Summary](#example)
10
+
-[Scripting](#scripting)
11
+
-[Scripting Overview](#scripting-overview)
12
+
-[Maintaining Scripts](#maintaining-scripts)
13
13
14
14
<aname="overview"/>
15
15
@@ -40,77 +40,3 @@ After the event is specified, a code template is automatically generated in the
40
40
To check for errors in the report's script, click the **Validate** button. The validation result is displayed in the errors panel at the bottom of the Script Editor. Double-click the error item in the panel's list to go to the corresponding line of code. If all scripts are valid, the errors panel is empty.
This example demonstrates how to display the total number of product unit packs in a group.
48
-
49
-
To perform this, execute steps similar to the ones described in [Calculating Summaries](shaping-data/calculating-summaries.md), except that for the summary field, you should set the **Function** property to **Custom**.
0 commit comments