Hi @Alexander_Gaeta, welcome to the community.
Unfortunately, there is no way to access the column name of the row in an automated way. However, if you’re not going to change the name of the column then you should be able to make a Summary column like this:
List(
If(
thisRow.Apple="✓", "Apple", ""
),
If(
thisRow.Banana="✓", "Banana", ""
),
If(
thisRow.Pear="✓", "Pear" ,""
)
).Filter(CurrentValue).BulletedList()
Giving you this result:
Here's an explanation of what the formula is doing:
This creates a list of whatever the If
functions return:
List(
If(...),
If(...),
If(...)
)
This returns “Apple” if thisRow
has a checkmark in the column Apple, otherwise it returns Blank
If(
thisRow.Apple="✓", "Apple", ""
)
Filtering for CurrentValue
returns all the parts of a table that aren’t blank. It’s equivalent to Filter(CurrentValue.isNotBlank())
. Then the resulting list (now without blanks) is converted to a bulleted list.
List(
...
).Filter(CurrentValue).BulletedList()
That said, I don’t recommend this approach. Instead, create a column called Selected Fruit (or the like) and make it look up from the Fruit table. Make sure that “Allow Multiple Selections” is turned On.
Now you can select multiple different fruit types without having to create new special columns for each one, and your summary column will also always be updated without having to change the formula for each new fruit you add:
The formula for the Summary 2 column is:
thisRow.[Selected Fruit].FormulaMap(CurrentValue.ToText()).BulletedList()
This formula just converts each fruit into a text value with FormulaMap(CurrentValue.ToText())
(otherwise it looks like ) and then turns it into a bulleted list.