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 / School student name ch...
Power Apps
Unanswered

School student name checking app problem

(0) ShareShare
ReportReport
Posted on by

Hello Everyone,

I have create an app by using Microsoft Power Apps. The detail of the apps is checking student who come to school in time, late, not coming. in output I want to have an excel file(file name is ...date). the file will be overwrite if check again in day. when tomorrow the file will have a next day name)

My Problem is how to collect the data [in time, late, not coming] with  and export to excel in One drive. Anyone have any idea of this? or if anyone have any idea you can leaving a comment too.
[I have attached an image]

Thank you very much.
Picture1qq.png

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @thanapong 
    Don't overwrite the values in your spreadsheet.  Instead, keep a log for all dates.

     

    Start by creating a table in Excel with all Student names

    FirstName LastName
    Joe Smith
    Jane Verdun
    Jackie Long


    Then create a collection in your app by putting this code in the OnSelect property of the button used to start a new survey

    ClearCollect(
     colAttendance, 
     AddColumns(
     excel_studentnames_table,
     "AttendanceDate", Today(),
     "Status":, ""
     )
    )

     

    Use the collection in the Items property of the gallery

    colAttendance

     

    Put some code like this in the OnSelect property of the status icon buttons

    Patch(colAttendance, ThisItem, {Status: "In-Time"})
    Patch(colAttendance, ThisItem, {Status: "Late"})
    Patch(colAttendance, ThisItem, {Status: "Not Coming"})

     

    Now go back to Excel and create another table to record attendance for each day.

     

    AttendanceDate FirstName LastName Status

     

    Finally, go back into your app and make a new button.  Use this code to add the daily attendance data to Excel

    Collect(excel_attendancelog_table, colAttendance);

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard