Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to tag Orders with YES/NO if customer name is same?

Hi Guys,

I have requirement where I would like to tag the Order as dual Order if the following condition is matched


Condition :

If a Customer placing Order from same Store more then once on the same date then that order should be tagged as dual order.

As an example:

in below table, only Order ID 1 & 2 should be tagged as a Dual Order Because Order ID 3 has different order date.

OrderIDCustomer NameProduct NameStore NameOrder Date
1Jon SnowBreadCity Store15/06/2016
2Jon SnowMilkCity Store15/06/2016
3Jon SnowSugarEastern Store16/06/2016

What I am trying to Achieve:

I want to create a Straight table in QlikView which will have dimensions like (Customer Name, City, DOB, Product, Order Date etc..)

And I want to have an extra column 'Dual Product' and it should be YES or NO like below:


OrderIDCustomer NameProduct NameStore NameOrder DateDual Product?
1Jon SnowBreadCity Store15/06/2016Yes
2Jon SnowMilkCity Store15/06/2016Yes
3Jon SnowSugarEastern Store16/06/2016No

My Data Model is like This.. (QVW Attached)

Schema.png

Hope it makes sense.

Thank you

12 Replies
Not applicable
Author

Thank you Antonio it worked !

Not applicable
Author

Hi Antonio,

How can I get the count of this 'Yes' and 'No'

I would like to count how many orders are Dual and how many are not dual

I tried following based on the answer to this post's question..

Count(TOTAL <Name,OrderDate,StoreName> OrderId) > 1

But I am getting incorrect total

Thanks

antoniotiman
Master III
Master III

Try

Count(TOTAL <Name,OrderDate,StoreName> OrderId)