Color code records based on votes
Intermediate
Reports & Home pages
Brian Cafferelli (Technical Marketing Manager)


If you allow your users to vote on a record in an app (see link below), you can use those vote counts to automatically color your rows to match different sentiment score. For example: Above 10 votes and the record turns green. 


Relates to:
https://demo.quickbase.com/db/bpj7nsk6n?a=dr&rid=60&rl=n9h
1. Customize any report OR open your default report settings if you want it on all data in an app.

2. In the Color-Coding section of the report settings, copy and paste the formula on the right.

3. Update the color names to match colors you'd like to show in your report.

*** The sentimentScore here is based on the numeric value from two fields "Yes votes" and "No votes". Create this variable whoever you want. For example: A summary field with the sum of related issues.
var number sentimentScore = [Yes votes] - [No votes];

If(
$sentimentScore > 10,"MediumSeaGreen",
$sentimentScore > 5,"LimeGreen",
$sentimentScore > 0,"LightGreen",
$sentimentScore = 0,"",
$sentimentScore > -5,"LightSalmon",
$sentimentScore > -10,"LightCoral",
$sentimentScore < -20,"Crimson"
)


Comments or feedback on this tip?
Created on April 16, 2021 at  5:16 PM (EDT). Last updated by Sawyer, Lisa (deactivated) on April 19, 2021 at  5:54 PM (EDT). Owned by Sawyer, Lisa (deactivated).
Lisa Sawyer
Lisa Sawyer
Show fields from Show fields from Show fields from a related table
Report Name *
Description
Reports and Charts Panel
Each table has a panel listing its reports and charts, organized in groups.
Please wait while your new report is saved...
Field label
Column heading override
Justification
What does auto mean?
Fields in:

Fields to Extract:

Name for the new table:
Items in the new table are called:

When you bring additional fields into a conversion, Quickbase often finds inconsistencies. For example, say you're converting your Companies column into its own table. One company, Acme Corporation, has offices in New York, Dallas and Portland. So, when you add the City column to the conversion, Quickbase finds three different locations for Acme. A single value in the column you're converting can only match one value in any additional field. Quickbase needs you to clean up the extra cities before it can create your new table. To do so, you have one of two choices:

  • If you want to create three separate Acme records (Acme-New York, Acme-Dallas and Acme-Portland) click the Conform link at the top of the column.
  • If the dissimilar entries are mistakes (say Acme only has one office in New York and the other locations are data-entry errors) go back into your table and correct the inconsistencies—in this case, changing all locations to New York. Then try the conversion again.

Read more about converting a column into a table.