These two are the same formula:
But one for the second one I had deleted the contents of the Counts table and then regenerated it. You can see it still returns the correct result within the formula editor, but not in the doc
Regenerating the data doesn’t work. Neither does manually adding a new row