cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DBJ
Helper I
Helper I

Split filtered SP list column results

I'm filtering the results of a dropdown column (Column2) based on a selected result option from a dropdown column (Column1) but I need to split the comma delimited results from Column2 into individual options. Is this possible? 

 

Distinct(Filter('SP List', Column1=Dropdown1.Selected.Result), Column2)

 

I tried Distinct(Filter('SP List', Column1=Dropdown1.Selected.Result), Split(Column2, ", ")) but no luck

 

Thanks for any help

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @DBJ ,

Do you want to split the filtered items in column2 based on "," and get no-repeated data?
If so, please notice the syntax of Split function:

Split(text,sepreator)

The first parameter should be text, not fieldname or table.

So you need to firstly use Concat function to convert the filtered table to text, then use Split() function to split. At last use Disinct() function to get no-repeated data.

Try this:

Distinct(
          Split(
                 Concat(
                        Filter('SP List', Column1=Dropdown1.Selected.Result),
                        Column2&","
                        ),
                  ","
               ),
          "Result"
)

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yutliu-msft
Community Support
Community Support

Hi @DBJ ,

Do you want to split the filtered items in column2 based on "," and get no-repeated data?
If so, please notice the syntax of Split function:

Split(text,sepreator)

The first parameter should be text, not fieldname or table.

So you need to firstly use Concat function to convert the filtered table to text, then use Split() function to split. At last use Disinct() function to get no-repeated data.

Try this:

Distinct(
          Split(
                 Concat(
                        Filter('SP List', Column1=Dropdown1.Selected.Result),
                        Column2&","
                        ),
                  ","
               ),
          "Result"
)

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yutliu-msft 

 

Thanks for your help,  I had to remove quotes around Result in Distinct clause to get expected results.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,091)