Toggle navigation
Home
▼ Details
Products and pricing
Chart gallery
User stories
Text analytics
CDC NAMCS Library
Blog
Tutorials
Contact
Sign in
Post Editor
← All help posts
View post
Save
In this article we show how elements get their data values and the different attributes you can edit to change an element's data source. ## Initial data values By default each element looks for a data column with a column name equal to the key of the element. For instance, element Q1 will get is data from data column Q1. <img src="/uploads/upload/image/5200/direct/1684256009314-1684256009314.png" alt="Bar chart displaying Q1 question about Condition X patients receiving gamma antagonist, showing distribution across ranges from 0 to 71-80, with highest percentage at 68.0% for 1 to 10 patients." style="width: 386px;" class="fr-fic fr-dib"> ## Field attribute You can specify a different data column using the field attribute. For instance element Q1a\_recoded's field is set as Q1a. When you clone an element the field is automatically set as the key of the original element. If the original element itself had a different field, then the clone would have the same field. <img src="/uploads/upload/image/5200/direct/1684258799525-1684258799525.png" alt="Protobi interface showing element cloning workflow with original Q1a question about Hanahaki Disease medications on left, recoded version Q1a_recoded on right displaying consolidated drug responses, and properties panel showing key='Q1a_recoded' and field='Q1a'." class="fr-fic fr-dib"> You can specify more than one data column for field. For instance, Q7 has its field attribute set to an array: Q7\_1, Q7\_2. This can be an effective, lightweight way to combine multiple data columns into a single element. <img src="/uploads/upload/image/5200/direct/1684261120450-1684261120450.png" alt="Protobi properties panel for element Q7 displaying field value 'Q7_1,Q7_2' alongside bar chart showing open-ended responses like 'A bit confusing for the elderly' (1.0%) and other patient feedback about medical device." style="width: 703px;" class="fr-fic fr-dib"> ## Element attribute You can specify another element as the data source using the element attribute. This takes the final post-calculation value from element as the starting value for another element. This can be an effective way to create hierarchical codes, using the coded values from one element as the input to a higher level code frame. <img src="/uploads/upload/image/5200/direct/1684262169794-1684262169794.png" alt="Protobi interface displaying two derived elements from Q7: Q7_recoded showing thematic codes like #EASY TO USE (42.0%) and #GOOD (19.0%), and Q7_recoded2 showing sentiment categories with #POSITIVE SENTIMENT (78.0%) and #NEGATIVE SENTIMENT (23.0%). Properties panel shows type='(default)' and element='Q7_recoded'." class="fr-fic fr-dib"> The values in Q7\_recoded2 are the already recoded values from Q7\_recoded. I then recoded the existing codeframe into broader sentiment categories. <img src="/uploads/upload/image/5200/direct/1684261769313-1684261769313.png" alt="Protobi code editor displaying two-column layout with Codes section listing #POSITIVE SENTIMENT (5), #COST EFFECTIVE, #DOSE INDICATOR, #EASY TO USE, #ECO-FRIENDLY, #GOOD under collapsible groups, and Uncoded values section showing (uncoded) 1 and #OTHER entries." style="width: 530px;" class="fr-fic fr-dib"> ## Transform attribute You can use the [Calculate/Transform dialog](/intermediate-editor/transform) to create a new value for parent elements. A parent element is a group of elements instead of a single element. <img src="/uploads/upload/image/5200/direct/1684263565972-1684263565972.png" alt="Protobi split view displaying Q7 parent question 'What are your initial thoughts about the device you have just reviewed?' with two child text boxes: Q7_1 (Text box 1) showing responses like 'good' (3.3%) and 'Good. Positive' (1.7%), and Q7_2 (Text box 2) showing responses like 'interesting, should be easy to use' (2.5%)." style="width: 739px;" class="fr-fic fr-dib"> For Q7 we can choose to transform the group to "Condense" which combines values from both child elements (Q7\_1, Q7\_2) into the parent's distribution. This is similar to setting field to an array of values except [heritable properties](https://help.protobi.com/intermediate-editor/edit-json#Heritable%20properties-38) apply to children but not fields. <img src="/uploads/upload/image/5200/direct/1684263818110-1684263818110.png" alt="Protobi Transform group dialog overlaying Q7 verbatim responses, with radio button selection for Condense ('squish' ---) option and green checkmark next to 'Hide children' checkbox, demonstrating how to aggregate child text box elements." style="width: 725px;" class="fr-fic fr-dib">
Publishing
Date
Status
Published
Draft
Slug
edit
Content
Thumbnail
Categories
Manage
New to Protobi?
Charts
Making Changes
Intermediate topics for editors
Frequently Asked Questions
SERMO Topics
Tutorial Pages
Internal Docs
Data Processing
Videos
Obsolete
GSG Admin
SERMO Admin
GSG Topics
How to...
Basics for viewers
Basics for editors
For project admins
Advanced topics
Assessments
Articles (in-progress)
New and updated articles
Process data in Protobi
superseded
Text open-end questions
Troubleshooting
Tracking studies
Organizing the view
API References
Tools
AI Database
Checking AI...
Convert to MD
Danger zone
Delete