web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Answered

date lookup issue

(0) ShareShare
ReportReport
Posted on by 78

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

Categories:
I have the same question (0)
  • rebeccas Profile Picture
    2,591 on at

    Is your column 'startdate (calc)' an actually calculated column or a date/time column?

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @daniels471 

    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.

  • daniels471 Profile Picture
    78 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard