Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Hachung Profile Picture
    7 on at
    Re: Update collection column by column

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

  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Update collection column by column

    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
    Re: Update collection column by column

    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 🙂

  • v-jefferni Profile Picture
    on at
    Re: Update collection column by column

    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,

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >