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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard