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

Expression

1 Answer 184 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
aswin
Top achievements
Rank 1
aswin asked on 29 Nov 2019, 02:36 AM

Hi there,

I am in the midst of designing a line chart where i need to calculate the difference between some of the fields of  the consequent rows. 

For eg: The object data source have a field of datetime. I want to find the difference between the datetime of the first row data and the second row data.

More like , = First(Fields.DateTime) - Second(Fields.DateTime) . Where the second means the next row or second row.

I tried using PREVIOUS data function but it is not working in my telerik version. Unfortunately i cant find the correct expression to do this nor i can add a data field in the data level itself. Is there any expression to do this requirement  ? 

Thanks in advance

 

    

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 03 Dec 2019, 03:29 PM

Hello Aswin,

You may use the approach form the attached report where the difference of the dates is calculated as follows:

= Fields.Date - Previous("detail", Fields.Date)

Make sure that you use the Previous function with the right scope and expression.

Regards,
Neli
Progress Telerik

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 Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
aswin
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or