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 / Group by min date (loo...
Power Apps
Answered

Group by min date (looking at sp date column)

(0) ShareShare
ReportReport
Posted on by 678

I have a SPO List that contains a date field. The format is mm/dd/yyyy - it displays as a date, power apps seems to recognize it as a date Note: this is a date column in SPO and not a date/time column. I then want to do a group by...to get the minimum date by email address...The date field is called Occ In Date.

ClearCollect(HotelSummary,AddColumns(GroupBy(Hotels,"Email","GroupedItems"),"MinCheckIn",Min(GroupedItems,'Occ In Date'))
);

The response I get for the "min" value is 1620100800000 when the date field was 5/6/2021. 
This could be milliseconds or something??? 
How can I get that min calculation to appear as a recognizable date?




 

 

 

Categories:
  • Verified answer
    sasrsc Profile Picture
    678 on at

    Text(ThisItem.a,"[$-en-US]mm/dd/yyyy")

    That displays it in the correct format... as 5/4/21.

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard