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

Grand Total Line Calculation

1 Answer 274 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Benson
Top achievements
Rank 1
Benson asked on 06 Sep 2007, 04:44 AM
Support,

My report look like this:

           amt1         amt2         percentage (amt2-amt1)/amt1*100%
-----------------------------------------------
           100           150                 50
           200           400               100
----------------------------------------------
total    300            550               83.33

I know how to calculate the total of amt1 (=sum(amt1)), total of amt2 (=sum(amt2)).
Question:
 1. How to calculate total line "percentage"?

Benson.

1 Answer, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 06 Sep 2007, 08:25 AM
Hello Benson,

You can try with this expression:

= ((Sum(amt2) - Sum(amt1)) / Sum(amt1)) * 100

If you wish to have the result formatted in percentage (%) you can set the TextBox.Format to {0:P2}.

The upcoming Q2 version will provide both format and expression builders that will make the tasks on formatting and writing expression easier.
 

Sincerely yours,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Benson
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Share this question
or