ksolutions
Technical User
I need to provide data regarding orders by channel. Orders are in [Order Nr] and the channel that they come in on is defined in [Order Channel]. [Order Nr] is the customer's order number, and [Order Channel] can be Online, Phone, Mail, etc.
I can calculate the overall total count of orders as:
total(count(distinct[Order Nr]))
But how do I filter the orders to show only those for Online, Phone, etc - like the following:
if [Order Channel] = 'Online' then total(count(distinct[Order Nr]))
I need to create these calculations in the same query, so I can't filter a query - I need to filter a data item. I will need to add them together later on - that is why they can't be in separate query items.
Is this possible?
I can calculate the overall total count of orders as:
total(count(distinct[Order Nr]))
But how do I filter the orders to show only those for Online, Phone, etc - like the following:
if [Order Channel] = 'Online' then total(count(distinct[Order Nr]))
I need to create these calculations in the same query, so I can't filter a query - I need to filter a data item. I will need to add them together later on - that is why they can't be in separate query items.
Is this possible?