<?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: dollar sign expansion inside if statement not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169518#M380346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope..does not work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jul 2016 12:41:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-04T12:41:25Z</dc:date>
    <item>
      <title>dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169510#M380338</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;When I use the below expression in a chart, it gives an error that allocated memory exceeded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14676349204977934" jivemacro_uid="_14676349204977934" modifiedtitle="true"&gt;
&lt;P&gt;if(GetSelectedCount(%SubDimension) &amp;gt; 0,&lt;/P&gt;
&lt;P&gt;SUM(TOTAL &amp;lt;$(=%SubDimension)&amp;gt; Spend),&lt;/P&gt;
&lt;P&gt;SUM(Spend)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the below expression works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14676349484397120 jive_text_macro" jivemacro_uid="_14676349484397120" modifiedtitle="true"&gt;
&lt;P&gt;if(GetSelectedCount(%SubDimension) &amp;gt; 0,&lt;/P&gt;
&lt;P&gt;SUM(TOTAL Spend),&lt;/P&gt;
&lt;P&gt;SUM(Spend)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one alone also works&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14676351196594824" jivemacro_uid="_14676351196594824"&gt;
&lt;P&gt;SUM(TOTAL &amp;lt;$(=%SubDimension)&amp;gt; Spend)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem becomes when I use the dollar sign expansion inside the total and if it is inside an if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOTAL &amp;lt;$(=%SubDimension)&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to fix this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169510#M380338</guid>
      <dc:creator />
      <dc:date>2016-07-04T12:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169511#M380339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=%SubDimension?&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;Calculated Dimension?&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;Then it will not work... you can't use calculated dimension outside it's definition...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide sample data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169511#M380339</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-07-04T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169512#M380340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said. It works already. It is just dynamically picking up the dimension based on the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem is that it is not working inside the if statement. Otherwise, the expression alone works pretty well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169512#M380340</guid>
      <dc:creator />
      <dc:date>2016-07-04T12:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169513#M380341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%SubDimension is coming from a field. It has the names of the dimension and when used with dollar sign, will point to the actual dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169513#M380341</guid>
      <dc:creator />
      <dc:date>2016-07-04T12:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169514#M380342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you putting $ sign over here ? What kind of field is "%SubDimension" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(%SubDimension) &amp;gt; 0,&amp;nbsp; SUM(TOTAL &amp;lt;%SubDimension)&amp;gt; Spend),&amp;nbsp; SUM(Spend)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169514#M380342</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-07-04T12:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169515#M380343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because the %Subdimension field contains the names of the dimension. For example, Supplier, Product etc. When you use it with $ sign, it will refer to the actual dimension. For example, if you select Product from the list, it will as if a product dimension was used in the dimension field. Please read the dollar sign expansion first to understand my problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169515#M380343</guid>
      <dc:creator />
      <dc:date>2016-07-04T12:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169516#M380344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;Try below one..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;if(GetSelectedCount(%SubDimension) &amp;gt; 0,&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;SUM(TOTAL &amp;lt;$(=Concat(DISTINCT &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;%SubDimension&lt;/SPAN&gt;,','))&amp;gt; Spend),&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;SUM(Spend)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169516#M380344</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-07-04T12:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169517#M380345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;Try below one..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if(GetSelectedCount(%SubDimension) &amp;gt; 0, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;SUM(TOTAL &amp;lt;$(=Concat(DISTINCT &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;%SubDimension&lt;/SPAN&gt;,','))&amp;gt; Spend), &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;SUM(Spend) &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169517#M380345</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-07-04T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169518#M380346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope..does not work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169518#M380346</guid>
      <dc:creator />
      <dc:date>2016-07-04T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169519#M380347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide sample data... or sample app. Difficult to guess and answer..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169519#M380347</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-07-04T12:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169520#M380348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the variable contains the name of a single dimension field, omit the equal sign inside the $-expansion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169520#M380348</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-07-04T12:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169521#M380349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a variable. It is a field that contains the names of the dimensions. It has the names of six dimensions but the user can select which dimension should the chart show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dollar equal sign then converts the selected value from the list to the dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression alone works exactly the way we want. However, inside the if statement, it stops to work if we have this kind of expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169521#M380349</guid>
      <dc:creator />
      <dc:date>2016-07-04T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169522#M380350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this expression being used in a PIVOT table? with your dimension which holds &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Supplier, Product values &lt;/SPAN&gt;moved to headers? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 13:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169522#M380350</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-07-04T13:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169523#M380351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;Add two expressions with conditional enabled to overcome the memory issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Expression1:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;Conditional = if(GetSelectedCount(%SubDimension) &amp;gt; 0, 1 , 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;Expression =&amp;nbsp; &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;SUM(TOTAL &amp;lt;$(=%SubDimension)&amp;gt; Spend) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Expression2:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;Conditional = if(GetSelectedCount(%SubDimension) &amp;gt; 0, 0 , 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; font-family: inherit; color: black; background-color: inherit;"&gt;Expression =&amp;nbsp; &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;SUM(Spend) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 13:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169523#M380351</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-07-04T13:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169524#M380352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi syed,&lt;/P&gt;&lt;P&gt;I just created the sample. I think, it is working fine for me. Can you provide your sample which is not working for you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;it is not going to else part, if there is no selection because of null. that will create the expression like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/130038_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The above one is error expression. that's why getting null result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on Peter's suggestion, you can add the variable and use it in your expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 13:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169524#M380352</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-07-04T13:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: dollar sign expansion inside if statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169525#M380353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you replace $(=%SubDimension) with $(vSelectedDimension) and in Settings-&amp;gt;Variable Overview you defined vSelectedDimension as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=%SubDimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be easier to trace substitutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 13:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-sign-expansion-inside-if-statement-not-working/m-p/1169525#M380353</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-07-04T13:31:37Z</dc:date>
    </item>
  </channel>
</rss>

