<?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: Permutations Math in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854280#M299463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;=COUNT({&amp;lt;Sequence = {"*OG*"}&amp;gt;} Sequence)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resp.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=COUNT({&amp;lt;Sequence = {"*PR*"}&amp;gt;} Sequence)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;COUNT( IF(Sequence LIKE '*OG*', Sequence))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2015 13:16:44 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-06-18T13:16:44Z</dc:date>
    <item>
      <title>Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854278#M299461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a field called 'Sequence'&amp;nbsp; a 7 character (Upper Case) text field that is made up from the sequence (ascending order) of 7 timestamps that are captured&amp;nbsp; for each record transaction.&amp;nbsp; The timestamps are:&lt;/P&gt;&lt;P&gt;O = Ordered product&lt;/P&gt;&lt;P&gt;G = List product&lt;/P&gt;&lt;P&gt;L =&amp;nbsp; Label Product&lt;/P&gt;&lt;P&gt;C = Collect&lt;/P&gt;&lt;P&gt;A = Arrive Product&lt;/P&gt;&lt;P&gt;P = Prepare Product&lt;/P&gt;&lt;P&gt;R = Report on Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the sequence order they are performed a typical Sequence field could look like OGLCAPR or OLGCAPR.&amp;nbsp; My analysis thus far is displayed below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89930_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I now want to perform this time analysis above based on distinct combinations of 2 , i.e. Permutations without repetition (n=7, r=2)&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;List has 42 maximum entries.&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;OL OG OC OA OP OR LO LG LC LA LP LR GO GL GC GA GP GR CO CL CG CA CP CR AO AL AG AC AP AR PO PL PG PC PA PR RO RL RG RC RA RP&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;If I take the same table above and apply the MID() function to the Sequence filed I would get the results below.&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/89932_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Challenge/Question?&lt;/P&gt;&lt;P&gt;I now want to perform an analysis similar to the above on unique timestamp permutations for example 'OG' occurred 646 + 23 + 5 =&amp;nbsp; 474 times.and PR occurred 905 times. (In the above example I want to analyze the performance of OG regardless of it being performed in step 1 or step 2.)&amp;nbsp; The new analysis would consists of unique permutations, e.g., OG, PR, LO with corresponding Count, % and throughput statistics.&amp;nbsp; Hope this all makes sense.&amp;nbsp; How can this be accomplished in QlikView? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 12:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854278#M299461</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-18T12:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854279#M299462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow this is some high end stuff you are doing here (at least seems like that). To tell you the truth I don't understand the question well, but would love to know what you have already done (see it in a qvw) and then may be try to understand what you are looking to do and may be propose a solution ultimately (there is no certainty that I will be able to provide a solution, but I would still love to give it a try &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we are in agreement and if you can share the qvw of what you have done, we can get the ball rolling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 13:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854279#M299462</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-18T13:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854280#M299463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;=COUNT({&amp;lt;Sequence = {"*OG*"}&amp;gt;} Sequence)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resp.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=COUNT({&amp;lt;Sequence = {"*PR*"}&amp;gt;} Sequence)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;COUNT( IF(Sequence LIKE '*OG*', Sequence))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 13:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854280#M299463</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-18T13:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854281#M299464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this suggestion. This is a large database with many millions of records.&amp;nbsp; The goal is to find a way to determine which of the 42 possible permutations had activity for a give query and then do the analysis.&amp;nbsp; In the above example I believe there were only 18 of 42 permutations that had activity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 13:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854281#M299464</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-18T13:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854282#M299465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do already have a field with your permutations, right? Let's assume it's called PERMUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a chart with PERMUT as dimension and an expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=COUNT(IF (Sequence LIKE '*' &amp;amp; PERMUT &amp;amp; '*', Sequence))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How does this perform in your setting? There are some alternatives for the match in the front end, you could also consider creating a link table between Sequence field and its permutations in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 13:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854282#M299465</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-18T13:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854283#M299466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only field I have to work with is the 7 character Sequence field.&amp;nbsp; Each successive 2 letter combination from this field provides the permutation equivalent, e.g., Mid(Sequence,1,2).&amp;nbsp; I tried to show this in the last image above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 13:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854283#M299466</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-18T13:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854284#M299467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hit return too fast.&amp;nbsp; I like your second suggestion, can you provide a bit more detail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 13:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854284#M299467</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-18T13:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854285#M299468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Richard Ouellette wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The only field I have to work with is the 7 character Sequence field.&amp;nbsp; Each successive 2 letter combination from this field provides the permutation equivalent, e.g., Mid(Sequence,1,2).&amp;nbsp; I tried to show this in the last image above.&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Well, I think you also have a list of permuations:&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;EM&gt;List has 42 maximum entries.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;EM&gt;OL OG OC OA OP OR LO LG LC LA LP LR GO GL GC GA GP GR CO CL CG CA CP CR AO AL AG AC AP AR PO PL PG PC PA PR RO RL RG RC RA RP&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;Just create an INLINE LOAD for the list and you're set.&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;And you liked my second suggestion, which one?&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;edit:&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;This is how you can create your link table:&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14346365348596988 jive_text_macro" jivemacro_uid="_14346365348596988"&gt;
