Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to calculate the amount of sales to new customers per week. But at the moment I only get the total sales per week.
count(if(OrderType='Sale', ItemId))-count(if(OrderType='Refund', ItemId))
Here's the full question again.
I'm trying to calculate the amount of sales to new customers per week. But at the moment I only get the total sales per week.
count(if(OrderType='Sale', ItemId))-count(if(OrderType='Refund', ItemId))
I have the CustomerId as a dimension and also CalendarWeekOfYear.
Preferably I would want to have something like CalendarWeekOfYear()-1 in the expression above.