Skip to content

Get FieldRoleType in DataTable Column  #460

Description

@Tubulidentata

It would be very helpful, to get the information if a column is a measure or a dimension, as these are often visualized differently. (e.g. a measure as length of a bar, and a dimension as category label).

There are currently only two ways to achieve this:

  1. Differentiate between them using the dataType in the Column Object and using numeric Columns as measures and string ones as dimensions (This fails on numeric dimensions like years and months)
  2. By querying the data sources and search through their fields, find the matching one for the column and read its FieldRoleType. This works mostly, but it requires another async call which hurts performance, and I'm not sure if this works in more complex scenarios with multiple datasources.

It would be really convenient to have the info directly along with the data in the Column Object.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions