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 / Update blank Column in...
Power Apps
Unanswered

Update blank Column in collection

(0) ShareShare
ReportReport
Posted on by 204

Hi Team,

 

I need to update a column within my collection with the next rows value.

 

Example 1st row need to update with 2nd rows values. 2nd row need to update with 3rd rows value and so on. Once we run out of rows the last row will not have a value as the next row wont be available.

 

I have tried a few ways although can't seem to get it working.

 

Any help is greatly appreciated.

 

Thanks

 

image.png

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @christian12 ,

     

    Please try this

    vxiaochenmsft_0-1696469270890.png

    ClearCollect(Col,{PREVIOUS_READING:"",READ:9234},{PREVIOUS_READING:"",READ:9158},{PREVIOUS_READING:"",READ:8975},{PREVIOUS_READING:"",READ:8558})

    vxiaochenmsft_1-1696469285481.png

    ForAll(Sequence(CountRows(Col)),If(Value<>CountRows(Col),Patch(Col,Index(Col,Value),{PREVIOUS_READING:Index(Col,Value+1).READ})))

    vxiaochenmsft_2-1696469304065.png

     

    Best Regards,

    Wearsky

  • christian12 Profile Picture
    204 on at

    Thank you very much. This works 🙂

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard