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

differentiating two date values with condition

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

app.png
I have the same question (0)
  • v-yujincui-msft Profile Picture
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard