Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
Can anybody tell what is the syntax error in this expression:
=count({<_IN_TIME={'>ShiftStartGraceTime'}>} DISTINCT(%Date))
Regards,
Balraj
Do you want to compare _IN_TIME and ShiftStartGraceTime in the same row? Then try this
=Count( Distinct If(_IN_TIME > ShiftStartGraceTime, %Date))
Hi,
What is format of _IN_TIME and ShiftStartGraceTime?
if possible share smaple apps?
Regards
what exactly are you looking to achieve in the formula
does the two fields are in the same tables?
Liron,
Both are in two different tables.
I have to count late comers using this formula.
Regards,
Balraj
hi
set analysis won't work as it replaces selections not if statemnet
assuming that for each _in_time record there is only one shiftgracetime
then try to use
Count (DISTINCT if( _IN_TIME >ShiftStartGraceTime, %Date ))
how the two tables are connected?
its Field
Count( Distinct If(_IN_TIME > ShiftStartGraceTime and _AttendanceStatus='P' ,'POW' , %Date))
What is the error in this syntax?
Hi,
Is you and Abhay Singh Working on same project?
Check this thread
http://community.qlik.com/thread/135313
Regards
Yes,
But still we have not got the solution, I have checked the Time Format twice but not able to use SET Analysis properly..
=Count( Distinct If(num(_IN_TIME) > num(ShiftStartGraceTime) and _AttendanceStatus='P','POW','MIS' , %Date))
Tried If as well but not working
=Count( Distinct If(num(_IN_TIME) > num(ShiftStartGraceTime) and Match(_AttendanceStatus,'P','POW','MIS') , %Date))