You should be able to define `custom dimensions` in the UI
See original GitHub issueDescription
I want to be able to create dimensions in the UI for things like bucketing groups. I don’t want to have to do this in dbt because I might not know the groups I want to bucket in, or I might be bucketing things for a one-off analysis (e.g. comparing groups of users that I’ve defined using some product usage dimensions).
this would be like table calculations or custom metrics (but more like table calculations…because you’d be able to write custom SQL).
It would return a dimension type. That means users would be able to group by this field.
E.g. I could create a dimension called age group
. I’d define it like this:
CASE
WHEN age > 20 THEN '20+'
WHEN age <= 20 THEN 'under 20'
This would return a field that I could use in my results table. It would act like a dimension (i.e. I could use it to group in charts).
^This would fix #2699
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top GitHub Comments
^If they’re actually different, then we should keep both! So ignore my comment above about removing
table calculations
then @PriPatel - I’ll just need to update the docs to explain this a bit better.@TuringLovesDeathMetal Yes! So instead of custom metrics in the sidebar, we have a Calculations section. From here you can add table calcs, see your custom metrics and the grouped dimensions? Maybe calculations is the wrong word.
If we do this, I suggest that metrics, dimensions and calculations are collapsible somehow!