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: 
Kushal_Chawda

Previous 5 Months of data with Diffrent logic

Deal All,

I have below requirement & I am facing problem to achieve it. I would appreciate for any help.

I have data look like  

IDMonthStatusAmount
1Jan-13L100
1Feb-13L120
1Mar-13L140
1Apr-13F160
1May-13L180
1Jun-13F200
2Jan-13L220
2Feb-13L240
2Mar-13F260
2Apr-13L280
2May-13L300
2Jun-13L320

What I need is, I want to show all Previous 5 months of ID in report for particular month. Suppose when I select Jun-13, report should display IDs from Feb- 13 to Jun-13. This is fine for me. But, problem is explained below

I don't want IDs where status is 'F'. Problem is that one ID can be present in all previous month but I need to consider the status of current month and bases on that I need to filter the result.

For eg. ID=1.. In Jun-13 this ID should not be there in report as Status  is 'F', but when I select May-13 it should be there because current month status is 'L'.

In short I need all the IDs of previous 5 months and need to consider the status of current month.

I hope requirement is clear..

4 Replies
MK_QSL
MVP
MVP

Please check enclosed file.

Kushal_Chawda
Author

Thanks for your reply.

But when I select Jun-13 It's showing zero, but there should be ID 2 for Jun-13

MK_QSL
MVP
MVP

Like this?

Kushal_Chawda
Author

I will apply the same on my actual data and I will let you know.