web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Layered Process audit ...
Power Apps
Unanswered

Layered Process audit power app to automate rotating schedule and track completions

(1) ShareShare
ReportReport
Posted on by 2
Hello,
I have the excel formatted in a table showing for 2 weeks showing day of week, date, day shift A or B, and night shift C or D schedules.  The day and night shift schedules only rotate between A or B for day shift and C or D for night shift.  The rotation repeats every two weeks.  I want to app to keep the date continuing beyond the 2 weeks in the connected excel and I want the continuing the rotating 2-week shift schedule so that it will go forever.  I want the app to display one week at a time.  When user opens the app they can enter yes or no for the audit on that day and shift was completed.  Then their inputs will update the connected excel.  I took some training but did not learn how to use onstart.  I am stuck with a populated app that was automatically created with containers.  My training and GPT are guiding me to using galleries and forms.  Can you please help me figure out how to get started?  The instructions from GPT are only making many error when I enter the formula in the onstart property of the app. I never learned about editing app properties.  Maybe there is a better way.  Is there a different way to accomplish what we need?  Here is the excel view of what the table has for reference.   note - GPT advised me to have a column called AuditID to ensure each entry of the audit completion status by shift and date is a unique record.  I do not yet know how to get the unique Identifier to automatically generate.  
4/7/2025 Monday B C No   d78ac6e0-14c7-4b5e-8dab-ed8ec4801b41
4/8/2025 Tuesday A C No   19a5078f-6415-4145-8cb2-6487437868e5
4/9/2025 Wednesday A D No   c13d52c7-0bfb-4266-82e1-aca4750b8345
4/10/2025 Thursday B D No   c4af3aa5-6797-4305-9d99-d104ba535216
4/11/2025 Friday B C No   7a84183e-a496-4771-8e9c-7a09044a1f93
4/12/2025 Saturday A C No   1b68c98c-a573-46e9-8bf5-f76b6faae98a
4/13/2025 Sunday A C No   0fe144ad-5c07-4b8c-8175-074a3d45627c
4/14/2025 Monday A No   4a55d049-1005-4415-b900-704a2ad8f770
4/15/2025 Tuesday B No   93266bd9-9793-4b72-a735-0ead7dabb17e
4/16/2025 Wednesday B C No   4846976a-1aa6-48bb-8fda-c3a5d2ae673a
4/17/2025 Thursday A C No   d18ee78a-0093-4a1a-ad86-619a3c1da882
4/18/2025 Friday A D No   15729b0c-93bc-46ae-8daa-233abe24aad7
4/19/2025 Saturday B D No   e0448f63-ee0a-4233-b76d-08e4131a0edc
4/20/2025 Sunday B D No   10b41760-e8ac-45e7-b87a-752aa316a4aa
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,315 Super User 2025 Season 2 on at
     
    Its always good to put some mock ups of what you want, versus just like explaining it as stuff gets missed, also pretty please for my old eyes, hit a carriage return sometimes :-(.
     
     
  • Verified answer
    WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    Firstly, please note @Michael E. Gernaey's advice - I had to read it several times to fully grasp what you want there. An inital piece of advice - Excel is really the "data source of last resort" for Power Apps - it you have access to SharePoint Lists, I strongly suggest you switch your data to them.
     
    Now to your issue - you are wanting to update a roster list with a running standard fortnight. Assuming your "master" list RosterList has the field names (you did not post any headers, so I have assumed them) RosterDate, DayShift, NightShift and YesNo and your roster template TemplateList has the last three fields (you do not need a date), providing the last date in RosterList is a Sunday, then running this will incrementally update RosterList two weeks at a time, adding the data automatically.
    With(
       {
          _Data: RosterList,
          _Date: First(
             Sort(
                ShiftList,
                RosterDate,
                SortOrder.Descending
             )
          ).RosterDate
       },
       ForAll(
          Sequence(CountRows(_Data)) As _D,
          Patch(
             ShiftList,
             Defaults(ShiftList),
             {
                RosterDate: DateAdd(
                   _Date,
                   _D.Value,
                   TimeUnit.Days
                ),
                DayShift: Index(
                   _Data,
                   _D.Value
                ).DayShift,
                NightShift: Index(
                   _Data,
                   _D.Value
                ).NightShift,
                YesNo: Index(
                   _Data,
                   _D.Value
                ).YesNo
             }
          )
       )
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for or if you need further assistance.

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard