<?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 Question about a loop on a specific column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Question-about-a-loop-on-a-specific-column/m-p/1987399#M81595</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First excuse my English, it's not my native langage. I will try to be clear in my question and if it's not the case, don't hesitate to ask for more precisions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on a ERP output and there are some rows to group, based on the dates. You can download a simplified version attached.&lt;/P&gt;
&lt;P&gt;My goal is to know every consecutive days of absence for each worker.&amp;nbsp;The ERP creates a new row every 15 days of absence, and I have to look at the start and end dates as rules to group to do the grouping.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do so, in Excel I use a column "index"&amp;nbsp; initialized in the first case "F2" at 0.&lt;/P&gt;
&lt;P&gt;Then I try to see if the previous row has the same matricule and if the "start date" is&amp;nbsp; equals to the precedent line "end date" + 1 day.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--&amp;gt; F3 =IF (AND (A3=A2; C3= D2+1); F2 ; F2 + 1)&lt;/P&gt;
&lt;P&gt;with A : matricule, C : start date, D : end date and F my calculated index column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After it, I can do a simple group by loading in qliksense to count the relative number of days.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But is it possible to calculate the index column with these rules directly in Qliksense ? I've try several ways without succeding.&lt;/P&gt;
&lt;P&gt;Thank you in advance for your help and I remain at your disposal if necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Benjamin&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Oct 2022 03:28:57 GMT</pubDate>
    <dc:creator>benji1484</dc:creator>
    <dc:date>2022-10-01T03:28:57Z</dc:date>
    <item>
      <title>Question about a loop on a specific column</title>
      <link>https://community.qlik.com/t5/App-Development/Question-about-a-loop-on-a-specific-column/m-p/1987399#M81595</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First excuse my English, it's not my native langage. I will try to be clear in my question and if it's not the case, don't hesitate to ask for more precisions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on a ERP output and there are some rows to group, based on the dates. You can download a simplified version attached.&lt;/P&gt;
&lt;P&gt;My goal is to know every consecutive days of absence for each worker.&amp;nbsp;The ERP creates a new row every 15 days of absence, and I have to look at the start and end dates as rules to group to do the grouping.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do so, in Excel I use a column "index"&amp;nbsp; initialized in the first case "F2" at 0.&lt;/P&gt;
&lt;P&gt;Then I try to see if the previous row has the same matricule and if the "start date" is&amp;nbsp; equals to the precedent line "end date" + 1 day.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--&amp;gt; F3 =IF (AND (A3=A2; C3= D2+1); F2 ; F2 + 1)&lt;/P&gt;
&lt;P&gt;with A : matricule, C : start date, D : end date and F my calculated index column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After it, I can do a simple group by loading in qliksense to count the relative number of days.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But is it possible to calculate the index column with these rules directly in Qliksense ? I've try several ways without succeding.&lt;/P&gt;
&lt;P&gt;Thank you in advance for your help and I remain at your disposal if necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Benjamin&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 03:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-about-a-loop-on-a-specific-column/m-p/1987399#M81595</guid>
      <dc:creator>benji1484</dc:creator>
      <dc:date>2022-10-01T03:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question about a loop on a specific column</title>
      <link>https://community.qlik.com/t5/App-Development/Question-about-a-loop-on-a-specific-column/m-p/1987948#M81650</link>
      <description>&lt;P&gt;Any idea ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 05:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-about-a-loop-on-a-specific-column/m-p/1987948#M81650</guid>
      <dc:creator>benji1484</dc:creator>
      <dc:date>2022-10-03T05:50:05Z</dc:date>
    </item>
  </channel>
</rss>

