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 Platform Community / Forums / Power Apps / differentiating two da...
Power Apps
Unanswered

differentiating two date values with condition

(0) ShareShare
ReportReport
Posted on by

I want to differentiate two date values with email filtering on my Power App.

The result i'm looking for is to count all overdue jobs for assigned person in SharePoint list by each person, and then summarize all overdue work in Share Point list. But i don't know how to solve it.

 

Please help me if know how to solve it.

I have the same question (0)
  • v-yujincui-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Do you want to count all overdue jobs for everyone and save the results in another List?

     

    Best Regards,

    Charlie Choi

  • v-yujincui-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    I have made a test for your reference.

     

    1. Here is my SharePoint List.

    vyujincuimsft_0-1652237557027.png

    2. Add a Button Control and apply the following formula on its OnSelect property as:

    ForAll(
     Distinct(datasource,'Assign to'.Email),
     Collect(collectionname,
     {Assignto: Result,
     Num: CountRows(Filter(datasource,'Assign to'.Email = Result,DateDiff('Date closed',Deadline) < 0))}
     )
    );
    Set(variablename,Sum(collectionname,Num))

    2. Add a Data Table Control and set its Items property to collection name.

    3. Add a Label Control and set its Text property to variable name.

    vyujincuimsft_1-1652238034856.png

     

     

    Best Regards,

    Charlie Choi

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    I have solved in little bit complex way and it worked. Which i created 2 calculated column on my sharepoint list to fill the datediff with value "overdue" and "not overdue" and then i tried to calculate the datediff by filtering overdue status column. i'll try this code on my app it looks simple. Thank you

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard