Skip to content

Commit

Permalink
Update measures.md
Browse files Browse the repository at this point in the history
One more correction. This was written as a count, but the metric is meant to be a sum of the transaction amount.
  • Loading branch information
DougsHub authored Aug 1, 2024
1 parent f14de56 commit fe2cbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/docs/build/measures.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fe2cbbb

Please sign in to comment.