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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
abTech
Contributor III
Contributor III

Calculate difference in attend between these month and the previous

want to calculate the total attendance difference between a period of time lets take NOV & DEC 

i try with these expression but dosn't work 

Sum({<Date >= '12/1/2023' and Date <= '12/31/2023'> Attendance})

Labels (3)
4 Replies
rubenmarin
MVP
MVP

Hi, that syntax has some errors, it could be:

Sum({<Date={">=12/1/2023<=12/31/2023"}>} Attendance)

For this to work the field Date has to store a real date type, with the format M/D/YYYY

abTech
Contributor III
Contributor III
Author

Thank you for your review but it come with error in set modifier ad hoc element list while the date format is the same as date in the column.

Ahidhar
Creator III
Creator III

try this

sum({<Date={">=$(=monthstart(addmonths(max(Date),-1))) <=$(=max(Date))"}>}attendance)

rubenmarin
MVP
MVP

Hi, I've checked and I don't get any errors, check if your field names are Date and Attendance, with the same uppercase and lowercase.