<?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 Turn IF Expression to Calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Turn-IF-Expression-to-Calculated-Dimension/m-p/928636#M972519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to turn the following expression in a straight table to a calculated dimension. I can't get the syntax right. Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Count(DISTINCT{&amp;lt;[Store Status]= {'Not On Store'}&amp;gt;} Territory) &amp;gt; 0, [Territory Name],Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 15:51:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-10T15:51:13Z</dc:date>
    <item>
      <title>Turn IF Expression to Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Turn-IF-Expression-to-Calculated-Dimension/m-p/928636#M972519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to turn the following expression in a straight table to a calculated dimension. I can't get the syntax right. Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Count(DISTINCT{&amp;lt;[Store Status]= {'Not On Store'}&amp;gt;} Territory) &amp;gt; 0, [Territory Name],Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turn-IF-Expression-to-Calculated-Dimension/m-p/928636#M972519</guid>
      <dc:creator />
      <dc:date>2015-09-10T15:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Turn IF Expression to Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Turn-IF-Expression-to-Calculated-Dimension/m-p/928637#M972520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;whenever you use an aggregation as part of a calculated dimension you need to use aggr &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;aggr(only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Territory Name] = &lt;/SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;"Count(DISTINCT{&amp;lt;[Store Status]= {'Not On Store'}&amp;gt;} Territory) &amp;gt; 0"}&amp;gt;} [Territory Name]),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Territory Name])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turn-IF-Expression-to-Calculated-Dimension/m-p/928637#M972520</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-09-10T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Turn IF Expression to Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Turn-IF-Expression-to-Calculated-Dimension/m-p/928638#M972521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( Aggr( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count(DISTINCT{&amp;lt;[Store Status]= {'Not On Store'}&amp;gt;} Territory) , &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; [Territory Name]) &amp;gt; 0 , &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; [Territory Name] )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turn-IF-Expression-to-Calculated-Dimension/m-p/928638#M972521</guid>
      <dc:creator />
      <dc:date>2015-09-10T15:56:57Z</dc:date>
    </item>
  </channel>
</rss>

