Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

LQL Command

fieldnamesHistogram(table)

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

Example

Input

id

col1

col2

1

x

a

2

x

b

3

x

a

LQL command

fieldnamesHistogram(table)

Output

Fieldname

DistinctCount

id

3

col2

2

col1

1

  • No labels