From 303c7c1c24d10be5a9408a6e5848f7ab305ae681 Mon Sep 17 00:00:00 2001 From: Doug McFarlane <71958132+DougsHub@users.noreply.github.com> Date: Thu, 1 Aug 2024 04:38:15 -0400 Subject: [PATCH] Update measures.md (#5875) One more correction. This was written as a count, but the metric is meant to be a sum of the transaction amount. ## What are you changing in this pull request and why? ## Checklist - [ ] Review the [Content style guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md) so my content adheres to these guidelines. - [ ] For [docs versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#about-versioning), review how to [version a whole page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version) and [version a block of content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content). - [ ] Add a checklist item for anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch." Adding or removing pages (delete if not applicable): - [ ] Add/remove page in `website/sidebars.js` - [ ] Provide a unique filename for new pages - [ ] Add an entry for deleted pages in `website/vercel.json` - [ ] Run link testing locally with `npm run build` to update the links that point to deleted pages --- website/docs/docs/build/measures.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/build/measures.md b/website/docs/docs/build/measures.md index 05456c72eb2..9458487e8d4 100644 --- a/website/docs/docs/build/measures.md +++ b/website/docs/docs/build/measures.md @@ -147,7 +147,7 @@ semantic_models: agg: average - name: transactions_amount_usd_valid # Notice here how we use expr to compute the aggregation based on a condition description: The total USD value of valid transactions only - expr: CASE WHEN is_valid = True then 1 else 0 end + expr: CASE WHEN is_valid = True then transaction_amount_usd else 0 end agg: sum - name: transactions description: The average value of transactions.