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 / what does Wstuff do?
Power Apps
Answered

what does Wstuff do?

(0) ShareShare
ReportReport
Posted on by 242

 

I have a great script that gives me the last row created per user in a sharepoint list. 

The list contains data from just one day.

 

Filter(
 Ungroup(
 AddColumns(
 GroupBy(
 Sort(
 Filter(
 AttendanceList,
 Office = Vestiging,
 StartsWith(
 userName,
 FilterTextBox.Text
 )
 ),
 userName,
 Ascending
 ),
 "userName",
 "Office"
 "GroupedColumn"
 ) As wStuff,
 "LastCreated",
 Max(
 wStuff.GroupedColumn,
 Created
 )
 ),
 "GroupedColumn"
 ),
 Created = LastCreated
, Check_x0020_in_x005c_out = Radio1.Selected.Value)

 

 

Now i want the same script working on a Sharepoint list with data from 3 months, for last created row per user per day per office.

But I cant figure out what "as wstuff" does. 

 

Challenge: 

I have a list that contains data from different users check in\out for 3 months. They get paid when working from home and get travel expenses when working at the office.

Because they can check in or out several times a day per office,
I want users to be able to check there last check in\out (Created) per day, per office.

 

 

Yvonzim_0-1634284836378.png

 

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Yvonzim ,

     

    If we use a table in the formula, we usually use ThisRecord.ColumnName to get a value of a column.

    For example:

    ForAll(your table, {Value:ThisRecord.ColumnA})

     

    As is used to rename the current item of the table.  It is used to replace ThisRecord.

    ForAll(your table As wstuff, {Value:wstuff.ColumnA})

     

    So, if you have two tables with the same column names, it is difficult to distinguish which table column is called using ThisRecord .

     

    Best Regards,

    Wearsky

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard