How to gather statistics across tables
Asked by Andrey Derenchenko:

Hi all. We have a migration project. We migrate knowledge across N applications. For each application, we've created a page with a checklist. The checklists are tables. Each table contains two columns and 50 rows. The row is a "key - value" pair with an appropriate application parameter. During a knowledge transfer, our teams have to fill those tables. We have data for the appropriate parameter if we have any data in the 'value' column. The KPI for the application is a percentage of filled rows. I have 2 questions:

1. How to calculate / get the number of rows where the 'value' is not empty? Having this we divide the number by 50 and we get the needed percentage.

2. If the first task has a solution, the second task is gathering those percentages across all application pages in one table.

Of course, using Excel/Google Sheets would simplify the task a lot. But I want to check Confluence-based possible solutions first.

I assume it's all about macros. I'd be grateful for relevant examples or guidance on what to read. Thank you in advance.


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@Andrey Derenchenko](/t5/user/viewprofilepage/user-id/5074063),  

It is not possible to implement your case natively, so you'll need to browse the Atlassian Marketplace for some 3rd party apps.  

For example, our company develops the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) app that will be handy for the case.

<br />

You'll be able to count empty and not empty cells using the [Table Transformer](https://docs.stiltsoft.com/tfac/cloud/how-to-use-table-transformer-macro-42241552.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro. After that you'll be able to show the required percentage.  

The [Table Excerpt/Table Excerpt Include](https://docs.stiltsoft.com/tfac/cloud/how-to-use-table-excerpt-and-table-excerpt-include-macros-42241623.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macros will help you to combine the result tables with percentage in an aggregated report on the master page.  

If you are not familiar with the app, please book a [live demo](https://calendly.com/tablefilter/live-demo?month=2023-11): will be able to discuss your case and possible solutions more thoroughly.


author: Patricia Modispacher _appanvil_
body: Hi [@Andrey Dresvyannikov](/t5/user/viewprofilepage/user-id/2295432),

interesting and complex use case! But it sounds like [**Inline Table Editing**](https://marketplace.atlassian.com/apps/1217271/inline-table-editing?hosting=datacenter&tab=overview) for Confluence could solve that. With this solution, you can work in Confluence like in excel, even in view mode, and handle complex calculations. A list about all the built in formula and functions can be found in the [**documentation**](https://actonic.atlassian.net/wiki/spaces/ITE/pages/6138429489/Basic+formulas+and+calculations).


Tags: cloud

confluence-cloud

filter

table