This is a migrated thread and some comments may be shown as answers.

How do I specify a group as the scope for the RunningValue function?

3 Answers 535 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wayde
Top achievements
Rank 1
Wayde asked on 13 Mar 2012, 01:03 AM
I'm attempting to use the RunningValue function that accepts a System.String for the "scope" parameter.  The documentation says it can refer to a group but when I assign it the name of a group I get the following exception:

"Invalid Scope: 'DivisionId'"

... where "DivisionId" is the name of the group and also the name of the field the group is grouped by.

Help!

Thanks - wg

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 13 Mar 2012, 09:03 AM
Hi Wayde,

You also need to make sure the provided scope is valid for that context. For more information see Expression scope help article.

Greetings,
Steve
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
Wayde
Top achievements
Rank 1
answered on 13 Mar 2012, 08:45 PM
Let me ask this a different way ...

Is there something like a SUM DISTINCT ... that acts like the "CountDistinct" function except that it accepts something like a scope (by which to determine distinctness) and a field (to sum)?

Thanks
0
IvanY
Telerik team
answered on 19 Mar 2012, 12:15 PM
Hello Wayde,

There is no such thing as SUM DISTINCT in Telerik Reporting. However you can define your own user functions and aggregate functions through which you can achieve exactly what you want. Please check our User Functions and User Aggregate Functions help articles for more information.

Kind regards,
IvanY
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
Tags
General Discussions
Asked by
Wayde
Top achievements
Rank 1
Answers by
Steve
Telerik team
Wayde
Top achievements
Rank 1
IvanY
Telerik team
Share this question
or