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

Using Scopes

1 Answer 218 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aleks
Top achievements
Rank 1
Aleks asked on 02 May 2011, 10:35 PM

I'm trying to use Exec:
=Sum(Fields.Total)/Exec('rptName', Sum(Fields.Total))

to calculate %.

But I'm getting 0.

Order and Sample are the result of the grouping

If I use only  = Exec('rptName', Sum(Fields.Total)) I'm getting 64.

Can someone help me, please...

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 May 2011, 11:44 AM
Hi Aleks,

The division of two integers is also an int and therefore only the part before the delimiter is taken into account. Your expression should work with float values in order to return float values e.g.:

=CDbl(Sum(Fields.Total))/CDbl(Exec('rptName', Sum(Fields.Total)))

All the best,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Aleks
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or