fieldnamesHistogram

Count distinct values for each column

Obtain counts of the number of distinct values in each column. The output reports the column names and number of distinct values in each column.

Operator Usage in Easy Mode

  1. Click + on the parent node.
  2. Enter the Field Names Histogram operator in the search field and select the operator from the Results to open the operator form.
  3. In the Input Table drop-down, enter or select the table on which this operator runs to generate the distinct value counts.
  4. Click Run to view the result.
  5. Click Save to add the operator to the playbook.
  6. Click Cancel to discard the operator form.

Usage Details

fieldnamesHistogram(table)

-- Note: fieldnames those are used internally are omitted: lhub_id, lhub_page_num, lhub_ts, lhub_session

Example

Input

idcol1col2
1xa
2xb
3xa
fieldnamesHistogram(table)

Output

Fieldname DistinctCount
id3
col22
col11

Did this page help you?