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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

script to create records to fill in gaps in history table

I am working on building reports for a issue management ticketing system. The ticketing system database does not keep a transactional history of the ticket status, which is making it hard to answer questions in Qlik Sense like : How many tickets were open in Jan-2015, Feb-15? How many tickets were resolved in Mar-2015? etc.

The database does have the necessary data in order to create the necessary data through calculations.

Source Data Table:

Ticket_IDOpen_DateResolve_DateClose_Date
11/1/153/1/153/10/15
21/1/154/10/15
32/10/15

Event Table:

Ticket_IDEventEvent_Date
1Opened1/1/15
1Resolved3/1/15
1Closed3/10/15
2Opened1/1/15
2Resolved4/10/15
3Opened2/10/15

Does anyone have any advice on how I should best "fill in the gaps" - my idea for the data structure is below (the granularity in reporting does not need to go below month-year), but am open to better ideas.

Measure Table

Ticket_IDTicket_StatusMonth-Year
1OpenJan-2015
1OpenFeb-2015
1ResolvedMar-2015
1ClosedMar-2015
2OpenJan-2015
2OpenFeb-2015
2OpenMar-2015
2OpenApr-2015
2ResolvedApr-2015
3OpenFeb-2015
1 Reply
swuehl
MVP
MVP