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: 
cdoshi
Contributor
Contributor

Convert date to last 90 days

Hi,

I tried to convert time period to 90 days but something is not correct. Could you please help?

 

='Access : ' & num(sum({<[Request Type]={'ACCESS'}>},{<Date={">=$(=Date(today()-90))<$(=Date(today()))"}>}ALL),'#,##0') & '; '&' Delete : ' & num(sum({<[Request Type]={'DELETE'}>},{<Date={">=$(=Date(today()-90))<$(=Date(today()))"}>}ALL),'#,##0')

1 Solution

Accepted Solutions
Vegar
MVP
MVP

You are a bit vague in your description, try to explaining this "something ". What happens when you use this expression. 

I will, in case of simplicity, focus on one of the two expressions, but you can apply my suggested solution on both your sums.

num(sum({<[Request Type]={'ACCESS'}>},{<Date={">=$(=Date(today()-90))<$(=Date(today()))"}>}ALL),'#,##0')

It seems like you have an extra '>}' and '{<'. Try adjusting to this expression: 

num(sum({<[Request Type]={'ACCESS'},Date={">=$(=Date(today()-90))<$(=Date(today()))"}>}ALL),'#,##0') 

View solution in original post

3 Replies
MayilVahanan
MVP
MVP

HI @cdoshi

Try like this

='Access : ' & num(sum({<[Request Type]={'ACCESS'},Date={">=$(=Date(today()-90))<$(=Date(today()))"}>}ALL),'#,##0') 

or

='Access : ' & num(sum({<[Request Type]={'ACCESS'},Date={">=$(=Date(today()-90,'YYYY-MM-DD'))<$(=Date(today(),'YYYY-MM-DD'))"}>}ALL),'#,##0') 

Change the date format based on ur date field.

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Vegar
MVP
MVP

You are a bit vague in your description, try to explaining this "something ". What happens when you use this expression. 

I will, in case of simplicity, focus on one of the two expressions, but you can apply my suggested solution on both your sums.

num(sum({<[Request Type]={'ACCESS'}>},{<Date={">=$(=Date(today()-90))<$(=Date(today()))"}>}ALL),'#,##0')

It seems like you have an extra '>}' and '{<'. Try adjusting to this expression: 

num(sum({<[Request Type]={'ACCESS'},Date={">=$(=Date(today()-90))<$(=Date(today()))"}>}ALL),'#,##0') 

cdoshi
Contributor
Contributor
Author

Thank you very much ! It worked and sorry for being vague, QlikSense was showing I had a parenthesis issue.