cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sasrsc
Resolver II
Resolver II

Group by min date (looking at sp date column)

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?




 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
sasrsc
Resolver II
Resolver II

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

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

View solution in original post

1 REPLY 1
sasrsc
Resolver II
Resolver II

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

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

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,200)