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
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,847 Super User 2025 Season 2 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

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 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard