Omniscope Custom Views › venndiagram

Venn Diagram

How three conditions overlap, with the count in every region, and a click to select exactly the records in one of them.

Diagram

Open the demo in Omniscope Download demo.ioz Sample data: customers.csv Source on GitHub

How three conditions overlap, with the count in every region, and a click to select exactly the records in one of them.

Live: 600 invented customers in three sets: more than 10 orders, an average basket above 80, and an order in the last 30 days. Click a region to select exactly the customers in it; hover for its share.

The problem it solves

Questions about customers, patients or products often combine three conditions: who orders often, spends a lot, and has ordered recently? Which of the frequent buyers have gone quiet? A table of filters answers one combination at a time; a Venn diagram shows all seven at once, and how big each is.

The Venn Diagram view defines each set as a range of a numeric field, counts the records in each region and outside all three, and lets you click a region to select its records. In the illustrative customers above (invented figures), 84 customers order often and have ordered in the last 30 days but have small baskets, and 20 order often with big baskets but have not ordered recently: a list worth a call.

Selecting one region: frequent buyers who are recently active, without big baskets
Selecting one region: frequent buyers who are recently active, without big baskets

Where it earns its place

Omniscope's filters can select any one of these combinations, but they do not show how the sets overlap or how big each part is. This view does both, and works as a filter for the rest of the report.

The examples below are illustrative.

Team Set A Set B Set C
Marketing Orders above 10 Average basket above 80 Last order within 30 days
Clinical research Age above 65 BMI above 30 Systolic blood pressure above 140
Product Sales above target Margin above 40% Returns above 5%
HR Tenure above 5 years Rating above 4 Training hours at most 10

How to use it in Omniscope

  1. Bring the data into a workflow, one record per customer (or patient, or product), and connect it to a Report block.
  2. Add a view and choose Venn Diagram.
  3. For each set, choose a numeric field and type a Min, a Max or both, and optionally a name.
  4. Add the views that should follow the selection, for example a table of customers.
  5. Click a region to select its records; click again or click empty space to clear.

Why do this in Omniscope

Data and options

One record per item with three numeric fields.

Option What it does
Set A/B/C field The numeric field that defines the set
Set A/B/C min The set holds values above this (empty: no lower limit)
Set A/B/C max The set holds values up to and including this (empty: no upper limit)
Set A/B/C name The name shown; empty shows the field name

Tested

Mock harness: the seven region counts, the remainder and the total checked against the source data, also after filtering to one region; selecting a region (the rule is "in these sets, not in the others"), clicking it again and clicking empty space to clear; the tooltip's count and share; a set with no limits; a 240 by 170 pane; 10,000 records (the regions add up to the total); empty data and unset fields.

Reference

Fields it reads

NameTypeWhat it does
Set A fieldFIELDNumeric field that defines set A, with its Min and Max
Set B fieldFIELDNumeric field that defines set B, with its Min and Max
Set C fieldFIELDNumeric field that defines set C, with its Min and Max

Options

NameTypeWhat it does
Set A maxTEXTSet A holds the records whose value is at most this number. Leave empty for no upper limit
Set A minTEXTSet A holds the records whose value is above this number (not equal to it). Leave empty for no lower limit
Set B maxTEXTSet B holds the records whose value is at most this number. Leave empty for no upper limit
Set B minTEXTSet B holds the records whose value is above this number (not equal to it). Leave empty for no lower limit
Set C maxTEXTSet C holds the records whose value is at most this number. Leave empty for no upper limit
Set C minTEXTSet C holds the records whose value is above this number (not equal to it). Leave empty for no lower limit
Set A nameTEXTName shown for set A. If empty, the field name is shown
Set B nameTEXTName shown for set B. If empty, the field name is shown
Set C nameTEXTName shown for set C. If empty, the field name is shown

Third-party libraries