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.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,999)