I have a table with 1 to n columns that each have values
The column names are “dynamic”
I want to create a calculated field where I define that only the columns that start with “Revenue” should be added up
See below
Depending on the time frame the user selected, I get different years so I can’t specify the actual column names in the calculated field
I would need something like
sum if column_names starts with “Profit”
sum if column_names starts with “Revenue”
Hi @mlinsin,
Have you tested out a calculated field for this yet, if so, could you share what you have so far?
Ideally for your scenario, you’re looking to add up the columns/fields that contain the same start? So for example, you’d like to sum ‘Revenue_2022’, ‘Revenue_2023’, ‘Revenue_2021’, etc.?
I’ve not created a calculated field yet.
But what I would like to do is add up the columns that start with “Revenue”, so regardless of the year.
Like Revenue*
Hi @mlinsin,
Unfortunately, there’s not really a way to to add up fields by ‘like’ text. To sum these, you’ll have to create a calc. field that recognizes each specific field that you’d like to combine.