<?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: Looping in qlik sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Looping-in-qlik-sense/m-p/2163701#M94491</link>
    <description>&lt;P&gt;I'd suggest to perform this calculation in the load script rather than in one or more heavy-weight expressions.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 08:13:30 GMT</pubDate>
    <dc:creator>steeefan</dc:creator>
    <dc:date>2024-01-22T08:13:30Z</dc:date>
    <item>
      <title>Looping in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Looping-in-qlik-sense/m-p/2163682#M94490</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have created an expression to count the number of workcenters which are having capacity for a week greater than the maxcapacity. Below is the expression i have used to calculate at the week level.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;=Sum({&amp;lt;[Year Period]=&amp;gt;}Aggr(if(Sum({&amp;lt;[Capacity Week]={'$(vMaxCapacityWeek)'},[Year Period]=,[Capacity Year]={'$(vMaxCapacityYear)'}&amp;gt;}[Start Quantity]) &amp;gt;&lt;BR /&gt;((Sum({&amp;lt;KPI_Filter={'Capacity'},&lt;BR /&gt;[Capacity %DateKey]={"&amp;gt;=$(=vCapacityHistoryMinDateKey)&amp;lt;=$(=vCapacityHistoryMaxDateKey)"},&lt;BR /&gt;[Year Period]=&amp;gt;}[Start Quantity])&lt;BR /&gt;/&lt;BR /&gt;Count({&amp;lt;[Capacity %DateKey]={"&amp;gt;=$(=vCapacityHistoryMinDateKey)&amp;lt;=$(=vCapacityHistoryMaxDateKey)"},[Year Period]=&amp;gt;} distinct [Capacity Year-Week]))*1.25),1,0),[Work Center]))&lt;BR /&gt;&lt;BR /&gt;Now i want to repeat the same expression to calculate it for each week greater than or equal to maxweek in the current month.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Looping-in-qlik-sense/m-p/2163682#M94490</guid>
      <dc:creator>Anuhya_kotha</dc:creator>
      <dc:date>2024-11-15T21:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Looping in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Looping-in-qlik-sense/m-p/2163701#M94491</link>
      <description>&lt;P&gt;I'd suggest to perform this calculation in the load script rather than in one or more heavy-weight expressions.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 08:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Looping-in-qlik-sense/m-p/2163701#M94491</guid>
      <dc:creator>steeefan</dc:creator>
      <dc:date>2024-01-22T08:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Looping in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/Looping-in-qlik-sense/m-p/2163940#M94512</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/260187"&gt;@Anuhya_kotha&lt;/a&gt;&amp;nbsp;perhaps this&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;=Sum({&amp;lt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;Month={"$(=Max({&amp;lt;Week={"$(=Max(Week))"}&amp;gt;}Month))"},&lt;/STRONG&gt;&lt;/FONT&gt; [Year Period]=&amp;gt;}Aggr(if(Sum({&amp;lt;&lt;STRONG&gt;Month={"$(=Max({&amp;lt;Week={"$(=Max(Week))"}&amp;gt;}Month))"},&lt;/STRONG&gt; [Capacity Week]={'$(vMaxCapacityWeek)'},[Year Period]=,[Capacity Year]={'$(vMaxCapacityYear)'}&amp;gt;}[Start Quantity]) &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;((Sum({&amp;lt;&lt;STRONG&gt;Month={"$(=Max({&amp;lt;Week={"$(=Max(Week))"}&amp;gt;}Month))"},&lt;/STRONG&gt; KPI_Filter={'Capacity'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Capacity %DateKey]={"&amp;gt;=$(=vCapacityHistoryMinDateKey)&amp;lt;=$(=vCapacityHistoryMaxDateKey)"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Year Period]=&amp;gt;}[Start Quantity])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Count({&amp;lt;&lt;STRONG&gt;Month={"$(=Max({&amp;lt;Week={"$(=Max(Week))"}&amp;gt;}Month))"},&lt;/STRONG&gt; [Capacity %DateKey]={"&amp;gt;=$(=vCapacityHistoryMinDateKey)&amp;lt;=$(=vCapacityHistoryMaxDateKey)"},[Year Period]=&amp;gt;} distinct [Capacity Year-Week]))*1.25),1,0),[Work Center]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Bold one is added now, and the &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;pink&lt;/STRONG&gt;&lt;/FONT&gt; is optional in some cases.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 14:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Looping-in-qlik-sense/m-p/2163940#M94512</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-01-22T14:35:01Z</dc:date>
    </item>
  </channel>
</rss>

