Skip to main content

Using Variables in Components, to what extent?

An idea

What if you create a component that is COMPLETELY based off of variables? The source is selectable and depending on which source your selecting, this filters the filters on which columns are measures are available.

selector_source.yaml -> outputs 'source_name' to all components

source_name -> selector_dimensions.yaml -> outputs dimensions -> all components source_name -> selector_measure.yaml -> outputs measures -> all components

source_name and dimension -> selector_group_by -> outputs a groupby for components defaults to ""

source_name, measure x, measure_0 x, measure_1 y, measure_0 y, measure_1