Counting the number of rows in another table (COUNTIF)

Hello there

I have twk tables (TASKS, and COMMENTS)

They share a key (which is ID).

I want to have a custom column counting the number of comments for every task row.

For now I only manage to count all rows from COMMENTS, i miss the IF ID.

Is that doable ?


Hey @webloomers!

If you'd like to add a filter you can try something like {{ => === }}. The currentRow value will automatically be interpolated with the data of whatever row it's being interpreted in, that'll let you compare its id value to the ones in the comments table.

Can you let me know if that works?

Thanks it works like a charm !