Explore view broken for tables with identical dimension and metric names
See original GitHub issueExplore probably breaks when the metric has the same definition as a column!
To Reproduce
YAML example:
version: 2
models:
- name: stats_daily_projects
description: "Legacy basic daily metrics"
columns:
- name: "report_date"
- name: "project_id"
meta:
metrics:
projects_count:
type: "count_distinct"
- name: "total_requests"
meta:
metrics:
total_requests:
type: "sum"
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
What are Metrics and Dimensions in Google Analytics?
Understand the differences between dimensions and metrics in Google Analytics. Learn about Predefined and custom dimensions, custom metrics, ...
Read more >How would I build a table of all metrics and their dimensions in ...
My splunk server is receiving metrics from collectd. I want to build a table showing the metrics, dimensions, and values emitted for each...
Read more >Dimensions and metrics - Analytics Help
The tables in most Analytics reports organize dimension values into rows, and metrics into columns. For example, this table shows one dimension (City)...
Read more >What is the difference between dimensions and metrics?
The “Dimensions & Metrics Explorer” allows you to select a dimension/metric and see if the combination is going to work. If you cannot...
Read more >Dealing with dynamic dimensions for metrics data / analytics
The problem we see in this case, is that we would have plenty of NULLs in the MetricSeries table. It would ensure uniqueness...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TuringLovesDeathMetal I didn’t know about this ticket and I worked on a fix for this problem this week. https://github.com/lightdash/lightdash/pull/2355 We are now showing an error when dimensions and metrics have the same name. Let me know if we want to close this ticket or implement some of the other approaches. imo showing the error is the simplest implementation and a reasonable requirement.
Just a small note from my side: it is very easy to convert from measure to dimension and back in Tableau and I personally use this feature every day.
I believe it is very likely for a column that represents something like ID to be both a dimension and measure at the same time.
For example, if you deal with events then you are likely to track both “count of events per user(=dimension)” and “distinct count of users(=measure) with events per week”.