<?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: Counting two different expressions by week name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-two-different-expressions-by-week-name/m-p/1595838#M737151</link>
    <description>&lt;P&gt;Thanks. When there is a link between the calendar and the shipments table, I get same counting of arrivals and departures in the same week:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11screenshot.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14396i384365B34F4CDB9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="11screenshot.jpg" alt="11screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, when there isn't a link between the calendar and the shipments, I get the same counting of departures and arrivals for&amp;nbsp;&lt;STRONG&gt;all weeks&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s-shot.jpg" style="width: 915px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14395i29EB7D0A3E4FB777/image-size/large?v=v2&amp;amp;px=999" role="button" title="s-shot.jpg" alt="s-shot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'll try the canonical date approach and will update.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Eduardo Alvarez&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2019 17:21:58 GMT</pubDate>
    <dc:creator>eadbhard</dc:creator>
    <dc:date>2019-06-25T17:21:58Z</dc:date>
    <item>
      <title>Counting two different expressions by week name</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-two-different-expressions-by-week-name/m-p/1595350#M737149</link>
      <description>&lt;P&gt;Hi there, I have a list of warehouse reference numbers, each with an arrival date and a departure date:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dates.png" style="width: 239px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14301i4C4663AB3E917794/image-dimensions/239x219?v=v2" width="239" height="219" role="button" title="Dates.png" alt="Dates.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Although not evident in the table above, some shipments do not have a departure date&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Now I need to create a bar chart, counting how many arrivals and how many departures are processed each week of the year:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chart.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14302i6629297311618557/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chart.png" alt="chart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have added two columns to the script that loads the shipments,&lt;/P&gt;&lt;P&gt;Load *,&lt;BR /&gt;WeekName(Arrival_Date) as &lt;STRONG&gt;Week_Arrival&lt;/STRONG&gt;,&lt;BR /&gt;WeekName(Departure_Date) as &lt;STRONG&gt;Week_Departure&lt;/STRONG&gt;,&lt;BR /&gt;Resident Shipments;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I am using a master calendar script (autogenerated calendar) that has a &lt;STRONG&gt;Week_Name&lt;/STRONG&gt; column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;Now for the &lt;/FONT&gt;bar chart&lt;FONT face="inherit"&gt;, I know the dimension would be the&amp;nbsp;&lt;STRONG&gt;Week_Name&lt;/STRONG&gt; column from the calendar, but I don't know what the two expressions for the counting of arrivals and departures per week would be.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;Thanks for any help,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;-Eduardo&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-two-different-expressions-by-week-name/m-p/1595350#M737149</guid>
      <dc:creator>eadbhard</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting two different expressions by week name</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-two-different-expressions-by-week-name/m-p/1595429#M737150</link>
      <description>&lt;P&gt;Try below option&lt;/P&gt;&lt;P&gt;Assuming that there is no connection with master calendar generated.&lt;/P&gt;&lt;P&gt;Exp1: count( distinct {&amp;lt;&lt;STRONG&gt;Week_Name&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;=p(&lt;STRONG&gt;Week_Arrival)&amp;gt;} &lt;/STRONG&gt;shipmentID&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Exp2: count( distinct {&amp;lt;&lt;STRONG&gt;Week_Name&amp;nbsp;=p(Week_Departure)&lt;/STRONG&gt;&amp;gt;} shipmentID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Else you need to create one ConicalDate and common calendar for these two dates , check below link&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 07:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-two-different-expressions-by-week-name/m-p/1595429#M737150</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2019-06-25T07:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Counting two different expressions by week name</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-two-different-expressions-by-week-name/m-p/1595838#M737151</link>
      <description>&lt;P&gt;Thanks. When there is a link between the calendar and the shipments table, I get same counting of arrivals and departures in the same week:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11screenshot.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14396i384365B34F4CDB9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="11screenshot.jpg" alt="11screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, when there isn't a link between the calendar and the shipments, I get the same counting of departures and arrivals for&amp;nbsp;&lt;STRONG&gt;all weeks&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s-shot.jpg" style="width: 915px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14395i29EB7D0A3E4FB777/image-size/large?v=v2&amp;amp;px=999" role="button" title="s-shot.jpg" alt="s-shot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'll try the canonical date approach and will update.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Eduardo Alvarez&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-two-different-expressions-by-week-name/m-p/1595838#M737151</guid>
      <dc:creator>eadbhard</dc:creator>
      <dc:date>2019-06-25T17:21:58Z</dc:date>
    </item>
  </channel>
</rss>

