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 / Update collection colu...
Power Apps
Answered

Update collection column by column

(0) ShareShare
ReportReport
Posted on by 7

Hello, 

Please help me i have totally no idea about below things...

I want to make collection updated column by column

ex) Collect column A * 20 times -> collect column B * 20 time n the same order as column A

more information, please see picture below.

 

Hachung_0-1657599298369.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Hachung ,

     

    Could you please share more details about your scenario? I still don't know the specific meaning of your description. You can provide a pre-post example of the collection so that we can understand it correctly.

     

    Best regards,

  • Hachung Profile Picture
    7 on at

    Thank you for help me..

     

    I want to make Asset barcode scanning tool.

     

    Each asset has Two barcodes on 1 box (Asset Number, Serial Number)

    but when asset income big quantity(ex. 1,000EA), it's more easy to scanning barcode by vertical. as below picture.

     

    I failed to coding to Collect by row(Column1 -> Column2 = Collect -> Next Row) but i don't have any solution for collecting by Column1 -> Column2. 

     

    Hachung_0-1657866687346.png

    Thank you so much 🙂

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Hachung ,

     

    It's not possible to collect scanned values into different columns with one scan button. But if you have two buttons, you can use one to scan asset numbers and the other to scan serial numbers in to two collections. In the end, use a complete confirming button to combine the two collections together.

     

    So, asset no. scanner OnScan:

     

    Collect(colAssetNo, {AssetNo: Self.Value})

     

    serial scanner OnScan:

     

    Collect(colSerial, {Serial: Self.Value})

     

    confirm button OnSelect:

     

    ClearCollect(counter,0);
    Clear(Combined);
    ForAll(colAssetNo,
    Collect(counter,Last(counter).Value+1);
    Collect(colAssets,{
    AssetNo:Last(FirstN(colAssetNo,Last(counter).Value)).AssetNo,
    Serial:Last(FirstN(colSerial,Last(counter).Value)).Serial
    }));
    Clear(colAssetNo);Clear(colSerial)

     

     

    Best regards, 

  • Hachung Profile Picture
    7 on at

    Thank you for your kind advice! It will be perfect solution for me! 

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 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard