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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Interval with Set analysis

Dear All,

I want to calculate Time Difference only when the attendance is regularized.

Interval(EmpLogMinTime-InTime,'hh:mm:ss')

This gives me the time difference. But i need data only when IsRegularized=1

Tried Interval( {<Isregularized = {1}>} EmpLogMinTime-InTime,'hh:mm:ss') Showing some error.

Kindly help with this.

Regards,

Keerthi KS

Labels (1)
5 Replies
tresB
Champion III
Champion III

Try like:

If ( Isregularized = 1,  Interval( EmpLogMinTime-InTime,'hh:mm:ss') )


Set analysis can only be used with aggregation functions and interval() is not so.

Not applicable
Author

This works but isregularized with 0 also shows with null data. Need to show only with isregularized=1

Get Outlook for Android<https://aka.ms/ghei36>

tresB
Champion III
Champion III

I guess you have to deal it with Null Suppression in the chart or Where clause in the script. Could you explain it bit more  - where, how... you are using it ? Screen shot, or sample qvw would help better.

Not applicable
Author

Please find the attached image. I need to calculate Time Interval only if isregularized is 1. Display only with Isregularized=1

Capture.PNG

sunny_talwar
MVP
MVP

How about this may be

Interval(

     Only({<Isregularized = {1}>} EmpLogMinTime-InTime),

'hh:mm:ss')