<?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 Counting two expressions by the same dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-two-expressions-by-the-same-dimension/m-p/1606258#M737304</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a fact table with shipment number, shipment arrival week and shipment departure week columns. Fact table is linked to a master calendar table that has a calendar week column:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 760px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16058iD81A09504648971C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need a bar chart where the dimension would a week, and the expressions would be two bars, one showing how many shipments arrived in the week and another bar showing how many shipments departed in the same week. Something like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture2.png" style="width: 779px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16059i8E8F2B920BE12028/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture2.png" alt="Picture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I think the dimension of the chart would be the calendar week from the calendar table, but I can't figure out the suitable "Count(shipment_number)" expressions.&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated, thank you!&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, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>eadbhard</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Counting two expressions by the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-two-expressions-by-the-same-dimension/m-p/1606258#M737304</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a fact table with shipment number, shipment arrival week and shipment departure week columns. Fact table is linked to a master calendar table that has a calendar week column:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 760px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16058iD81A09504648971C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need a bar chart where the dimension would a week, and the expressions would be two bars, one showing how many shipments arrived in the week and another bar showing how many shipments departed in the same week. Something like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture2.png" style="width: 779px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16059i8E8F2B920BE12028/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture2.png" alt="Picture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I think the dimension of the chart would be the calendar week from the calendar table, but I can't figure out the suitable "Count(shipment_number)" expressions.&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated, thank you!&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, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-two-expressions-by-the-same-dimension/m-p/1606258#M737304</guid>
      <dc:creator>eadbhard</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting two expressions by the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-two-expressions-by-the-same-dimension/m-p/1606290#M737305</link>
      <description>&lt;P&gt;i think you need canonical date. see 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;</description>
      <pubDate>Thu, 25 Jul 2019 21:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-two-expressions-by-the-same-dimension/m-p/1606290#M737305</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-07-25T21:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Counting two expressions by the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-two-expressions-by-the-same-dimension/m-p/1606574#M737306</link>
      <description>&lt;P&gt;Thank you, you got that right! I made an additional, 'canonical date' based table, where each record has only three columns: the shipment number, a date (the canonical date), and the "Event" column, which could be either 'Received' or 'Shipped'. Then the expressions were relatively easy to figure out:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Event={'Received'}&amp;gt;} Shipment_Number)&lt;BR /&gt;=Count({&amp;lt;Event={'Shipped'}&amp;gt;} Shipment_Number)&lt;/P&gt;&lt;P&gt;The dimension was the canonical date on the master calendar, which is linked to the canonical date of the additional table I created.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;-Eduardo&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-two-expressions-by-the-same-dimension/m-p/1606574#M737306</guid>
      <dc:creator>eadbhard</dc:creator>
      <dc:date>2019-07-26T15:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Counting two expressions by the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-two-expressions-by-the-same-dimension/m-p/1606575#M737307</link>
      <description>&lt;P&gt;my pleasure&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-two-expressions-by-the-same-dimension/m-p/1606575#M737307</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-07-26T15:28:38Z</dc:date>
    </item>
  </channel>
</rss>

