You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% set payment_methods = ['credit_card', 'coupon', 'bank_transfer', 'gift_card'] %}
...
{% for payment_method in payment_methods -%}
sum(case when payment_method ='{{ payment_method }}' then amount else 0 end) as {{ payment_method }}_amount,
{% endfor -%}
...
glue:
payment_methods<- c('credit_card', 'coupon', 'bank_transfer', 'gift_card')
glue("sum(case when payment_method = '{payment_methods}' then amount else 0 end as {payment_methods}_amount,")
The text was updated successfully, but these errors were encountered:
Jinja:
glue:
The text was updated successfully, but these errors were encountered: