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: 
manoranjan_d
Specialist
Specialist

last three months data

Hi all,

I need a static chart which shd show,no of times user logged for Past 3 months

i given the dimension as user name and count(loginhistory)---> this is normal thing.

now i need the expression for the 3 months data for the login history and then the chart has to be static data.

example: this is November month, so i need only the last three moths data of login histoy for the  user and that shd statc

static means any filter if i select,the cart should not change and 3 months data means , suppose if we are in december month means it shd show last three months data

i need expression to calculate the last three month data and how to make static for this requirement?

below is the data

  

USERNAMELOGIN HISTORY
x11/1/2016
x12/1/2016
x13/1/2016
x14/1/2016
x15/1/2016
x16/1/2016
x17/1/2016
x18/1/2016
x19/1/2016
x110/1/2016
x111/1/2016
x21/1/2016
x22/1/2016
x23/1/2016
x24/1/2016
x25/1/2016
x26/1/2016
x27/1/2016
x28/1/2016
x39/1/2016
x310/1/2016
x311/1/2016
x31/1/2016
x32/1/2016
x33/1/2016
x34/1/2016


Labels (1)
3 Replies
tresB
Champion III
Champion III

May be like:

Count({1<[LOGIN HISTORY]={'>=$(=MonthStart(Today(),-3)) <=$(=Date(Max({1}[LOGIN HISTORY])))'}>}[LOGIN HISTORY])

manoranjan_d
Specialist
Specialist
Author

for static?

tresB
Champion III
Champion III

yes