<?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 Verify the sequentiality of the data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Verify-the-sequentiality-of-the-data/m-p/2457582#M98577</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let's assume that i have the following data&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;ID,Station,Status&lt;/P&gt;
&lt;P&gt;1,1,'ok'&lt;/P&gt;
&lt;P&gt;1,2,'ok'&lt;/P&gt;
&lt;P&gt;1,3,'no'&lt;/P&gt;
&lt;P&gt;2,1,'no'&lt;/P&gt;
&lt;P&gt;2,2,'no'&lt;/P&gt;
&lt;P&gt;2,3,'no'&lt;/P&gt;
&lt;P&gt;3,1,'no'&lt;/P&gt;
&lt;P&gt;3,2,'ok'&lt;/P&gt;
&lt;P&gt;3,3,'no'&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;For each id, there will be 3 rows in the data, which identify the the status of its three stations.&lt;/P&gt;
&lt;P&gt;And these stations should be passed sequentially, so, the first is 1, then 2 and finally 3.&lt;/P&gt;
&lt;P&gt;Initially, all station are set to no in their status, and it will be changed in ok once it's completed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can i verify in load script whether the sequentiality of station is respected. So for each id i have, i want to know whether if is respecting the&amp;nbsp;sequentiality .&lt;/P&gt;
&lt;P&gt;The output of this case would be:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;ID, respected&lt;/P&gt;
&lt;P&gt;1,'yes'&lt;/P&gt;
&lt;P&gt;2,'yes'&lt;/P&gt;
&lt;P&gt;3,'no'&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can notice that the id 3 is not respecting that, because it passed the second station without completing the first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll really appreciate your support.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 16:13:30 GMT</pubDate>
    <dc:creator>OrbytaQliker</dc:creator>
    <dc:date>2024-05-29T16:13:30Z</dc:date>
    <item>
      <title>Verify the sequentiality of the data</title>
      <link>https://community.qlik.com/t5/App-Development/Verify-the-sequentiality-of-the-data/m-p/2457582#M98577</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let's assume that i have the following data&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;ID,Station,Status&lt;/P&gt;
&lt;P&gt;1,1,'ok'&lt;/P&gt;
&lt;P&gt;1,2,'ok'&lt;/P&gt;
&lt;P&gt;1,3,'no'&lt;/P&gt;
&lt;P&gt;2,1,'no'&lt;/P&gt;
&lt;P&gt;2,2,'no'&lt;/P&gt;
&lt;P&gt;2,3,'no'&lt;/P&gt;
&lt;P&gt;3,1,'no'&lt;/P&gt;
&lt;P&gt;3,2,'ok'&lt;/P&gt;
&lt;P&gt;3,3,'no'&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;For each id, there will be 3 rows in the data, which identify the the status of its three stations.&lt;/P&gt;
&lt;P&gt;And these stations should be passed sequentially, so, the first is 1, then 2 and finally 3.&lt;/P&gt;
&lt;P&gt;Initially, all station are set to no in their status, and it will be changed in ok once it's completed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can i verify in load script whether the sequentiality of station is respected. So for each id i have, i want to know whether if is respecting the&amp;nbsp;sequentiality .&lt;/P&gt;
&lt;P&gt;The output of this case would be:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;ID, respected&lt;/P&gt;
&lt;P&gt;1,'yes'&lt;/P&gt;
&lt;P&gt;2,'yes'&lt;/P&gt;
&lt;P&gt;3,'no'&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can notice that the id 3 is not respecting that, because it passed the second station without completing the first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll really appreciate your support.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 16:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Verify-the-sequentiality-of-the-data/m-p/2457582#M98577</guid>
      <dc:creator>OrbytaQliker</dc:creator>
      <dc:date>2024-05-29T16:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Verify the sequentiality of the data</title>
      <link>https://community.qlik.com/t5/App-Development/Verify-the-sequentiality-of-the-data/m-p/2457603#M98579</link>
      <description>&lt;P&gt;A way to express this rule is that "ok" should never follow "no" in the sequence. How about:&lt;/P&gt;
&lt;PRE&gt;Data:&lt;BR /&gt;Load *&lt;BR /&gt;Inline [&lt;BR /&gt;ID,Station,Status&lt;BR /&gt;1,1,'ok'&lt;BR /&gt;1,2,'ok'&lt;BR /&gt;1,3,'no'&lt;BR /&gt;2,1,'no'&lt;BR /&gt;2,2,'no'&lt;BR /&gt;2,3,'no'&lt;BR /&gt;3,1,'no'&lt;BR /&gt;3,2,'ok'&lt;BR /&gt;3,3,'no'&lt;BR /&gt;4,1,'ok'&lt;BR /&gt;4,2,'no'&lt;BR /&gt;4,3,'ok'&lt;BR /&gt;];&lt;BR /&gt;Validate:&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; *,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; index(mid(StatusString, index(StatusString, 'no')), 'ok') = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ,'yes', 'no') as Respected&lt;/SPAN&gt;&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;SPAN&gt; ID,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; COncat(Status, '', Station) as StatusString&lt;/SPAN&gt;&lt;BR /&gt;Resident Data&lt;BR /&gt;Group By ID;&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 16:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Verify-the-sequentiality-of-the-data/m-p/2457603#M98579</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-05-29T16:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Verify the sequentiality of the data</title>
      <link>https://community.qlik.com/t5/App-Development/Verify-the-sequentiality-of-the-data/m-p/2458320#M98645</link>
      <description>&lt;P&gt;Thank you, Rob!&lt;/P&gt;
&lt;P&gt;Your suggestion works perfectly for my need!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 15:18:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Verify-the-sequentiality-of-the-data/m-p/2458320#M98645</guid>
      <dc:creator>OrbytaQliker</dc:creator>
      <dc:date>2024-05-31T15:18:38Z</dc:date>
    </item>
  </channel>
</rss>

