Kemidan2014
Board Regular
- Joined
- Apr 4, 2022
- Messages
- 229
- Office Version
- 365
- Platform
- Windows
I have 2 Query expressions to output a value to show how many days something is late or left until due.
When I run the query the DaysPlanOD number values are on the right side of their field
but DAYSActOD values are all on left side of the field.
Neither of these are fields in any tables just a math expression in the query itself.
I confirmed all fields involved are "Date/Time" structured but when I export the query to Excel DaysPlanOD is a Number but DaysActOD is NOT a number and this is the value I wanted to graph. Why would this be? I know I can manually go in and convert it to a number but the idea was to be hands free for the user so what do I need to change to get DaysActOD to be a number?
DaysPlanOD: IIf([ltcmPlanSubmitted] Is Null,Date()-[LTCMPlanDue],[LTCMPlanSubmitted]-[LTCMPlanDue])
DaysActOD: IIf([OriginalLTCMActualDueDate] Is Null,"",IIf([LTCMActualSubmitted] Is Null,Date()-[OriginalLTCMActualDueDate],[LTCMActualSubmitted]-[OriginalLTCMActualDueDate]))
When I run the query the DaysPlanOD number values are on the right side of their field
but DAYSActOD values are all on left side of the field.
Neither of these are fields in any tables just a math expression in the query itself.
I confirmed all fields involved are "Date/Time" structured but when I export the query to Excel DaysPlanOD is a Number but DaysActOD is NOT a number and this is the value I wanted to graph. Why would this be? I know I can manually go in and convert it to a number but the idea was to be hands free for the user so what do I need to change to get DaysActOD to be a number?
DaysPlanOD: IIf([ltcmPlanSubmitted] Is Null,Date()-[LTCMPlanDue],[LTCMPlanSubmitted]-[LTCMPlanDue])
DaysActOD: IIf([OriginalLTCMActualDueDate] Is Null,"",IIf([LTCMActualSubmitted] Is Null,Date()-[OriginalLTCMActualDueDate],[LTCMActualSubmitted]-[OriginalLTCMActualDueDate]))