Forum Discussion

daved2424's avatar
daved2424
Copper Contributor
Jan 30, 2023

Creating comma deliniated list from filtered rows in a table

Hello

 

I have a table where column 1 is an index number. I then filter this table based on the values in another column.

 

I want to be able to return all the values from the index column into a comma deliniated string. I am using the following to do this:

 

 

=TEXTJOIN(",",TRUE,Table1[Index])

 

 

The problem with this is it returns the values for all rows. Which function can I use to amend it so that it only returns values for the visible filtered rows?

 

Many thanks in advance

    • daved2424's avatar
      daved2424
      Copper Contributor
      Unfortunately not as that requires hard-coding the filter value into the formula. I need it to dynamically update as filters are applied.
      • OliverScheurich's avatar
        OliverScheurich
        Gold Contributor

        daved2424 

        =TEXTJOIN(",",TRUE,FILTER(Tabelle2[index],Tabelle2[value]>17))

        If you work with a dynamic table you can reference dynamic columns instead of hard-coded ranges.

         

Resources