Skip to main content

Notifications

Community site session details

Community site session details

Session Id : VYrKItg/JpRyxpl8Q8vAwr
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,061 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
    35,061 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
    35,061 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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 182 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 104

#3
stampcoin Profile Picture

stampcoin 80

Overall leaderboard
Loading started