web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 9H3PEUiYRkr7EtFXCjL/JG
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
    35,237 Super User 2025 Season 2 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
    35,237 Super User 2025 Season 2 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
    35,237 Super User 2025 Season 2 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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete