Forum Discussion

grudginluv20's avatar
grudginluv20
Frequent Visitor
2 years ago
Solved

Filter Table, aggregate rows value based on key word in new table with new row name for the aggregat

See my table attached as image.

I have a table with two columns, Name, Age.

 

I want to create another table that has a column with name 'ad' and filter out all the names with 'ad' then aggregate (average) all the age value in another column in the new table. For example the names that start with 'ad' are aditya 23 and adorjan 27. I want a table with columns Name and Age to display row 'ad' and the average of the age in age as 25.

 

In the same table I want to filter the next row to be 'an' . these are Anish 26, ankit 19 as An with age as 22.5.

 

Lastly, i want to kmow if the technique adopted would work in the case of a direct query.

 

See table below.

 

I want my result to display as shown below:

 

3 Replies