Hello all.
I need to build a report that allows the user to input a date range and obtain stats for that range.
The bit I am having difficulty with is that the display needs to break down the stats by month (and probably year - although the sponsor has not specified this, as yet), according to the date range input. So the display will read something like;
<Dim1> <Dim2> <Dim3> <Month1> <Month2> <Month3> etc.
I need to use the Actual Values if present, if these values are not present, then I need to use the Estimated Values.
I have created a variable 'Usage per Month' which goes;
=If IsNull(<Actual>) Then RunningCount(<Estimated>;FormatDate(ToDate(Truncate(<EntryDate>, "MM"),"MM"),"MMM YYYY") Else RunningCount(<Actual>;FormatDate(ToDate(Truncate(<EntryDate>,"MM"), "MM"), "MMM YYYY")
but I am getting a syntax error.
Is what I am after possible with BO and if so, which functions should I be using (i.e. where am I going wrong)?
Cheers
Jembo
I need to build a report that allows the user to input a date range and obtain stats for that range.
The bit I am having difficulty with is that the display needs to break down the stats by month (and probably year - although the sponsor has not specified this, as yet), according to the date range input. So the display will read something like;
<Dim1> <Dim2> <Dim3> <Month1> <Month2> <Month3> etc.
I need to use the Actual Values if present, if these values are not present, then I need to use the Estimated Values.
I have created a variable 'Usage per Month' which goes;
=If IsNull(<Actual>) Then RunningCount(<Estimated>;FormatDate(ToDate(Truncate(<EntryDate>, "MM"),"MM"),"MMM YYYY") Else RunningCount(<Actual>;FormatDate(ToDate(Truncate(<EntryDate>,"MM"), "MM"), "MMM YYYY")
but I am getting a syntax error.
Is what I am after possible with BO and if so, which functions should I be using (i.e. where am I going wrong)?
Cheers
Jembo