I have two formulas
Moving on from my previous post regarding comparing fields I now have a different issue with the same report
My data look like this
GROUP: Client_ref: 12345
GROUP: Group start_date: 15/01/2014 end_date: 12/09/2015
review_ref Client_ref review_date days_diff_groupdate daysdiff_review_date what i want to present
1 100 18/01/2014 3 -432 3
2 100 27/04/2014 102 99 99
3 100 05/06/2014 141 39 39
4 100 11/09/2014 239 98 98
5 100 21/09/2014 249 10 10
GROUP: Client ref: 66554
GROUP: Group start_date: 22/08/2013 end_date: 21/02/2014
review_ref Client_ref review_date days_diff_groupdate daysdiff_review_date what i want to present
6 124 14/09/2013 23 -372 23
7 124 18/12/2013 118 95 118
GROUP: Client ref: 81213
GROUP: Group start_date: 04/11/2013 end_date: 21/05/2014
review_ref Client_ref review_date days_diff_groupdate daysdiff_review_date what i want to present
8 125 11/11/2013 7 -37 7
9 125 01/01/2014 58 51 51
10 125 16/02/2014 104 46 46
I have written two formulas to compare dates, the first formula (days_diff_groupdate) returns the number of days between group start date and the review date.
This formula then also returns the days between all the review dates, I am only only interested in the first value and want to make the remaining values null
The 2nd formula (daysdiff_review_date) returns the number of days between all the review dates. Again this report also returns a number for the first review date, but this is wrong as the calculation is looking to a review date from the previous client.
I want to write a third formula that will merge the two formulas so that only first line is used and the remaining answers are from the 2nd formula.
Any ideas?