hi , I'm having trouble again with a different formula now
LookUp('week list','startdate (calc)'=DateAdd(Today(),1-Weekday(Today(),StartOfWeek.Monday),Days),week)
I want to have it so it gets the week number ( which is listed in the column "week" in the SP list " Week List"
the "start date (calc)" column does include the time as i read this can cause issues
there are no errors ,it just simply provides no output
Solved! Go to Solution.
If the column you are comparing has a time, then you will need to provide the exact match to the time as well.
You current formula is focused on the date without time.
If you want to compare equal types on both side of the equals, then consider this formula:
LookUp(
'week list',
Text('startdate (calc)', ShortDate) = Text(DateAdd(Today(),1-Weekday(Today(),StartOfWeek.Monday),Days), ShortDate),
week
)
This will convert both sides to a shortdate text format and then they will compare properly.
Note: this is not a delegable operation and will produce a warning as such. If record limits are not a concern, you can ignore it.
I hope this is helpful for you.
Is your column 'startdate (calc)' an actually calculated column or a date/time column?
If the column you are comparing has a time, then you will need to provide the exact match to the time as well.
You current formula is focused on the date without time.
If you want to compare equal types on both side of the equals, then consider this formula:
LookUp(
'week list',
Text('startdate (calc)', ShortDate) = Text(DateAdd(Today(),1-Weekday(Today(),StartOfWeek.Monday),Days), ShortDate),
week
)
This will convert both sides to a shortdate text format and then they will compare properly.
Note: this is not a delegable operation and will produce a warning as such. If record limits are not a concern, you can ignore it.
I hope this is helpful for you.
that worked , along with the fact that i actually had the wrong start date in my share point list so of course it never was going to match
User | Count |
---|---|
194 | |
123 | |
86 | |
48 | |
40 |
User | Count |
---|---|
277 | |
165 | |
139 | |
80 | |
76 |