dbt - Packages and Reusability
This dbt model uses pivot macro:
The query fails with an error about missing aggregate. What is the fix?
{{ dbt_utils.pivot(
relation=ref('orders'),
column='status',
value='amount'
) }}The query fails with an error about missing aggregate. What is the fix?
