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 / Filter barcode data, S...
Power Apps
Answered

Filter barcode data, Split the code into multiple fields

(0) ShareShare
ReportReport
Posted on by 13

Hi,

I have tried to get a barcode to be split into different input fields. I use the Barcode Scanner function in PowerApps. I have a code that looks like the following 1234567, Testing product1, product data. Then I want to get separation on the first (,) in one input field and the rest in another.

So
Article number:
1234567
Item name:
Testing product1, product data

 

Is there anyone who can help me with this?

Categories:
  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @Erlin93 ,

    First one (use your value)

    First(
     Split(
     YourValueHere,
     ","
     )
    ).Result

    Second one

    Right(
     YourValueHere,
     Len(YourValueHere) - Find(
     ",",
     YourValueHere
     ) - 1
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Erlin93 Profile Picture
    13 on at

    Hi @WarrenBelz 
    I get a error when i use your solution. You might know what the problem is?

    Erlin93_0-1673705736715.png

     



  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @Erlin93 ,

    You need this

    First(
     Split(
     BarcodeScanner1.Value,
     ","
     )
    ).Result

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Erlin93 Profile Picture
    13 on at

    Hi @WarrenBelz,

    Same problem as before...

    Erlin93_0-1673778074122.png

     



  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @Erlin93 ,

    The code is correct as the Default of a Text box - what is the error ?

    WarrenBelz_0-1673783199583.png

     

  • Erlin93 Profile Picture
    13 on at

    @WarrenBelz 
    OK.

    Here is the error message i get..

    Unexpected sign. The formula contains Error where ParenClose is expected.

    This error occurs if, for example, a formula contains {Val@ 7} instead of {Val: 7}. When specifying a variable, the syntax requires a colon o instead of an at symbol.

  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @Erlin93 ,

    Where are you based ? If you are using European syntax, you may need 

    First(
     Split(
     BarcodeScanner1.Value;
     ","
     )
    ).Result

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Erlin93 Profile Picture
    13 on at

    @WarrenBelz 

    Now it works with the first part of the code. Can you please help me with the next part as well?

  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @Erlin93 ,

    As per my post, just ; instead of , - you will need to get used to this as European syntax has ; where standard is , and ;; where standard is ; - there are a few other things on numeric separators as well , instead of .

    Right(
     BarcodeScanner1.Value;
     Len(BarcodeScanner1.Value) - Find(
     ",";
     BarcodeScanner1.Value
     ) - 1
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Erlin93 Profile Picture
    13 on at

    @WarrenBelz 
    Now it works!! Thanks so much for your help!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard