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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Suggested Answer

.

(0) ShareShare
ReportReport
Posted on by 691
.
Categories:
I have the same question (0)
  • Suggested answer
    alex_goncalves89 Profile Picture
    5 on at
    Hi, I´m Alex.

    I understant that you need, one way that you can try to solve our problem do it one part at a time.

    1º - Create a collect with all items for 2 expressions the filter
     
    ClearCollect(
        col_all_items;
        Filter(
        'Affectations';
        'Date de retour prévisionnelle' >= Today() && 'Date de retour prévisionnelle' <= DateAdd(Today); 60; TimeUnit.Days
            )
        )
    Obs: For the test1, check the collect col_all_items to show the correct data
     
    2º - If the data are correct add another filter expressions
     
    ClearCollect(
        col_all_items;
        Filter(
        'Affectations';
        ('Date de retour prévisionnelle' >= Today() && 'Date de retour prévisionnelle' <= DateAdd(Today); 60; TimeUnit.Days) || 'Date de retour prévisionnelle' >= Today()
            )
        )
    Obs: For the test2, check the collect col_all_items to show the correct data

    3º - If the result are correct add another filter expressions
     
    ClearCollect(
        col_all_items;
        Filter(
        'Affectations';
        ('Date de retour prévisionnelle' >= Today() && 'Date de retour prévisionnelle' <= DateAdd(Today); 60; TimeUnit.Days) || 'Date de retour prévisionnelle' >= Today() || LookUp(your_table;Immatriculation.Id = Immatriculation.id && Kilométrage >= 2000; true)
            )
        )
     
    Obs: For the test3, check the collect col_all_items to show the correct data
     
    If the result of col_all_itens are correct, you can modify in your code. 
     
    Obs: I can´t understant your express
     
    LookUp(your_table;Immatriculation.Id = Immatriculation.id && Kilométrage >= 2000; true) but the result of lookup could be used to compare >=2000
     
    I hope that you solve your problem.
     
    Best regards
  • ronaldwalcott Profile Picture
    3,862 Moderator on at
    You probably need to remove the time component from your dates if you are comparing with Today.
    Also does your first condition check if the record is between today and 60 days from today or the record is before today? Is this what you mean to check?
    Wouldn't this condition actually select all records that are not greater than 60 days from today?  

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard