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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count next N months

Hi,

I am a relative newbe to QV so any help in pointing me in the correct direction will be welcome.

I have the following business requirement. For each project I need to count then number of issues raised after the go-live date. This seems straight forward however the data model I am working with is as follows:

Projects Table

- Project Number

- Client Name

- Go-live Date

Client Table

- Client Name

Issue Table

- Issue Number

- Client Name

Therefore Issue are raised against the client rather than the project. Each project has a specific go-live date. I then need to know the number of issues raised in say the next 6 months. In this scenario there is only ever one project per client.

An example of the output could be something like:

Header 1Header 2Header 3Header 4Header 5Header 6
Project NameGo-LiveMonth 1Month 2Month 3Month 4
Project A28 Aug 201087604010
Project B14 Dec 200010101010
Project C17 Jan 2005701007010

Any help would be appreciated.

Labels (1)
1 Reply
swuehl
Champion III
Champion III

Damian,

If you have a 1:1 relation between Customer and Project, I think you should be fine with just loading the tables in as is. QV will link your Issue Number via Client Name to the project table.

But I think you need a Issue Date, don't you? Or how to you kind of bucket your issues into the months after going live?

If you have an issue date, I think an expression as needed could look like (without testing):

=count( if (addmonths(Go_Live_Date,1) > Issue_Date and Issue_Date >= Go_Live_Date, Issue_Number))

and for the next month:

=count( if (addmonths(Go_Live_Date,2) > Issue_Date and Issue_Date >= addmonths(Go_Live_Date,1), Issue_Number))

Hope this helps,

Stefan