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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
hkg_qlik
Creator III
Creator III

Set Expression

Hi,

I want to count distinct no. of PersonID if Created Date = Last Login Date. Can anyone help me with the syntax here.

Also I have created a Calendar based on the created date so that the count should change according to the month selected from the calendar.

Thanks,

H

Labels (1)
4 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with this

     =Sum(Aggr(if(Created Date = Last Login Date, 1, 0), Person))

Celambarasan

MayilVahanan
MVP
MVP

Hi,

     Try this,

    

          =Sum(Aggr(if([Created Date]  = [Last Login Date], 1, 0), PersonID))

     Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
hkg_qlik
Creator III
Creator III
Author

Its giving me  incorrect COUNT of personID.

H

chematos
Specialist II
Specialist II

Try this:

count({<[Created Date]  = {"=[Last Login Date]"}>}PersonID)

Make sure both dates are with the same type