<?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: Calculated dimension : count distinct locations per product where demand is &amp;gt;0 and location is a &amp;quot;plant&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-count-distinct-locations-per-product-where/m-p/2453513#M1225702</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/230969"&gt;@Sergej_Komar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I would ideally try like this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-create a temporary table that only includes locations that are classified as "plant" and have a demand greater than zero (using a where clause);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-create a summary table that counts the number of distinct plants per product;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-create your dimension that groups products by the number of plants where they are produced.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2024 07:51:12 GMT</pubDate>
    <dc:creator>F_B</dc:creator>
    <dc:date>2024-05-17T07:51:12Z</dc:date>
    <item>
      <title>Calculated dimension : count distinct locations per product where demand is &gt;0 and location is a "plant"</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-count-distinct-locations-per-product-where/m-p/2434298#M1225522</link>
      <description>&lt;P&gt;Hi community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would appreciate your support on following: I need to build calculated dimension where it would represent a count of distinct locations per product where demand is &amp;gt;0 and location is a "plant", to further build a graph where I would see e.g, X products are produced on 1 plant, Y products are produced on 2 plants etc&lt;/P&gt;
&lt;P&gt;There is a data set consisting of&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;Material as %Material,&lt;BR /&gt;Sold_to_party as %Customer,&lt;BR /&gt;Location_code as %Location,&lt;BR /&gt;Year("Month")&amp;amp;'-'&amp;amp;num( Month("Month"), '00')&amp;amp;'__'&amp;amp;Material&amp;amp;'__'&amp;amp;Location_code&amp;amp;'__'&amp;amp;Sold_to_party as %Key1,&lt;BR /&gt;Year("Month")&amp;amp;'-'&amp;amp;num( Month("Month"), '00')&amp;amp;'__'&amp;amp;Location_code&amp;amp;'__'&amp;amp;Material as %Key2,&lt;BR /&gt;Year("Month")&amp;amp;'-'&amp;amp;num( Month("Month"), '00') as %YearMonth,&lt;BR /&gt;Demand_PCS as QTY,&lt;BR /&gt;GlobalSales_EUR as Sales_EUR&lt;/P&gt;
&lt;P&gt;There is a separate table where there is match between Location (code) and location Type&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 14:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-count-distinct-locations-per-product-where/m-p/2434298#M1225522</guid>
      <dc:creator>Sergej_Komar</dc:creator>
      <dc:date>2024-03-25T14:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension : count distinct locations per product where demand is &gt;0 and location is a "plant"</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-count-distinct-locations-per-product-where/m-p/2453513#M1225702</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/230969"&gt;@Sergej_Komar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I would ideally try like this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-create a temporary table that only includes locations that are classified as "plant" and have a demand greater than zero (using a where clause);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-create a summary table that counts the number of distinct plants per product;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-create your dimension that groups products by the number of plants where they are produced.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 07:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-count-distinct-locations-per-product-where/m-p/2453513#M1225702</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-05-17T07:51:12Z</dc:date>
    </item>
  </channel>
</rss>

