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 / Addcolumns logical pro...
Power Apps
Unanswered

Addcolumns logical problem

(0) ShareShare
ReportReport
Posted on by 648

Hello out there 
"I have two databases today. One is named "APLplaceringar" and the other is called "APLloggain" where the user logs in.
I want the timestamp of the login to be stored in my Collection as both a timestamp and a date.
I've built it, but currently, I'm only getting the timestamp and date when the record in "APLplaceringar" was created, and that's not what I'm looking for.
I want to see when the actual login occurred.
I conducted a walk-around, went through the entire setup, and built a lookup in my Collection.
In the gallery, I've asked when this login happened for the student via a lookup. The problem is I can't sort my list by the latest date or the latest login time."

"How can I create an additional column that takes the value from the timestamp from the APLloggain and add it as a new column without conflicting with the 'created' field in the original table?"


My Collection 

;;ClearCollect( InloggadeAPLplaceringar;
AddColumns( 
SortByColumns(
Filter(
APLplaceringar;
Enhetsnr = ddkst.Text && Epost_Elev in APLloggain.email
);
"Created";
SortOrder.Descending
);

"APLeleven";
First(
SortByColumns(
Filter(
APLplaceringar;
Enhetsnr = ddkst.Text && Epost_Elev in APLloggain.email
);
"Created";
SortOrder.Descending
)
).Elev


)
)

My Galleri walkaround 

LookUp(
LastN(
Filter(studentloggain; email = ThisItem.Epost_Elev);
1
);
true
).Skapad


Categories:

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard