Skip to main content

Notifications

Community site session details

Community site session details

Session Id : jYe5wPywklHrg5KA3O0bD6
Power Apps - Building Power Apps
Unanswered

Extract unique amounts from a string of text

Like (0) ShareShare
ReportReport
Posted on 18 May 2023 10:46:27 by

Good day everyone,

I have a string of unique amount of values saved in SharePoint which are separated by a comma. I would like to get the values between each comma and place them in a separate text. 

This is in one DataCard and I would like 5000 on the first line, 1990 in the second line and so on 

sophiatheresa74_1-1684406670892.png

 

Any assistance would be greatly appreciated. 

 

 

  • timl Profile Picture
    34,939 Super User 2025 Season 1 on 18 May 2023 at 11:36:51
    Re: Extract unique amounts from a string of text

    If you want each value in a separate control, you'd need to add a gallery control onto your card rather than separate labels. Once you add the gallery, you would then set the Items property of the gallery like so:

    Split(Parent.Default,
     ","
    )

     

  • CU13081633-2 Profile Picture
    on 18 May 2023 at 11:30:49
    Re: Extract unique amounts from a string of text

    This works but I wanted each value in separate text:

    and not all the time it would be 4 values, it would have 6 or 3 values

    sophiatheresa74_0-1684409393818.png

     

     

  • timl Profile Picture
    34,939 Super User 2025 Season 1 on 18 May 2023 at 11:23:16
    Re: Extract unique amounts from a string of text

    If you want to set the text on a label, this is what you would use:

    Concat(
     Split(
     Parent.Default,
     ","
     ),
     Value & Char(10)
    )
  • CU13081633-2 Profile Picture
    on 18 May 2023 at 11:15:00
    Re: Extract unique amounts from a string of text

    I tried using this with the Parent.Default but it is giving an error.

    These values are not always going the be the same amount.

    sophiatheresa74_0-1684408474817.png

     

  • timl Profile Picture
    34,939 Super User 2025 Season 1 on 18 May 2023 at 11:08:23
    Re: Extract unique amounts from a string of text

    @sophiatheresa74 

    The Split function will separate those values into lines. The following will return a table:

    Split("5000,1990,2000,588,3000",
     ","
    )

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started