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 / Get datetime column va...
Power Apps
Unanswered

Get datetime column value from a group by

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a gallery list listing employees and their ID. I used a Groupby function to group the multiple entries since there is more than one entry per employee in the excel data source (temporary).

This is the following code from my groupby and filter

 

here is a snippet from my code building the gallery

 

 

GroupBy(
 Filter(
 Sort(
 Source;
 SnapshotDate;
 Descending
 );
 ManagerID = IDtextbox
 );
 "EmployeeID";
 "Data"
)

 

 

However, when I try to add a datetime element in my gallery (using thisitem.data). It gives me an error because I have to send it a text value. 

Example: ThisItem.Data.Snapshotdate returns me an error.

 

Is there a method of formating that could allow me to call the snapshot date through the groupby?

Categories:
I have the same question (0)
  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    To send it a text value, just wrap it within the Text() function.

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    Subscribe to my YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg

  • Fnaud Profile Picture
    on at

    Hi @phipps0218 ,

    thank you for the suggestion but unfortunately it keeps giving me an error even if I try to do your method

    text(thisitem.data.snapshotdate)

    it tells me that a text element is expected in the calling of "thisitem"

  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    Can you please show me the error?

  • Fnaud Profile Picture
    on at

    I ended up bypassing this method by creating an ID column using a datediff to create unique entries, which are accepted in "thisitem.data"

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 395

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 287 Super User 2026 Season 1

Last 30 days Overall leaderboard