Skip to content

Commit

Permalink
Update order_items.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rpourzand authored Jul 18, 2024
1 parent 548e25d commit 7e7350b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions models/marts/customer360/order_items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ semantic_models:
expr: case when is_drink_item = 1 then product_price else 0 end
- name: median_revenue
description: The median revenue generated for each order item.
agg: median
agg: percentile
agg_params:
percentile: .5
use_approximate_percentile: True
expr: product_price

groups:
Expand Down Expand Up @@ -73,12 +76,11 @@ metrics:
type_params:
measure: order_cost
- name: median_revenue
description: The median revenue generated for each order item.
agg: percentile
agg_params:
percentile: .5
use_approximate_percentile: True
expr: product_price
description: The median revenue for each order item. Excludes tax.
type: simple
label: Median Revenue
type_params:
measure: median_revenue
- name: food_revenue
description: The revenue from food in each order
label: Food Revenue
Expand Down

0 comments on commit 7e7350b

Please sign in to comment.