<?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: Put a condition on a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853284#M299142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I do the calculated dimension, it won't give any items at all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 18:20:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-06T18:20:10Z</dc:date>
    <item>
      <title>Put a condition on a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853281#M299139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a pivot table that contains the following dimensions:&lt;/P&gt;&lt;P&gt;Division, Item, and Measure.&lt;/P&gt;&lt;P&gt;The other items are expressions that contain calculations based on what the user inputs for the year &amp;amp; quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dilemma is that I don't want items to appear if the shipment quantity for that item is 0.&amp;nbsp; For instance, if the '2014 Q1 Data' column has 0 for the item then I don't want the item to appear at all.&lt;/P&gt;&lt;P&gt;Here's what the chart looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/82875_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I have tried the enable conditional on the item dimension but it's not working.&amp;nbsp; Any other suggestions????&lt;/P&gt;&lt;P&gt;Here is what I put in the enable conditional:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;FYEAR={$(vCompYr)},QUARTER={$(vCompPrd)},Measure={'Shipment Qty'}&amp;gt;}(Value))&amp;lt;&amp;gt;0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 18:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853281#M299139</guid>
      <dc:creator />
      <dc:date>2015-04-03T18:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Put a condition on a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853282#M299140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For each of your other expressions (except &lt;STRONG&gt;2014 Q1 Data&lt;/STRONG&gt;) you can use the following if condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If([2014 Q1 Data] &amp;gt; 0, yourExpression)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;[2014 Q1 Data]&lt;/STRONG&gt; should match the exact label for the expression you want to use (hint: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;[2014 Q1 Data]&lt;/STRONG&gt; will turn blue when it exactly matches the label)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 18:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853282#M299140</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-03T18:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Put a condition on a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853283#M299141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you can try to replace Item dimension with calculated dimension (and label it Item):&lt;/P&gt;&lt;P&gt;aggr(if(sum({&amp;lt;FYEAR={$(vCompYr)},QUARTER={$(vCompPrd)},Measure={'Shipment Qty'}&amp;gt;}(Value))&amp;lt;&amp;gt;0,Item),Item)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always with calculated dimensions - don't forget to check "Suppress when Value is Null"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 20:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853283#M299141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-03T20:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Put a condition on a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853284#M299142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I do the calculated dimension, it won't give any items at all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 18:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853284#M299142</guid>
      <dc:creator />
      <dc:date>2015-04-06T18:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Put a condition on a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853285#M299143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create a flag (1 or null) in the script at item, fiscal year, qtr (lowest level) based on whether shipment qty is 0 or not and use it in the calculated dimesion for item&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 19:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853285#M299143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-06T19:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Put a condition on a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853286#M299144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not?&amp;nbsp; Can you upload an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 21:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Put-a-condition-on-a-dimension/m-p/853286#M299144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-06T21:52:06Z</dc:date>
    </item>
  </channel>
</rss>

