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 / Calcular una columna a...
Power Apps
Answered

Calcular una columna a partir de los valores de otra columna, con automate

(0) ShareShare
ReportReport
Posted on by 43

Buenas tardes,

En una lista de Microsoft lists, tengo una columna denominada Valor, que por cada fila tiene varios números:

Fila 1: 24

Fila 2: 32

Fila 3: 36

 

y me gustaría calcular otra columna denominada Tendencia, que se fije en los valores de la columna Valor y si la secuencia de números es creciente, ponga ASCENDENTE; si es decreciente, ponga DESCENDENTE y si es igual ponga IGUAL: por ejemplo:

 

Valor Tendencia

Fila 1: 24

Fila 2: 32

Fila 3: 36 Ascendente

Fila 4: 20 Descendente

Fila 5: 10 Descendente

 

y así sucesivamente.... ¿Cómo podría hacerlo con Power Automate?

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @CarlotitaMrt ,

     

    I've made a test for your reference:

    1\My SP List

    vbofengmsft_0-1695090986608.png

    2\My flow

    vbofengmsft_1-1695091048987.png

    1)

    startswith(Value,'@{concat('Fila ',sub(int(split(split(triggerOutputs()?['body']['Value'],':')[0],' ')[1]),1),':')}' )

    2)

    if(
     greater( int(Split(outputs('Get_items')?['body/value'][0]['Value'],':')[1]),int(split(triggerOutputs()?['body']['Value'],':')[1])),
     concat(triggerOutputs()?['body']['Value'],' Descendente'),
     if(
     less( int(Split(outputs('Get_items')?['body/value'][0]['Value'],':')[1]),int(split(triggerOutputs()?['body']['Value'],':')[1])),
     concat(triggerOutputs()?['body']['Value'],' Ascendente'),
     triggerOutputs()?['body']['Value']
     )
    )

     

    Result

    vbofengmsft_2-1695091095368.png

     

    Best Regards,

    Bof

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard