Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
chan103148
Contributor III
Contributor III

Delivery vs Sales

Hello. Need help.

How to show the sum of sales based on exact items that were delivered.

Like "apple to apple"  thing.

Thank you in advance. 

1 Solution

Accepted Solutions
RadovanOresky
Partner Ambassador
Partner Ambassador

Hi,

The construction of your Qlik data model is quite important - do you have everything in one table or do you have separate tables for Sales and a separate one for Deliveries?

If separate, then it's essential to have a correct field that associates them, like OrderNum or DocumentID.

Then I would suggest to create a simple boolean "flag" field that identifies all orders-items, that were delivered. This can be based on an existing delivery date or some status field - it's highly specific to the logic of your dataset.

With that you then can have a simple expression using SET analysis like:

sum( {< ItemIsDelivered_flag = {"TRUE"} >} Sales )

Hope this helps,

-RADO-

View solution in original post

4 Replies
mahaveerbiraj
Creator II
Creator II

Hi ,

Can you brief  your requirement with some examples.

anushree1
Specialist II
Specialist II

I am not sure if my understanding is right, But if you are looking for getting the sales of a particular item try using set analysis like:

sum({<Item={'Apple'}>}Sales)

RadovanOresky
Partner Ambassador
Partner Ambassador

Hi,

The construction of your Qlik data model is quite important - do you have everything in one table or do you have separate tables for Sales and a separate one for Deliveries?

If separate, then it's essential to have a correct field that associates them, like OrderNum or DocumentID.

Then I would suggest to create a simple boolean "flag" field that identifies all orders-items, that were delivered. This can be based on an existing delivery date or some status field - it's highly specific to the logic of your dataset.

With that you then can have a simple expression using SET analysis like:

sum( {< ItemIsDelivered_flag = {"TRUE"} >} Sales )

Hope this helps,

-RADO-

mahaveerbiraj
Creator II
Creator II

Hi , 

Do you have Delivered items in Different column? 

I mean how you are defining delivered Items, Attach some sample data please.