on 08-14-2013 1:23 PM
Hello world!
I am creating a report that i need to pull in prior day the formula i have is
//BeforeReadingRecords;
if DayOfWeek (CurrentDate) = 2 then CurrentDate-3 else CurrentDate -1
The message I am getting is"
"The result of selection formual must be a boolean"
Can anyone help me with this
If you want the report to always 'Run' for prior day, then this formula needs to be written in the 'Record selection criteria' OR the 'select expert'.
To make it full proof, a 'holiday' also needs to be taken into consideration.So CurrentDate-3 should not be a holiday. In case, there is any DateTime table in the database then a hoilday column flag must be a part of it.
You need to include that condition in the formula.
-Prathamesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The formula should be:
if DayOfWeek (CurrentDate) = 2 then
{database_date_field} = CurrentDate-3
else {database_date_field} = CurrentDate -1
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.