Count elements, data columns and rows in a project

Protobi 'Project inventory' panel showing statistics: Rows:100, Columns:161, Total cells:16100, Blank cells:2%, All elements:1686, Unreachable elements:84%, Reachable elements breakdown: gallery(78), Screener(40), Report(24), Question_types(18), Banners(10), Section 1(34), Section 2(36), Section 3(47), pricing(4), training(4), Patient treatment(3), verbatims(12), supertable_group(26), Intro1234(13).

A project inventory element is a list of project details like the number of rows and columns in the data and the number of elements in the project setup.

The project inventory element is not static. It will reflect updates if you remove rows/columns or delete elements in the project. This list enables us to review the project details as needed. 

Practical use for project inventory

If your project has a longer than usual load time, we'll typically check the inventory for number of blank cells and unreachable elements. 

Typically trackers with many waves is the type of the project that will have a high percent of blank cells and unreachable elements. If this is the case, our team will programmatically identify any columns that are entirely populated with blank cells and all the unreachable elements and recommend them for deletion to optimize the project. 

The following table describes the project inventory element: 

Field Description
Rows The number of rows in the data file. For most surveys, this number also represents the sample size.
Columns The number of columns in the data file.
Total cells The number of data points in the file (# of rows x # of columns).
Blank cells The percent of total cells that are blank. Cells are typically blank when there is a skip pattern for the question.
All elements This number represents the total elements in the project. Charts and tables in Protobi are called elements, even the project inventory list itself is an element.
Unreachable elements The percent of elements that are stranded and not referenced in the current version of the project.

Often times, when there's a high percent of stranded elements its' because the survey has changed significantly over many waves and there are a significant number of questions that have been removed. Or there are many unused elements that were created in the data process that someone tried to delete by removing them from reference in fields.      

Unreachable elements are different than deleted elements because the unreachable elements still exist in the project, we simply have to reference the element to see it and typically the element will still have text titles and formats.      

Often times, if you have a high percent of stranded elements we will suggest you permanently delete them to optimize project performance.  | | Reachable elements | The number of project elements that are currently in use. These are listed out per top-level tab. |

Add the project inventory element

1. To add a new element, simply press on the plus sign on the top-level, or within any tab to create a new element.

Protobi gallery view showing Chart gallery section with 6 visualizations: Choropleth map of US states (N:100), Donut chart of specialty breakdown (60% General Practitioner, 40% Practice Nurse, N:100), Pie chart (40%/60% split), Bar chart of device thoughts by specialty, Stacked bar chart of Condition Y patients on therapies, Column chart of product therapy usage. Top toolbar shows Global, N=100, Clear, Set base, #/%, Format, [NA], Crosstab, Language, Scenario a, Export, Save buttons.

2. Give the new element any name that will indicate it's the inventory list

Protobi 'Enter new tab name' dialog box overlaying gallery view. Blue header with 'Enter new tab name' title, input field contains 'inventory', gray 'Cancel' button and blue 'Ok' button below. Background shows partial view of Chart gallery with Choropleth map, Donut chart, and Pie chart visible.

3. Once you create the new element, go to the JSON dialog to set chartType. The inventory chartType is not yet available in the chartType dialog.                                                               

                                                              

Protobi context menu on 'inventory' tab showing 14 options with keyboard shortcuts: Select, Copy as text/html, Copy as image, Chart type (E H), Round by (E B), Statistics (E S), Color (E O), Format (E F), Filters (E I), Compact to (E C), Transform (E T), Expand, Recode (E R), Edit properties (E M), Edit JSON (E J, highlighted in blue with tooltip 'Edit this element directly'). Background shows empty inventory panel with '+' add button.

4. On you're in the JSON dialog, set the chartType attribute to “Inventory” (case sensitive). If the chartType attribute doesn't exist, then simply add it using the same syntax that you see on line 3 in the below image. 

Press “Ok” on the JSON dialog to apply changes. 

Protobi JSON editor showing element properties for 'inventory' chart. Code displays properties including key:'inventory', chartType:'Inventory' (line 3 highlighted), color:'', displayKey:null, field:'', maxValue:null, roundby:null, title:'', type:'empty', chartOptions with percentFormat:'', width:400, margin:{}, powerpoint settings with exportAs:'', and footnote:{}.

5. The result is a detailed inventory element: 

Protobi inventory panel titled 'inventory' with blue dot. Statistics table showing: Rows:100, Columns:161, Total cells:16100, Blank cells:2%, All elements:1687, Unreachable elements:85%, Reachable elements section listing gallery(78), Screener(40), Report(24), Question_types(18), Banners(10), Section 1-3(34,36,47), pricing(4), training(4), Patient treatment(3), supertable_group(26), Intro1234(13).