Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics 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)

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

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)

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

View solution in original post

Maciej29
Contributor III
Contributor III
Author

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