Run a custom query on Bubble DB

I have created table containing ~40 fields. In the RepeatingGroup, (or DataGrid) which I have created to display records, I would like to display the count of fields which are empty or blank for each record.

Ex: Each row in RepeatingGroup should show if for that record 20 (or 30 or more) fields are blank/empty.

I really don’t know how to make it possible in Bubble.