Forum Discussion

markikav1955's avatar
markikav1955
Brass Contributor
May 25, 2021

Calculate the number of times a choice variable is used

Hi 

I have a "Status" column that is manually updated by the users throughout the process as the process moves forward.

 One status = 'Rejected' and they want to be able use this status at any point in the process AND also track how many times this particular status was applied.

Is it possible to use a calculated column to track that (i.e. the number of times a particular choice item was saved) or is there another way to implement this.

 

So for example I am at "Status C" but the Team want to push back so select "Rejected".

The person responsible will pick up the item, fix it and move back to Status C.

Then it comes back and there is another issue the Team want to reject it again and also want to highlight the number of times now they have had to reject the item, in this case twice.

 

Thanks for any ideas! 

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    markikav1955 one way to do it would be to have a JSON-formatted button in your list that the project team would click when they want to reject an item.  You would also have a column in your list for the number of times each item was rejected. The button triggers a flow in Power Automate that would update the list item and increment the number of times rejected column for that item by 1. If you need specifics about any of this just shout.

     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User

    • markikav1955's avatar
      markikav1955
      Brass Contributor
      Hi Rob
      Yes specifics would be great.
      They are using an InfoPath form for data entry presently so could the button be presented on such form? If not its ok I can tell them if rejecting something just use the list view.
      Thanks for the help..
      • RobElliott's avatar
        RobElliott
        Silver Contributor

        markikav1955 InfoPath, if it even works with modern SharePoint lists, is no longer supported.

         

        Rob
        Los Gallardos
        Microsoft Power Automate Community Super User

Resources