Pivot tables- create count based summary reports
Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Pivot tables- create count based summary reports

pivot_table_hb (1080p).mp4

Introduction

Pivot tables are primarily used to create count-based reports and summarize data. They are also used to aggregate data based on specific categories you define for rows and columns.

e.g.,

  1. Monthly specimen collection summary by protocol and type

  2. Count of specimens by specimen type and disease

  3. Count of participants by ethnicity and race

Note:

Non-Super Admins cannot run Pivot Tables containing PHI fields. Refer to this wiki for details

Example: Count of participants by race and ethnicity per protocol

  1. Create a ‘New Query’.

  2. Expand the ‘Participants’ section to add a filter as:

    1. Participant >> Participant ID Exists

image-20260615-051725.png

 

  1. Click on ‘View Records’ and select the columns as required.
    E.g., Collection Protocol→ Short title,
    Participant → Participant ID, Race, Ethnicity.
    Note: Since you need the count of participants, you will need to include a unique field for all participants, like 'Participant ID' or 'eMPI'.

image-20260615-051759.png
  1. Click on 'Next' --> Select the field based on which the count should be calculated, i.e., Participant ID.

image-20260615-051837.png
  1. Click on 'Next'--> Select the report type 'Pivot table' and set the required rows and columns.

image-20260615-051916.png
  1. Click 'Done' to view the report.

image-20260615-052023.png
  1. Save the query.

 

Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com