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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help in expression

Hi All

i Have two fields User Id & Last Signed Date ,I need the count of User Id's who have signed in within last 60 days.need to write an expression for this

User Id            Last Signed Date
1                         11/11/13
2                         12/10/13
3                          04/10/13
4                          05/04/13
5                          06/02/13

The date format is (DD/MM/YYYY)

Thanks in advance

Labels (1)
1 Solution

Accepted Solutions
kaushiknsolanki
MVP
MVP

Hi,

     Try this.

     Count({<LastSignedDate = {">=$(=Date(Today()-60,'DD/MM/YYYY'))"}>}User_ID)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

4 Replies
kaushiknsolanki
MVP
MVP

Hi,

     Try this.

     Count({<LastSignedDate = {">=$(=Date(Today()-60,'DD/MM/YYYY'))"}>}User_ID)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
jagan
Partner - Champion III
Partner - Champion III

Hi Senthil,

Try this expression

=Count({<[Last Signed Date]= {">=$(=Date(Today()-60,'DD/MM/YYYY'))<=$(=Date(Today(), 'DD/MM/YYYY'))"}>}

[User Id])

If you want unique Users count then use this expression

=Count({<[Last Signed Date]= {">=$(=Date(Today()-60,'DD/MM/YYYY'))<=$(=Date(Today(), 'DD/MM/YYYY'))"}>}

DISTINCT [User Id])

Hope this helps you.

Regards,

Jagan.

mdmukramali
Specialist III
Specialist III

Dear,

Kindly find the attachment.

Thanks,

Mukram.

Not applicable
Author

Thanks ...

It worked..