Skip to content

Commit

Permalink
new metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Jstein77 committed Aug 1, 2024
1 parent 49160f0 commit 6739bac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@
"[jinja-sql]": {
"editor.defaultFormatter": "dorzey.vscode-sqlfluff",
"editor.formatOnSave": false
}
},
"editor.acceptSuggestionOnEnter": true,
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
},
"editor.quickSuggestionsDelay": 300
}
5 changes: 5 additions & 0 deletions models/marts/customer360/order_items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ semantic_models:
description: The revenue generated for each order item. Revenue is calculated as a sum of revenue associated with each product in an order.
agg: sum
expr: product_price
- name: average_revenue
description: The revenue generated for each order item. Revenue is calculated as a sum of revenue associated with each product in an order.
agg: average
expr: product_price
create_metric: true
- name: food_revenue
description: The revenue generated for each order item. Revenue is calculated as a sum of revenue associated with each product in an order.
agg: sum
Expand Down

0 comments on commit 6739bac

Please sign in to comment.