<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Set Analysis Required in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715431#M1060310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then INTime and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ShiftStartTime&lt;/SPAN&gt; are not directly comparable timestamp fields. I suggest that you post a sample as others have suggested if you want help in diagnosing the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 12:47:02 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-09-29T12:47:02Z</dc:date>
    <item>
      <title>Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715423#M1060302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already created a discussion for same but have not got proper syntax solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 fields(say):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTime, ShiftStartTime, AttendanceStatus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to use set analysis with the condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(INTime&amp;gt;ShiftStartTime and&amp;nbsp; AttendanceStatus='P','POW','MIS' then count(distinct(date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS it required any conversion for Time say NUM() to compare??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the sample attachment....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to generate &lt;STRONG&gt;a report of Emp with how many times he was late&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 08:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715423#M1060302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-29T08:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715424#M1060303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If INTime and ShiftStartTime are both timestamp or date and time fields, then no conversion is required:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;AttendanceStatus={'P','POW','MIS'}&amp;gt;} DISTINCT If(INTime &amp;gt; ShiftStartTime, date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 08:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715424#M1060303</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-09-29T08:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715425#M1060304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Try like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;&lt;STRONG&gt;Count({&amp;lt;INTime={"&amp;gt;shiftStartTime"},AttendanceStatus={'P','POW','MIS'}&amp;gt;}DISTINCT date)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Make you sure you have appropriate date formats in all the date fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Manideep&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 08:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715425#M1060304</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2014-09-29T08:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715426#M1060305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your syntax is working similar to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;_AttendanceStatus={'P','POW','MIS'}&amp;gt;} distinct(Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is not helping in validation..,..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 08:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715426#M1060305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-29T08:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715427#M1060306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manideep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its returning 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked twice format is same....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 08:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715427#M1060306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-29T08:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715428#M1060307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post sample application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 08:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715428#M1060307</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-29T08:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715429#M1060308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post your app with sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 08:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715429#M1060308</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2014-09-29T08:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715430#M1060309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;&lt;STRONG&gt;Count({&amp;lt;INTime={"&amp;gt;$(shiftStartTime)"},AttendacneStatus={'P','POW','MIS'}&amp;gt;}DISTINCT date)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 08:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715430#M1060309</guid>
      <dc:creator>sagarkharpude</dc:creator>
      <dc:date>2014-09-29T08:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715431#M1060310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then INTime and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ShiftStartTime&lt;/SPAN&gt; are not directly comparable timestamp fields. I suggest that you post a sample as others have suggested if you want help in diagnosing the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 12:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715431#M1060310</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-09-29T12:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Required</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715432#M1060311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;This is how I've done it and it works correctly with the sample data you posted:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I added a calculated field to the script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;if(&lt;SPAN style="color: #800000;"&gt;INTIme&lt;/SPAN&gt; &amp;gt; &lt;SPAN style="color: #800000;"&gt;ShiftTime&lt;/SPAN&gt;, 1, 0) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Test &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;this returns 1 if INTime is greater than ShiftTime and 0 when it's not&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;The expression you then want to use is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Test&lt;/SPAN&gt;={'1'}, &lt;SPAN style="color: #800000;"&gt;AttendanceStatus&lt;/SPAN&gt;={'P','POW','MIS'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;ID&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;I attach a test dashboard!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 13:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Required/m-p/715432#M1060311</guid>
      <dc:creator />
      <dc:date>2014-09-29T13:51:26Z</dc:date>
    </item>
  </channel>
</rss>

