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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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

4 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with this

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

Celambarasan

MayilVahanan

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