<?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 QS Cycle Structure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QS-Cycle-Structure/m-p/1851244#M70322</link>
    <description>&lt;P&gt;Hello Qlik-Experts,&lt;/P&gt;
&lt;P&gt;Is it possible to find out exactly which lines do not correspond to a cyclic structure?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SonPhan_0-1635157004907.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65149iF27B1938C70054E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="SonPhan_0-1635157004907.png" alt="SonPhan_0-1635157004907.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As a small example, I have set up a simulated scenario where staff track their time. Where G = Go and K = Come to work.&lt;/P&gt;
&lt;P&gt;In this example, Roman has logged out before he has even started working. This is incorrect information and should therefore be deleted from the data model.&lt;BR /&gt;When you concatenate all the CBUCHUNGSZEITPUNKT togetether it should looks like this:&lt;BR /&gt;KGKGKGKGKG (meaning starting with K and ending with G)&lt;/P&gt;
&lt;P&gt;Hopefully you can help me!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 10:34:24 GMT</pubDate>
    <dc:creator>SonPhan</dc:creator>
    <dc:date>2021-10-25T10:34:24Z</dc:date>
    <item>
      <title>QS Cycle Structure</title>
      <link>https://community.qlik.com/t5/App-Development/QS-Cycle-Structure/m-p/1851244#M70322</link>
      <description>&lt;P&gt;Hello Qlik-Experts,&lt;/P&gt;
&lt;P&gt;Is it possible to find out exactly which lines do not correspond to a cyclic structure?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SonPhan_0-1635157004907.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65149iF27B1938C70054E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="SonPhan_0-1635157004907.png" alt="SonPhan_0-1635157004907.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As a small example, I have set up a simulated scenario where staff track their time. Where G = Go and K = Come to work.&lt;/P&gt;
&lt;P&gt;In this example, Roman has logged out before he has even started working. This is incorrect information and should therefore be deleted from the data model.&lt;BR /&gt;When you concatenate all the CBUCHUNGSZEITPUNKT togetether it should looks like this:&lt;BR /&gt;KGKGKGKGKG (meaning starting with K and ending with G)&lt;/P&gt;
&lt;P&gt;Hopefully you can help me!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 10:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QS-Cycle-Structure/m-p/1851244#M70322</guid>
      <dc:creator>SonPhan</dc:creator>
      <dc:date>2021-10-25T10:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: QS Cycle Structure</title>
      <link>https://community.qlik.com/t5/App-Development/QS-Cycle-Structure/m-p/1851873#M70363</link>
      <description>&lt;P&gt;This works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Binary [lib://Documents/Qlik/Sense/Apps/Timestamp.qvf];

Rename Table LANDWEHRZEITERFINTERN_FINAL to LANDWEHRZEITERFINTERN;

Drop Fields 
    [First Check],
    [Final Check]
From LANDWEHRZEITERFINTERN;


LANDWEHRZEITERFINTERN_TMP:
NoConcatenate
Load *,
	if(IPERSONALNR&amp;lt;&amp;gt;peek(IPERSONALNR) and CBUCHUNGSTYP='G','To Be Deleted','OK') as [First Check]//Check if starts with G
Resident LANDWEHRZEITERFINTERN
	Order by IPERSONALNR,DBUCHUNGSZEITPUNKT asc;
Drop Tables LANDWEHRZEITERFINTERN;  

LANDWEHRZEITERFINTERN_FINAL:
NoConcatenate
Load *,
	if([First Check]='To Be Deleted' or IPERSONALNR&amp;lt;&amp;gt;peek(IPERSONALNR) and CBUCHUNGSTYP='K','To Be Deleted','OK') as [Final Check]	//Check if ends with K
Resident LANDWEHRZEITERFINTERN_TMP	
	Order by IPERSONALNR,DBUCHUNGSZEITPUNKT desc;
Drop Field [First Check];
Drop Table LANDWEHRZEITERFINTERN_TMP;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the result is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-10-26 15_21_44-Qlik Sense Desktop.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65249iE9DE4F26CA8D00B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-10-26 15_21_44-Qlik Sense Desktop.png" alt="2021-10-26 15_21_44-Qlik Sense Desktop.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you want to exclude "To be Deleted" rows just perform a resident load Where [Final Check]&amp;lt;&amp;gt;'To Be Deleted'&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 13:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QS-Cycle-Structure/m-p/1851873#M70363</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2021-10-26T13:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: QS Cycle Structure</title>
      <link>https://community.qlik.com/t5/App-Development/QS-Cycle-Structure/m-p/1853591#M70477</link>
      <description>&lt;P&gt;Thank you this works for me!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 10:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QS-Cycle-Structure/m-p/1853591#M70477</guid>
      <dc:creator>SonPhan</dc:creator>
      <dc:date>2021-10-29T10:42:07Z</dc:date>
    </item>
  </channel>
</rss>

