How to Align Multiple Metrics with Different Time Dimensions in Looker?

Hi 👋,

I need help defining a time dimension for a Looker chart where different metrics have different date fields.

Context

I am working with opportunities data, and I want to track three key metrics by week and by country:

  • opportunities_created → based on created_at date
  • opportunities_proposal_sent → based on proposal_sent_date
  • opportunities_won → based on won_date

Each metric is based on a different date field, but I want them to appear on the same chart to compare weekly performance.

Input Data Example

opportunity_idcountrycreated_atproposal_sent_datewon_date
101US2024-03-012024-03-052024-03-10
102US2024-03-022024-03-06NULL
103UK2024-03-042024-03-082024-03-12
104UK2024-03-07NULLNULL

Expected Output (Aggregated Weekly View by Country)

  
MetricW1W2 W3
opportunities_created101512
opportunities_proposal_sent81210
opportunities_won576

Each metric should be counted based on its respective date field within the corresponding week.

Challenge

How do I define the weekly time dimension (W1, W2, W3) when each metric uses a different date field? I want to see those matrics on one table chart.

Solved Solved
0 1 96
1 ACCEPTED SOLUTION

I don't know if this possible with just that table. You need single unifying date dimension to get the week and group by to get those metrics. I would prob redesign that table so it's one action per row and the date of that action. If you had that, you could group by the action(eg created, proposal sent, won) and pivot by action date and a count measure

View solution in original post

1 REPLY 1

I don't know if this possible with just that table. You need single unifying date dimension to get the week and group by to get those metrics. I would prob redesign that table so it's one action per row and the date of that action. If you had that, you could group by the action(eg created, proposal sent, won) and pivot by action date and a count measure

Top Labels in this Space
Top Solution Authors