<?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: Variable in expression in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901756#M658622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using this expression in a straight table or pivot table???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If this is in the straight table, have you tried using Sum for total mode instead of using the expression total. &lt;/LI&gt;&lt;LI&gt;If this is in the pivot table, then you might need to use Aggr function.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, I will need to look at the table to give you better solution.&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, 24 Apr 2015 13:08:29 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-04-24T13:08:29Z</dc:date>
    <item>
      <title>Variable in expression in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901752#M658618</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 have managed to setup a variable in a straight table/chart name&lt;/P&gt;&lt;P&gt;='Ageing History Performance ' &amp;amp; '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(vShowChart)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Values in vShowChart are 120Days+, 150Days+ and 180Days+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to add this into an expression as well so I only have one chart, not three. I am missing something somewhere. Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current Expression in the charts are SUM({&amp;lt;Type={'Current'}&amp;gt;}H120DaysPlus), then the second chart &lt;SPAN style="font-size: 13.3333330154419px;"&gt;SUM({&amp;lt;Type={'Current'}&amp;gt;}H160DaysPlus) and the 3rd chart &lt;SPAN style="font-size: 13.3333330154419px;"&gt;SUM({&amp;lt;Type={'Current'}&amp;gt;}H180DaysPlus)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this but, the Expression box says the syntax is OK, but it is not givig through any values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(If(Type='Current' and $(vShowChart) = '120Days+', H120DaysPlus),If(Type='Current' and $(vShowChart) = '150Days+', H150DaysPlus),If(Type='Current' and $(vShowChart) = '180Days+', H180DaysPlus))) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 11:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901752#M658618</guid>
      <dc:creator />
      <dc:date>2015-04-24T11:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in expression in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901753#M658619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&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;STRONG&gt;=If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vShowChart = '120Days+', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; SUM({&amp;lt;Type={'Current'}&amp;gt;}H120DaysPlus), &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vShowChart = '150Days+', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; SUM({&amp;lt;Type={'Current'}&amp;gt;}H150DaysPlus),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&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;STRONG&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;vShowChart = '180Days+', &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt; SUM({&amp;lt;Type={'Current'}&amp;gt;}H180DaysPlus))))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sunny&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 12:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901753#M658619</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-24T12:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in expression in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901754#M658620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got zero values on this one, sorry, sunindias one is working though. I have an extra question on that one though which I will ask in sunindias answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 12:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901754#M658620</guid>
      <dc:creator />
      <dc:date>2015-04-24T12:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in expression in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901755#M658621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works really well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put this same code into another piece of code, it is working but for sum reason it is not totalling correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If(RowNo()=1,&lt;/TD&gt;&lt;TD&gt;(Bottom(If(vShowChart = '120Days+', SUM({&amp;lt;Type={'Current'}&amp;gt;}H120DaysPlus),&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; If(vShowChart = '150Days+', SUM({&amp;lt;Type={'Current'}&amp;gt;}H150DaysPlus),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(vShowChart = '180Days+', SUM({&amp;lt;Type={'Current'}&amp;gt;}H180DaysPlus)))))), Above(Previous1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original code for the 120Day+ is 100% but the moment I add the extra code the figures are wrong. Can you see something obviously wrong which could cause this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If(RowNo()=1,&lt;/TD&gt;&lt;TD&gt;(Bottom(sum({&amp;lt;Type={'Previous'}&amp;gt;} H120DaysPlus))), Above(Previous1))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 13:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901755#M658621</guid>
      <dc:creator />
      <dc:date>2015-04-24T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in expression in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901756#M658622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using this expression in a straight table or pivot table???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If this is in the straight table, have you tried using Sum for total mode instead of using the expression total. &lt;/LI&gt;&lt;LI&gt;If this is in the pivot table, then you might need to use Aggr function.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, I will need to look at the table to give you better solution.&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, 24 Apr 2015 13:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901756#M658622</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-24T13:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in expression in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901757#M658623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a straight table, not sure exactly but what you mean with the sum for total mode. I am attaching a reduced model for you. You will see there is an opening balance which is the previous months closing balance. I brought this in to calculate the Reduction column. I get this data from the previous1 column. It works perfectly if I do a chart per ageing period, i.e. 120, 150, 180, but No I am trying to get smarter code and have one chart instead of three. The other code you gave me for this is in the Actual column. That works perfectly as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am not just missing something silly, or making a obvious mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compare the first and second straight table for Ageing History Performance 120Days+, the first one has the correct values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to have&amp;nbsp; a look at the code behind it the hidden script password is Qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 13:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901757#M658623</guid>
      <dc:creator />
      <dc:date>2015-04-24T13:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in expression in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901758#M658624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Total mode, look at this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Total Mode.PNG" class="jive-image image-1" src="/legacyfs/online/85010_Total Mode.PNG" style="height: 363px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also find attached the application ans see if this is what you want???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 13:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901758#M658624</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-24T13:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in expression in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901759#M658625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Apr 24, 2015 at 2:15 PM, Vikram Vangala &amp;lt;qcwebmaster@qlikview.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 06:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-expression-in-straight-table/m-p/901759#M658625</guid>
      <dc:creator />
      <dc:date>2015-04-28T06:55:27Z</dc:date>
    </item>
  </channel>
</rss>

