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 / Track Status update
Power Apps
Answered

Track Status update

(0) ShareShare
ReportReport
Posted on by 215

Hello experts,

I am building a Visitor Automation App. I am stuck with the status tracking part.

There are 3 departments. Requester submit the request and it goes through the approval process.  I need to check multiple condition to show the Status of the request. If the visit is required for that department and if the manager has approved, then show the status as Approved, which is simple. But if there are multiple department visits required, even if there is one approval pending, I want to show the status as "Pending Approval". I have attached the images to explain the requirement better. 

Scenarios shown in Img3, I need to update the Status in PowerApps (img2) based on the TRUE and FALSE of other columns. 

 

 

Thanks in advance!

Img1.PNG
img3.PNG
img2.PNG
Categories:
I have the same question (0)
  • Verified answer
    Gochix Profile Picture
    1,937 Moderator on at

    Hi @PowerUser19 ,

     

    You could count the number of occasions where "TRUE" is less that "Approved" in the specific columns.

    Try:

    "Status: "&
    If(
     CountRows(Filter(YourSPList,RequestID = Dropdown.Selected.Value && 'Dept1 visit Required' = "true"))
     +CountRows(Filter(YourSPList,RequestID = Dropdown.Selected.Value && 'Dept2 visit Required' = "true"))
     +CountRows(Filter(YourSPList,RequestID = Dropdown.Selected.Value && 'Dept3 visit Required' = "true"))
     >
     CountRows(Filter(YourSPList,RequestID = Dropdown.Selected.Value && 'Dept 1 Mgr Approved' = "Approved"))
     +CountRows(Filter(YourSPList,RequestID = Dropdown.Selected.Value && 'Dept 2 Mgr Approved' = "Approved"))
     +CountRows(Filter(YourSPList,RequestID = Dropdown.Selected.Value && 'Dept 3 Mgr Approved' = "Approved"))
    ,
    "Pending Approval",
    "Approved")

     
    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • PowerUser19 Profile Picture
    215 on at

    Hi @Gochix ,

     

    Thank you so much for your response. The code works but I get delegation warning. Is there any way to fix that? 

     

  • Gochix Profile Picture
    1,937 Moderator on at

    Hi @PowerUser19 ,

     

    Where exactly is the delegation warning?

    Does it comes from :

    RequestID = Dropdown.Selected.Value

    ?


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • PowerUser19 Profile Picture
    215 on at

    Hi @Gochix ,

    I think it is in both. Please find the attached error msg with code.

    Img1.PNG
  • Gochix Profile Picture
    1,937 Moderator on at

    If you really need to fix the delegation warning then you could collect a new 'In App' collection and use it instead of the connector. This should fix the issue. 

    However if you planning not to have a large data set then it shouldn't be a problem to use a current formula if it works.


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard