Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

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.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: differentiating two date values with condition

    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

  • v-yujincui-msft Profile Picture
    on at
    Re: differentiating two date values with condition

    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

  • v-yujincui-msft Profile Picture
    on at
    Re: differentiating two date values with condition

    Hi @Anonymous ,

     

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

     

    Best Regards,

    Charlie Choi

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 63 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard