question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Explore view broken for tables with identical dimension and metric names

See original GitHub issue

Explore 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"

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ZeRegocommented, Jun 8, 2022

@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.

1reaction
nkotlyarovcommented, Jan 26, 2022

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”.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found