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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
ksk278074
Contributor III
Contributor III

compare the current month value

Hi all ,

 

I having the two coloumn i.e month and POsub

if we load  two fileds in qlik it showing like below 

clipboard_image_0.png

Now my requiremnet is comapre the jan amd feb month data 

based on the above screenshot  jan and Feb month having data like below 

jan                   feb

POMC              POMC

POMD            POMS

 based on that  jan and feb months are having same data so i need o/p as 1

and sencind row jan and feb having diffirent data so i need o/p as 0

Can you please help how to get the above data?

Thanks,

Siva

2 Replies
Yoshidaqlik
Creator II
Creator II

Hi,

Is it always an alphabetical order?

in line will put a valuelist

Valuelist(1,2)

in columns the months

month

in measures would be the values in the alphabetical orders

if(
  Valuelist(1,2) = 1,
  MinString(POsub),
  MaxString(POsub)
)

 

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
ksk278074
Contributor III
Contributor III
Author

thanks for the reply.

 

here  is no alphabetical betical will come into the picture.

here want to campare the two months data  like above.

Thanks in advance