&lt;P&gt;LOAD Sequence, mid(Sequence,iterno(),2) as Permut &lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;Sequence&lt;/P&gt;
&lt;P&gt;OGLCAPR&lt;/P&gt;
&lt;P&gt;OLGCAPR&lt;/P&gt;
&lt;P&gt;] &lt;/P&gt;
&lt;P&gt;while IterNo() &amp;lt;= 6;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of the INLINE, you can do a RESIDENT LOAD of your Sequence table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 14:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854285#M299468</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-18T14:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854286#M299469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl&lt;/P&gt;&lt;P&gt;Below is some sample code that you graciously assisted me with last week.&amp;nbsp; As you can see I am calculating the time intervals as load time due to the complexity of the calculations and application impact.&amp;nbsp; I would like to now perform the time durations based on the various time stamp permutations based on your above recommendation but am at a bit of a loss with how to proceed.&amp;nbsp; Can you assist?&amp;nbsp; Also my interval calculation is long and complex... is there an easier way to accomplish this?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recno() as ID,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(today() + RAND()) as O,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(today() + RAND()) as G,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(today() + RAND()) as L,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(today() + RAND()) as C,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(today() + RAND()) as A,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(today() + RAND()) as P,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(today() + RAND()) as R&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate 20;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CrossTable (Field, Time) LOAD * RESIDENT DATA;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEFT JOIN (DATA)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concat(Field, '',Time) as Sequence &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident X&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group BY ID;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table X;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop fields ID;&lt;/P&gt;&lt;P&gt; Store DATA into Data.qvd (qvd);&lt;/P&gt;&lt;P&gt; Drop Table DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA:&lt;/P&gt;&lt;P&gt; Load O,&lt;/P&gt;&lt;P&gt; G,&lt;/P&gt;&lt;P&gt; L,&lt;/P&gt;&lt;P&gt; C,&lt;/P&gt;&lt;P&gt; A,&lt;/P&gt;&lt;P&gt; P,&lt;/P&gt;&lt;P&gt; R,&lt;/P&gt;&lt;P&gt; Sequence,&lt;/P&gt;&lt;P&gt; Interval((If( MID(Sequence,7,1)='O',O, If( MID(Sequence,7,1)='L',L, If( MID(Sequence,7,1)='G',G, If( MID(Sequence,7,1)='C',C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,7,1)='A',A, If( MID(Sequence,7,1)='P',P,R))))))) - (If( MID(Sequence,1,1)='O',O, If( MID(Sequence,1,1)='L',L,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,1,1)='G',G, If( MID(Sequence,1,1)='C',C, If( MID(Sequence,1,1)='A',A, If( MID(Sequence,1,1)='P',P,R)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 'hh:mm')*24 as i1_7,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval((If( MID(Sequence,2,1)='O',O, If( MID(Sequence,2,1)='L',L, If( MID(Sequence,2,1)='G',G, If( MID(Sequence,2,1)='C',C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,2,1)='A',A, If( MID(Sequence,2,1)='P',P,R))))))) - (If( MID(Sequence,1,1)='O',O, If( MID(Sequence,1,1)='L',L,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,1,1)='G',G,&amp;nbsp; If( MID(Sequence,1,1)='C',C, If( MID(Sequence,1,1)='A',A, If( MID(Sequence,1,1)='P',P,R)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 'hh:mm')*24 as i1_2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval((If( MID(Sequence,3,1)='O',O, If( MID(Sequence,3,1)='L',L, If( MID(Sequence,3,1)='G',G, If( MID(Sequence,3,1)='C',C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,3,1)='A',A, If( MID(Sequence,3,1)='P',P,R))))))) - (If( MID(Sequence,2,1)='O',O, If( MID(Sequence,2,1)='L',L,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,2,1)='G',G,&amp;nbsp; If( MID(Sequence,2,1)='C',C, If( MID(Sequence,2,1)='A',A, If( MID(Sequence,2,1)='P',P,R)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 'hh:mm')*24 as i2_3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval((If( MID(Sequence,4,1)='O',O, If( MID(Sequence,4,1)='L',L, If( MID(Sequence,4,1)='G',G, If( MID(Sequence,4,1)='C',C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,4,1)='A',A, If( MID(Sequence,4,1)='P',P,R))))))) - (If( MID(Sequence,3,1)='O',O, If( MID(Sequence,3,1)='L',L,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,3,1)='G',G,&amp;nbsp; If( MID(Sequence,3,1)='C',C, If( MID(Sequence,3,1)='A',A, If( MID(Sequence,3,1)='P',P,R)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 'hh:mm')*24 as i3_4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval((If( MID(Sequence,5,1)='O',O, If( MID(Sequence,5,1)='L',L, If( MID(Sequence,5,1)='G',G, If( MID(Sequence,5,1)='C',C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,5,1)='A',A, If( MID(Sequence,5,1)='P',P,R))))))) - (If( MID(Sequence,4,1)='O',O, If( MID(Sequence,4,1)='L',L,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,4,1)='G',G,&amp;nbsp; If( MID(Sequence,4,1)='C',C, If( MID(Sequence,4,1)='A',A, If( MID(Sequence,4,1)='P',P,R)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 'hh:mm')*24 as i4_5,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval((If( MID(Sequence,6,1)='O',O, If( MID(Sequence,6,1)='L',L, If( MID(Sequence,6,1)='G',G, If( MID(Sequence,6,1)='C',C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,6,1)='A',A, If( MID(Sequence,6,1)='P',P,R))))))) - (If( MID(Sequence,5,1)='O',O, If( MID(Sequence,5,1)='L',L,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,5,1)='G',G,&amp;nbsp; If( MID(Sequence,5,1)='C',C, If( MID(Sequence,5,1)='A',A, If( MID(Sequence,5,1)='P',P,R)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 'hh:mm')*24 as i5_6,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval((If( MID(Sequence,7,1)='O',O, If( MID(Sequence,7,1)='L',L, If( MID(Sequence,7,1)='G',G, If( MID(Sequence,7,1)='C',C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,7,1)='A',A, If( MID(Sequence,7,1)='P',P,R))))))) - (If( MID(Sequence,6,1)='O',O, If( MID(Sequence,6,1)='L',L,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( MID(Sequence,6,1)='G',G,&amp;nbsp; If( MID(Sequence,6,1)='C',C, If( MID(Sequence,6,1)='A',A, If( MID(Sequence,6,1)='P',P,R)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 'hh:mm')*24 as i6_7&lt;/P&gt;&lt;P&gt; FROM&lt;/P&gt;&lt;P&gt; Data.qvd (QVD);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 18:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854286#M299469</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-18T18:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854287#M299470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I've understood correctly, I think your interval calculations can be simplified if you perform them same place you calculate your sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14346697533529341" jivemacro_uid="_14346697533529341"&gt;
&lt;P&gt;DATA:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; recno() as ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Timestamp(today() + RAND()) as O,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Timestamp(today() + RAND()) as G,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Timestamp(today() + RAND()) as L,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Timestamp(today() + RAND()) as C,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Timestamp(today() + RAND()) as A,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Timestamp(today() + RAND()) as P,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Timestamp(today() + RAND()) as R&lt;/P&gt;
&lt;P&gt;AutoGenerate 20;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;X:&lt;/P&gt;
&lt;P&gt;CrossTable (Field, Time) LOAD * RESIDENT DATA;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN (DATA)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Concat(Field, '',Time) as Sequence,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (min(Time,7)-min(Time,1))*24 as i1_7,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (min(Time,2)-min(Time,1))*24 as i1_2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (min(Time,3)-min(Time,2))*24 as i2_3,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (min(Time,4)-min(Time,3))*24 as i3_4,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (min(Time,5)-min(Time,4))*24 as i4_5,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (min(Time,6)-min(Time,5))*24 as i5_6,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (min(Time,7)-min(Time,6))*24 as i6_7&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Resident X&lt;/P&gt;
&lt;P&gt;Group BY ID;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table X;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD Sequence, mid(Sequence,IterNo(),2) as Permut, 1 as Count&lt;/P&gt;
&lt;P&gt;RESIDENT DATA&lt;/P&gt;
&lt;P&gt;WHILE iterno() &amp;lt;= 6;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also added the link table to your permutations (and not shown here, an INLINE table of all permutations, see attached QVW).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this allow to perform the analysis you want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 23:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854287#M299470</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-18T23:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854288#M299471</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;awesome solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having millions of records it could improve the performance to use only distinct Sequence values in the link table:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;DISTINCT &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;Sequence&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;, mid(&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;Sequence&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;,IterNo(),2) &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt; Permut, 1 &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #006699; font-size: 9pt !important;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt; &lt;/SPAN&gt;&lt;SPAN class="func" style="font-style: inherit; font-weight: inherit; line-height: 1.5em; color: #ff1493; font-size: 9pt !important;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 23:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854288#M299471</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-18T23:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854289#M299472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might distort the aggregated count (well, as I've understood the requirements of the analysis).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can aggregate the counts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Sequence, Permut, count(Sequence) as Count&lt;/P&gt;&lt;P&gt;GROUP BY Sequence, Permut;&lt;/P&gt;&lt;P&gt;LOAD Sequence, mid(Sequence,IterNo(),2) as Permut&lt;/P&gt;&lt;P&gt;RESIDENT DATA&lt;/P&gt;&lt;P&gt;WHILE iterno() &amp;lt;= 6;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 00:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854289#M299472</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-19T00:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854290#M299473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Swuehl&lt;/P&gt;&lt;P&gt;You are amazing! The simplification of the interval formula and generating the Permut field is exactly what I am looking for this this analysis.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Below, I took the snippet of code you provided above (not the attached qvw) and with autogenerate set to 1 looked at a single record. There are 2 pieces to the analysis that I am doing:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Examining the order in which the steps are performed for each record and then calculating the time intervals.&amp;nbsp; This was accomplished with the creation of the Sequence field and the interval fields i1_2… i6_7.&lt;/LI&gt;&lt;LI&gt;Generate the Permut fields for each transaction and then calculate the time intervals for each of these. So in the singe record generated below I would now need to calculate the time interval for AL, CG, GR, OC, PO and RA&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90051_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement 2 still poses a challenge for me.&amp;nbsp; The main table that contain these transaction have over 9 million records and it is growing. The sequence field and the time interval fields can continue to remain in the main table as they now are. In order to perform the analysis on the Permut field, since there will be a 1 to many (6) relationship for each transaction record in the main table, will require a separate table that is created at LOAD time with the time intervals for each Permut per-calculated.&amp;nbsp; I I envision that the Permut table will consist of 3 fields of information, the ID field that ties it back to the main DATA table, the Permut field and the calculated interval time for each Permut.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this approach make sense?&amp;nbsp; If yes can you advise on the creation of the Permut table and the calculation for each time interval?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 11:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854290#M299473</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-19T11:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854291#M299474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco, thank you for you suggestion. For this analysis Distinct can not be used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 11:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854291#M299474</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-19T11:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854292#M299475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, thanks code snippets shared below.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 11:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854292#M299475</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-19T11:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854293#M299476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for link table generation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14347138009197716" jivemacro_uid="_14347138009197716"&gt;
&lt;P&gt;LOAD ID, mid(Sequence,IterNo(),2) as Permut, 1 as Count,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;pick(IterNo(), i1_2, i2_3, i3_4, i4_5, i5_6, i6_7) as PermutInterval&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;RESIDENT DATA&lt;/P&gt;
&lt;P&gt;WHILE iterno() &amp;lt;= 6;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: to keep the number of distinct values low (this will also save time in the fact and link table), it might be a good idea to round the calculated intervals to a number of decimal places needed for your analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 11:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854293#M299476</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-19T11:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854294#M299477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehi, you are a genius, that did the trick!&amp;nbsp; Thanks so much for your help with this post! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 11:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854294#M299477</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-19T11:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854295#M299478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding..."round the calculated intervals to a number of decimal places needed for your analysis."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rounding to 2 decimal places is all that is required... can this be accomplished in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 12:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854295#M299478</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-19T12:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854296#M299479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code is rounding the intervals:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (DATA) &lt;/P&gt;&lt;P&gt; LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Concat(Field, '',Time) as Sequence,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; round((min(Time,7)-min(Time,1))*24,0.01) as i1_7,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; round((min(Time,2)-min(Time,1))*24,0.01) as i1_2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; round((min(Time,3)-min(Time,2))*24,0.01) as i2_3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; round((min(Time,4)-min(Time,3))*24,0.01) as i3_4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; round((min(Time,5)-min(Time,4))*24,0.01) as i4_5,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; round((min(Time,6)-min(Time,5))*24,0.01) as i5_6,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; round((min(Time,7)-min(Time,6))*24,0.01) as i6_7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Resident X &lt;/P&gt;&lt;P&gt; Group BY ID; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leaving the original timestamp fields untouched (though also these could be rounded or maybe even dropped?).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 12:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854296#M299479</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-19T12:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Permutations Math</title>
      <link>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854297#M299480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again! I have learned many things from you through this post!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 12:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Permutations-Math/m-p/854297#M299480</guid>
      <dc:creator>richardouellett</dc:creator>
      <dc:date>2015-06-19T12:17:11Z</dc:date>
    </item>
  </channel>
</rss>

