<?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: Count in straight table with variable as condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-in-straight-table-with-variable-as-condition-amp-inline/m-p/1840672#M69620</link>
    <description>This dimension is included in a table containing 1million rows and indicated when an order has been shipped&lt;BR /&gt;The inline table is used to determine the week of reference to analyse to see what has been shipped and what remains to be shipped.&lt;BR /&gt;I can not / don’t want to include the inline data to the main table nor the contrary.&lt;BR /&gt;I ve tried not to use the inline table to determine the service level but then the result was not matching with our company policy to calculate the service level&lt;BR /&gt;&lt;BR /&gt;Thanks for your interest&lt;BR /&gt;</description>
    <pubDate>Thu, 30 Sep 2021 19:08:49 GMT</pubDate>
    <dc:creator>patricesalem</dc:creator>
    <dc:date>2021-09-30T19:08:49Z</dc:date>
    <item>
      <title>Count in straight table with variable as condition &amp; inline table</title>
      <link>https://community.qlik.com/t5/App-Development/Count-in-straight-table-with-variable-as-condition-amp-inline/m-p/1840635#M69617</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm calculating a service level per week (QLIK SENSE SERVER may 2021)&lt;/P&gt;&lt;P&gt;The week to analyse is generated by an inline load script (it is not joined to any table of my database structure).&lt;/P&gt;&lt;P&gt;I'm trying to get the number of orders shipped per year :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="patricesalem_0-1633022263315.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63094i8CD3BEF3E7DCDF44/image-size/medium?v=v2&amp;amp;px=400" role="button" title="patricesalem_0-1633022263315.png" alt="patricesalem_0-1633022263315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;WEEK_REFERENCE = [Year_Week_Analysis]&lt;/P&gt;&lt;P&gt;I've tried the following expression to get the nb_of_orders_to_ship :&lt;/P&gt;&lt;P&gt;Count ({&amp;lt;WEEK_SM_REELLE_shipped_auto={Year_Week_Analysis}&amp;gt;} distinct COMMANDE)&amp;nbsp; =&amp;gt; NO LUCK&lt;/P&gt;&lt;P&gt;Count ({&amp;lt;WEEK_SM_REELLE_shipped_auto={'202138}&amp;gt;} distinct COMMANDE)&amp;nbsp; =&amp;gt; the expression works but for sure display the result for week 38 on all lines...not the expected result !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="patricesalem_0-1633022894754.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63096i4AB4A178FE065B73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="patricesalem_0-1633022894754.png" alt="patricesalem_0-1633022894754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count ({&amp;lt;WEEK_SM_REELLE_shipped_auto={"=$(vYearWeekAnalysis)"}&amp;gt;} distinct COMMANDE)&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;gt; the variable&amp;nbsp;vYearWeekAnalysis is equal to&amp;nbsp; [Year_Week_Analysis] : in that case it does not work&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="patricesalem_1-1633022700719.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63095iD040951D331BD179/image-size/medium?v=v2&amp;amp;px=400" role="button" title="patricesalem_1-1633022700719.png" alt="patricesalem_1-1633022700719.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="patricesalem_1-1633022941719.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63097i2BDB5B9A5689E1C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="patricesalem_1-1633022941719.png" alt="patricesalem_1-1633022941719.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;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; if I set&amp;nbsp;&amp;nbsp;vYearWeekAnalysis to a fixed value to 202138 then I get the expression to work (but with the same value for all lines in the table for sure).&lt;/P&gt;&lt;P&gt;Any idea how to get it to work bearing in mind that the inline table is not joined to any table in my structure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-in-straight-table-with-variable-as-condition-amp-inline/m-p/1840635#M69617</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2024-11-15T23:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count in straight table with variable as condition &amp; inline table</title>
      <link>https://community.qlik.com/t5/App-Development/Count-in-straight-table-with-variable-as-condition-amp-inline/m-p/1840647#M69618</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May I please know why cant you use&amp;nbsp;&lt;STRONG&gt;WEEK_SM_REELLE_shipped_auto&amp;nbsp;&lt;/STRONG&gt;in the table dimension ?&lt;/P&gt;&lt;P&gt;As the WEEK_REFERENCE is not associated with the data, data will not split as per the weeks.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 17:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-in-straight-table-with-variable-as-condition-amp-inline/m-p/1840647#M69618</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-09-30T17:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count in straight table with variable as condition</title>
      <link>https://community.qlik.com/t5/App-Development/Count-in-straight-table-with-variable-as-condition-amp-inline/m-p/1840672#M69620</link>
      <description>This dimension is included in a table containing 1million rows and indicated when an order has been shipped&lt;BR /&gt;The inline table is used to determine the week of reference to analyse to see what has been shipped and what remains to be shipped.&lt;BR /&gt;I can not / don’t want to include the inline data to the main table nor the contrary.&lt;BR /&gt;I ve tried not to use the inline table to determine the service level but then the result was not matching with our company policy to calculate the service level&lt;BR /&gt;&lt;BR /&gt;Thanks for your interest&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Sep 2021 19:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-in-straight-table-with-variable-as-condition-amp-inline/m-p/1840672#M69620</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2021-09-30T19:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count in straight table with variable as condition &amp; inline table</title>
      <link>https://community.qlik.com/t5/App-Development/Count-in-straight-table-with-variable-as-condition-amp-inline/m-p/1840772#M69630</link>
      <description>&lt;P&gt;So from what I understand, I need to review my database model....&lt;/P&gt;&lt;P&gt;It's on the way&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 06:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-in-straight-table-with-variable-as-condition-amp-inline/m-p/1840772#M69630</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2021-10-01T06:50:21Z</dc:date>
    </item>
  </channel>
</rss>

