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 / Sign process percentage
Power Apps
Answered

Sign process percentage

(1) ShareShare
ReportReport
Posted on by 80

Goodmorning! I've got a order process in PowerApps. In the order process we've got a table as shown below.

JoostCuppes_0-1693978943891.png

I want to show a percentage of how far this order is signed. In this case there are 6 people who have to sign, but it can also be just 2, 3, etc... Max is 7. What could be a good code for this? It's in a gallery right now and can the field "thisitem.SSP Required", etc.. can be used. I do think i am able to figure something out, but that would be a really ugly piece of code.

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @JoostCuppes 

    Try like this:

    // Initialize a variable to store the count of approvals and required signatures
    ClearCollect(colApprovalCounts,
     {Signer:"SSP", Approved:ThisItem.'SSP Approved', Required:ThisItem.'SSP Required'},
     {Signer:"SM", Approved:ThisItem.'SM Approved', Required:ThisItem.'SM Required'},
     {Signer:"CPO", Approved:ThisItem.'CPO Approved', Required:ThisItem.'CPO Required'},
     {Signer:"CEO", Approved:ThisItem.'CEO Approved', Required:ThisItem.'CEO Required'},
     {Signer:"SCM", Approved:ThisItem.'SCM Approved', Required:ThisItem.'SCM Required'},
     {Signer:"COO", Approved:ThisItem.'COO Approved', Required:ThisItem.'COO Required'},
     {Signer:"CFO/CEO", Approved:ThisItem.'CFO/CEO Approved', Required:ThisItem.'CFO/CEO Required'}
    )
    
    // Calculate the percentage
    Set(gloApprovalPercentage,
     RoundDown(
     (CountRows(Filter(colApprovalCounts, Approved = true)) / CountRows(Filter(colApprovalCounts, Required = true))) * 100,
     0)
    )
    

    See if something like this may work for you @JoostCuppes 

  • Joost Cuppes Profile Picture
    80 on at

    HI @poweractivate will try to implement this. But where should i put it? As this is in a gallery?

  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @JoostCuppes You can try to simply put it in the Text property of a Label control that is in the Gallery, and if you do, you can try the version below for that formula:

     

    With({
     colApprovalCounts: [
     {Signer:"SSP", Approved:ThisItem.'SSP Approved', Required:ThisItem.'SSP Required'},
     {Signer:"SM", Approved:ThisItem.'SM Approved', Required:ThisItem.'SM Required'},
     {Signer:"CPO", Approved:ThisItem.'CPO Approved', Required:ThisItem.'CPO Required'},
     {Signer:"CEO", Approved:ThisItem.'CEO Approved', Required:ThisItem.'CEO Required'},
     {Signer:"SCM", Approved:ThisItem.'SCM Approved', Required:ThisItem.'SCM Required'},
     {Signer:"COO", Approved:ThisItem.'COO Approved', Required:ThisItem.'COO Required'},
     {Signer:"CFO/CEO", Approved:ThisItem.'CFO/CEO Approved', Required:ThisItem.'CFO/CEO Required'}
     ]
    },
     RoundDown(
     (CountRows(Filter(colApprovalCounts, Approved = true)) / CountRows(Filter(colApprovalCounts, Required = true))) * 100,
     0) & "%"
    )
    

     

    See if this may help @JoostCuppes 

  • Joost Cuppes Profile Picture
    80 on at

    Hi @poweractivate Did someone already called you a hero today? If not, you are my hero today! Thanks man! 

    JoostCuppes_0-1693980875443.png

    Added a progress bar as well. Looking nice now!  (still have to make the order block better, but this is already really nice! 

    Thanks.

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard