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 / How to get last and no...
Power Apps
Answered

How to get last and not empty date

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello all,

 

I'm working an app which monitoring project status and i create all the logic for logging and calculations using power apps and power automate, all are works fine. I'm using SharePoint List as data source.

 

Once the user has entered the start date, they should not be able to enter the date again.

If there is a date, i'm going to disable date picker.

 

I used this;

 

 

 

DateValue(Last(Filter(Saving, Title = Gallery1.Selected.Title)).Date, "tr-TR")

 

 

 

but when users enter a new data entered without date, it returns blank.

I edit it and try with this but didn't worked. 

 

 

 

DateValue(Last(Filter(Saving, (Title = Gallery1.Selected.Title && Not(IsBlank(Gallery1.Selected.Date))))).Date, "tr-TR")

 

 

 

Is there any ideas?

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Maybe you could try:

    DateValue(Last(Filter(Saving, Title = Gallery1.Selected.Title && !(IsBlank(Date)))).Date, "tr-TR")

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @v-bofeng-msft ;

     

    It worked! Thank you.

    But now delegation warning started. Is there any way to avoid this?

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Maybe you could try:

    DateValue(Last(Filter(Saving, Title = Gallery1.Selected.Title && IsBlank(Date)<>Blank())).Date, "tr-TR")

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-bofeng-msft ;

     

    Still same. This part highlighted in app;

     

    && IsBlank(Date)<>

     

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Sorry, it should be:

    DateValue(
     Last(
     Filter(Saving, Title = Gallery1.Selected.Title && Date<>Blank())
     ).Date, 
    "tr-TR")
    

     

    Best Regards,

    Bof 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    that's brilliant! Thanks a lot.

     

    BR,

    Hüseyin

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard