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 / 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

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard