Skip to content

Commit

Permalink
Update expressions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cohenscottr committed Mar 18, 2024
1 parent c90f75b commit 6294dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/build/dashboards/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Some metrics may be at a different level of granularity where a sum across the m
To create the correct value, you can utilize DuckDB's unnest functionality. In the example below, you would be pulling a single value of `daily_budget` based on `campaign_id` to get the sum of budget for the day by campaign ids.

```
(select sum(a.val) as value from (select unnest(list(distinct {key: concat(campaign_id), val: daily_budget })) a ))
(select sum(a.val) as value from (select unnest(list(distinct {key: campaign_id, val: daily_budget })) a ))
```
:::note
Expand Down

0 comments on commit 6294dc2

Please sign in to comment.