<?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: Create filter with continuous numbers in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013987#M83807</link>
    <description>&lt;P&gt;Both the solutions are working fine.&lt;/P&gt;
&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 19:13:43 GMT</pubDate>
    <dc:creator>sandp707</dc:creator>
    <dc:date>2022-12-07T19:13:43Z</dc:date>
    <item>
      <title>Create filter with continuous numbers</title>
      <link>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013329#M83748</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;How to create a filter based on below conditions.&lt;/P&gt;
&lt;P&gt;I have a column with values 1,2,3,4….,52&lt;/P&gt;
&lt;P&gt;I need filter based on&lt;/P&gt;
&lt;P&gt;if = 1 then delivery 1&lt;/P&gt;
&lt;P&gt;if &amp;lt;= 4 then delivery 4 (this should also include 1)&lt;/P&gt;
&lt;P&gt;if &amp;lt;= 6 then delivery 6 (this should include both the above conditions)&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 17:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013329#M83748</guid>
      <dc:creator>sandp707</dc:creator>
      <dc:date>2022-12-06T17:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create filter with continuous numbers</title>
      <link>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013399#M83753</link>
      <description>&lt;P&gt;As per the syntax&amp;nbsp; &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/if.htm" target="_blank" rel="noopener"&gt;if(condition , then [, else])&lt;/A&gt; like this&lt;/P&gt;
&lt;P&gt;If(Column = 1 ,'Delivery 1',&lt;/P&gt;
&lt;P&gt;If(Column &amp;lt;= 4 ,'Delivery 4',&lt;/P&gt;
&lt;P&gt;If(Column &amp;lt;= 6 ,'Delivery 6'))) as Filter&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 21:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013399#M83753</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-12-06T21:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create filter with continuous numbers</title>
      <link>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013497#M83766</link>
      <description>&lt;P&gt;Hello Brun,&lt;/P&gt;
&lt;P&gt;I am also using the same logic, but it is showing the results as below.&lt;/P&gt;
&lt;P&gt;where for Delivery 1 it is working fine,&lt;/P&gt;
&lt;P&gt;for delivery 4 it should show (1,2,3,4) but it is showing (2,3,4)&lt;/P&gt;
&lt;P&gt;for delivery 6 it should show (1,2,3,4,5,6) but it is showing (5,6) and same for other numbers&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandp707_0-1670395140353.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95577i594EFFA351A498D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandp707_0-1670395140353.png" alt="sandp707_0-1670395140353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandp707_1-1670395207622.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95578i7E833AF6E4CDC9EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandp707_1-1670395207622.png" alt="sandp707_1-1670395207622.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 06:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013497#M83766</guid>
      <dc:creator>sandp707</dc:creator>
      <dc:date>2022-12-07T06:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create filter with continuous numbers</title>
      <link>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013545#M83775</link>
      <description>&lt;P&gt;You need to create a separate table to associate WeekNo with the Deliveries Grouping&lt;/P&gt;
&lt;P&gt;So you will have FactTable with Global_Key and WeekNo&amp;nbsp; &amp;nbsp;and another Table with a one to Many relationship with the Deliveries grouping&lt;/P&gt;
&lt;P&gt;as below&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;You can do it in Two Ways&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FactTable:
Load GlobalKey,WeekNo
From  SomeSourceTable;


WeekGroup:
Load 
WeekNoFrom+iterno()-1  as WeekNo
,Deliveries
While WeekNoFrom+iterno()-1 &amp;lt;=WeekNoTo
;
load * inline [
WeekNoFrom,WeekNoTo,Deliveries
1,1,Last1Week
1,4,Last4Week
1,6,Last6Week
1,13,Last13Week
1,26,Last26Week
1,52,Last52Week
];

Concatenate(WeekGroup)
Load Distinct WeekNo,'ALL'
Resident FactTable;&lt;/LI-CODE&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;
&lt;P&gt;&lt;STRONG&gt;Option 2:&lt;/STRONG&gt;&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;LI-CODE lang="markup"&gt;FactTable:
Load GlobalKey,WeekNo
From  SomeSourceTable;


WeekGroup:
Load Distinct WeekNo,'Last1Week' as Deliveries
Resident FactTable
Where WeekNo=1;

Concatenate(WeekGroup)
Load Distinct WeekNo,'Last4Week' as Deliveries
Resident FactTable
Where WeekNo&amp;lt;=4;

Concatenate(WeekGroup)
Load Distinct WeekNo,'Last6Week' as Deliveries
Resident FactTable
Where WeekNo&amp;lt;=6;
.
.and
.so
.on
.for each grouping
.
.

Concatenate(WeekGroup)
Load Distinct WeekNo,'ALL'
Resident FactTable;
&lt;/LI-CODE&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;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 304px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95600i6026EB1218075448/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&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>Wed, 07 Dec 2022 08:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013545#M83775</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-12-07T08:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create filter with continuous numbers</title>
      <link>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013987#M83807</link>
      <description>&lt;P&gt;Both the solutions are working fine.&lt;/P&gt;
&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 19:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-filter-with-continuous-numbers/m-p/2013987#M83807</guid>
      <dc:creator>sandp707</dc:creator>
      <dc:date>2022-12-07T19:13:43Z</dc:date>
    </item>
  </channel>
</rss>

