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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
AnnieV
Contributor
Contributor

Measure Help: bar chart with measures on 2 different date fields

I need help with creating a measure for a bar chart.
I want the bar chart to display the number of created and closed complaints in a given month.
My data model has a table called "Complaints" with the fields COMPLAINT_ID, COMPLAINT_CREATION_DATE, and COMPLAINT_CLOSED_DATE. This complaints table is linked to my "Calendar" table with the field COMPLAINT_CREATION_DATE = DATE field of the Calendar table.

Because of the link between COMPLAINT_CREATION_DATE = DATE the measure for created complaints was easy (Count(DISTINCT COMPLAINT_ID)) 

How can I calculate the number of closed complaints in a month?



Data examples:

Complaints:

COMPLAINT_ID COMPLAINT_CREATION_DATE COMPLAINT_CLOSED_DATE
COMPLAINT_1 01-01-2023 15-02-2023


Calendar:

DATE Year Month
01-01-2023 2023 1



Labels (2)
1 Solution

Accepted Solutions
ajaykakkar93
Specialist III
Specialist III

hi,
Please check this out: Island Calendar 

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

View solution in original post

1 Reply
ajaykakkar93
Specialist III
Specialist III

hi,
Please check this out: Island Calendar 

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting