Forum Discussion
ttoastt
6 years agoRegular Visitor
Issues when evaluating records for three conditions, include a date element
I've got a data set showing equipment serial number and a variety of statuses as a user works to update the software. Starts with consent, then download pending, download started, download finishes a...
- Anonymous6 years ago
Here's the right solution:
Download_Expire = var __currentStatus = MV_RT_FL_MONTHLY[Flash Status Description] var __serialNumber = MV_RT_FL_MONTHLY[EQUIPMENT_SERIAL_NUMBER] var __currentDate = MV_RT_FL_MONTHLY[Flash_timestamp] return IF ( __currentStatus = "DOWNLOAD_FAILED" && NOT ISEMPTY( FILTER ( MV_RT_FL_MONTHLY, MV_RT_FL_MONTHLY[EQUIPMENT_SERIAL_NUMBER] = __serialNumber && MV_RT_FL_MONTHLY[Flash Status Description] = "DOWNLOAD_PENDING" && MV_RT_FL_MONTHLY[FLASH_TIMESTAMP] = __currentDate - 7 ) ), "DOWNLOAD EXPIRED" )Best
D
- Anonymous6 years agoIf timestamp is a datetime and not a date, then it certainly causes issues. If you have a datetime, you have to do it in a different way. You have to have a column with just dates, no time involved.
Then the formula will work.
Best
D
Anonymous
6 years agoNot applicable
If timestamp is a datetime and not a date, then it certainly causes issues. If you have a datetime, you have to do it in a different way. You have to have a column with just dates, no time involved.
Then the formula will work.
Best
D
Then the formula will work.
Best
D
ttoastt
6 years agoRegular Visitor
Thank you, this set me down the correct path. Retyped it and was prompted to specify .[Date] after the date column and that is yielding the desired output. Thank you!