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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Maciej29
Contributor III
Contributor III

Count with multiple conditions (with rolling period)

I'm looking for answer to count Error type only for last month (from today), but only for rejected status. Is someone know how to build this qlik formula ? Thanks in advance

 

DateError typeStatus
10/30/2019typoApproved
10/31/2019incorrect numberApproved
9/1/2019typoRejected
9/2/2019missing docsRejected
10/3/2019missing docsRejected
10/9/2019missing dosPending
1 Solution

Accepted Solutions
Anil_Babu_Samineni

Perhaps this? This condition works until unless you have forecast data..

Count({<date={">=$(=Addmonths(max(date),-1)<=$(=max(date))"}, status={'rejected'}>} errortype)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

Perhaps this? This condition works until unless you have forecast data..

Count({<date={">=$(=Addmonths(max(date),-1)<=$(=max(date))"}, status={'rejected'}>} errortype)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Maciej29
Contributor III
Contributor III
Author

It's working ! Thanks a lot for your quick reply.