Share via

Calcular una columna a partir de los valores previos de otra columna

MARTIN VALERO Carlota - Contractor 100 Reputation points
2023-09-18T12:44:40.4866667+00:00
En una lista de Microsoft lists, tengo una columna denominada Valor, que por cada fila tiene varios números, me gustaría crear una columna calculada llamada Valor1 en la que aparezca el número anterior de Valor1, por ejemplo:

          Valor    Valor1

Fila 1:    24 

Fila 2:    32        24 

Fila 3:    36        32 

Fila 4:    20        36 

Fila 5:    10        20

si no se puede hacer con una columna calculada, como podría generarla a partir de un flujo de power automate?

Responder 0 personas tienen la misma pregunta Editar Suscribirse
 
Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-09-19T02:05:12.9866667+00:00

    Hi @MARTIN VALERO Carlota - Contractor

    Do you want to get the value of the previous record and fill it in Value1 every time a new record is added?

    Before enabling this stream you must ensure that the first item has been created

    Here is a test for your reference:

    User's image

    add(triggerOutputs()?['body/ID'],-1)
    

    User's image

    Here is test result:

    User's image

    User's image

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Feng

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.