Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jim_chan
Specialist
Specialist

AND function?

Hi guys,

I have a script to write.

OK. I have 2 columns Customer ID(001,002) and Change(A,B).


I would like to see records of Customer ID which have change the "change", at below, Customer ID 'A' as made a change from A to B.



DateCustomer IDChange
01/01/2016AA
02/01/2016AB
01/01/2016BB

So, i created a calculated dimension - if(change = 'A' AND change = 'B',Customer_ID). It is not working,.......

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Great Jim. If you got the answer, please close the thread.

View solution in original post

16 Replies
Chanty4u
MVP
MVP

try

if(change = 'A' or change = 'B',Customer_ID)

avinashelite

The above condition will yield you the results only when change has been made by both A and B .. I did not get the your exact requirement ..

try like this

if(change<>Customer_ID,Customer_ID)

tamilarasu
Champion
Champion

Hi Jim,

I am not sure what is your exact requirment. You have mentioed that you are using calculated dimension, so try like below,

=Aggr(If(Concat(Change,'|')='A|B',[Customer ID]),[Customer ID])

jim_chan
Specialist
Specialist
Author

Hello Avin!

I need a script that only show me customer ID that have made changes. , like the red color square box.

error.jpg

avinashelite

would be able to share the sample data for the same

jim_chan
Specialist
Specialist
Author

sure. ! sample qvw as per attached, Avin

jim_chan
Specialist
Specialist
Author

tried. not working.

jim_chan
Specialist
Specialist
Author

tried. not the outcome i am looking for

anagharao
Creator II
Creator II

Hi,

You could group the data by Customer ID and find out the distinct number of change values.