Quantcast
Viewing all articles
Browse latest Browse all 2791

How to exclude hidden dates from datediff calculation

Hi Folks,I was trying different things but looks like I am stuck.Maybe somebody will be able to point me in right direction. I pull orders for period of time. Results are filtered in the group setting so I only see if customers that have 2 or more orders.I also want to see day difference between these orders for each customer(more then 2 orders) my expression for day difference is ;DateDiff("d",previous(Fields!orderdate.value),Fields!orderdate.value) but this also pulls date from previous customer for first order and looks like its pulling possible other hidden value Day Differencecustomer id 1Orderdate/ 12/09/2014 /Day Difference 735487Orderdate/ 18/11/2014 /Day Difference 67customer id 2Orderdate/ 01/09/2014 /Day Difference -42Orderdate/ 09/10/2014 /Day Difference 38should this calculation be in another sub group?

Viewing all articles
Browse latest Browse all 2791

Trending Articles