Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/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
Partner Ambassador/MVP
Partner Ambassador/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
Luminary Alumni
Luminary Alumni

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..