I have a panel with several tabs. One is All documents, another is Bills, etc. In the first panel, I have a portal that is filtered to display all documents, in the second panel a portal displays only documents that are bills, etc.
Above the panel, I have a field that displays the total number of documents in all portals. But I'd like that field to switch to the number of documents, say Bills, when I open the Bills panel.
Would anyone be able to explain how to do this?