<?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: Max Number of Combinations in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Max-Number-of-Combinations/m-p/1833745#M68830</link>
    <description>&lt;P&gt;Are you looking something like this? If an ErrorCode occurred previously then it will add to the Risk.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD RowNo() As RowID,* INLINE [
    Date, ErrorCode
    01.01., 1
    01.01., 5
    01.01., 18
    01.01., 26
    02.01., 1
    02.01., 5
    03.01., 26
    03.01., 29
    03.01., 14
    04.01., 5
    04.01., 18
    04.01., 26
    04.01., 29
];

tab2:
LOAD RowID, ErrorCode, Date, If(Peek(ErrorCode)=ErrorCode And Not IsNull(Peek(Date)),'Y','N') As Risk
Resident tab1
Order By ErrorCode, Date;

Drop Table tab1;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV98.PNG" style="width: 451px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61359i3E05DC5A7129BF5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV98.PNG" alt="commQV98.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2021 19:05:37 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2021-09-03T19:05:37Z</dc:date>
    <item>
      <title>Max Number of Combinations</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Number-of-Combinations/m-p/1833583#M68814</link>
      <description>&lt;P&gt;Hello, for each day we track error codes from our QM System.&lt;/P&gt;&lt;P&gt;The error codes go from 1 to 30&lt;/P&gt;&lt;P&gt;Maybe something like this :&lt;/P&gt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lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i want to find out which error codes are most common in combination and would love to have something like frequency as measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;as we see on 01.01. and 02.01. we habe error codes 1 and 5 in common. so for the day 02.01. the whole combination of errors already occurred on 01.01.&lt;/P&gt;&lt;P&gt;but when we compare 01.01. and 04.01. we see, that they have 3 out of 4 error codes in common and measure should tell me that this is the bigger hit.&lt;/P&gt;&lt;P&gt;Actually i do not know how to set up a measure for this one.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 11:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Number-of-Combinations/m-p/1833583#M68814</guid>
      <dc:creator>heiko_schmidt</dc:creator>
      <dc:date>2021-09-03T11:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Max Number of Combinations</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Number-of-Combinations/m-p/1833597#M68815</link>
      <description>&lt;P&gt;What if you create a new field combining Date and Error Code and then count the occurrence of this field? You may use autonumber() to give a unique number for each combination..&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 12:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Number-of-Combinations/m-p/1833597#M68815</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2021-09-03T12:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Max Number of Combinations</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Number-of-Combinations/m-p/1833745#M68830</link>
      <description>&lt;P&gt;Are you looking something like this? If an ErrorCode occurred previously then it will add to the Risk.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD RowNo() As RowID,* INLINE [
    Date, ErrorCode
    01.01., 1
    01.01., 5
    01.01., 18
    01.01., 26
    02.01., 1
    02.01., 5
    03.01., 26
    03.01., 29
    03.01., 14
    04.01., 5
    04.01., 18
    04.01., 26
    04.01., 29
];

tab2:
LOAD RowID, ErrorCode, Date, If(Peek(ErrorCode)=ErrorCode And Not IsNull(Peek(Date)),'Y','N') As Risk
Resident tab1
Order By ErrorCode, Date;

Drop Table tab1;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV98.PNG" style="width: 451px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61359i3E05DC5A7129BF5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV98.PNG" alt="commQV98.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 19:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Number-of-Combinations/m-p/1833745#M68830</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-09-03T19:05:37Z</dc:date>
    </item>
  </channel>
</rss>

