<?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 disappears when drill down in table chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901492#M313571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You variable refers to a field without an aggregation function. This means that if you have more than one possible values in the field, QlikView does not know which one you expect to get back. In such case the variable will get the value NULL, which is displayed by a dash. This is identical to the functionality of Only().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;v%Complete = Only ( MTD%COMPLETE )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable is expected to have a value, you need to define a aggregation that returns the expected value, for example Count() Sum() Max() or Min(). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that you change your expression slightly, to properly apply the numeric format. So first do your aggregation, and then apply the format on the result. Also notice that I added a # sign in the dollar expansion, to ensure that you expand a numerical value from your variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num( (Column(1) / Column(2))&lt;SPAN style="font-size: 13.3333330154419px;"&gt;-$(#v%Complete)&lt;/SPAN&gt; ,'#,##0%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 03:09:03 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2015-05-21T03:09:03Z</dc:date>
    <item>
      <title>Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901491#M313570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H5&gt;&lt;SPAN style="color: #000000; font-size: 14pt;"&gt;I have a variable defined as:&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;v%Complete=&lt;SPAN style="color: #800000;"&gt;MTD%COMPLETE &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H5&gt;&lt;P&gt; &lt;/P&gt;&lt;H5&gt;&lt;SPAN style="color: #000000; font-size: 14pt;"&gt;It's used in a table chart with the expression:&amp;nbsp; &lt;/SPAN&gt;&lt;/H5&gt;&lt;H5&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;Num&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;SPAN style="color: #0000ff;"&gt;Column&lt;/SPAN&gt;(1) / &lt;SPAN style="color: #0000ff;"&gt;Column&lt;/SPAN&gt;(2),'#,##0%')-&lt;EM style="color: #808080;"&gt;$(v%Complete) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/H5&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;H4&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG style=": ; color: #000000;"&gt;The table chart has a drillable group.&amp;nbsp; The variable and expression above work fine at the top group&amp;nbsp; but the variable disappears after drill down.&amp;nbsp; Any suggestions or advice is welcome.&amp;nbsp; Thanks!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #808080; font-size: 14pt;"&gt;P.S.&amp;nbsp; I also tried defining the variable using set analysis and that completely zeroed out the variable.&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;RSD&lt;/SPAN&gt;={'*'}&amp;gt;}&lt;SPAN style="color: #993300;"&gt;MTD&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;%COMPLETE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 21:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901491#M313570</guid>
      <dc:creator />
      <dc:date>2015-05-20T21:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901492#M313571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You variable refers to a field without an aggregation function. This means that if you have more than one possible values in the field, QlikView does not know which one you expect to get back. In such case the variable will get the value NULL, which is displayed by a dash. This is identical to the functionality of Only().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;v%Complete = Only ( MTD%COMPLETE )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable is expected to have a value, you need to define a aggregation that returns the expected value, for example Count() Sum() Max() or Min(). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that you change your expression slightly, to properly apply the numeric format. So first do your aggregation, and then apply the format on the result. Also notice that I added a # sign in the dollar expansion, to ensure that you expand a numerical value from your variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num( (Column(1) / Column(2))&lt;SPAN style="font-size: 13.3333330154419px;"&gt;-$(#v%Complete)&lt;/SPAN&gt; ,'#,##0%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 03:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901492#M313571</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-05-21T03:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901493#M313572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks you for a thorough explanation to go along with the solution.&amp;nbsp; The formulas you suggested works on the first level of the group in the chart table but still disappears when I drill down.&amp;nbsp; To simplify my example, I'm using&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;=(&lt;SPAN style="color: #808080;"&gt;&lt;EM style="color: #808080;"&gt;&lt;EM&gt;vMTDCalc&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;) to return a variable used in calculations on a straight table.&amp;nbsp; The correct number displays at the top of my group/hierachy, but when I drill down a level, the amount zeros out.&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Thanks again!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 22:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901493#M313572</guid>
      <dc:creator />
      <dc:date>2015-05-21T22:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901494#M313573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible for your to provide a sample QVW file, so I can see your setup in more detail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 23:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901494#M313573</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-05-21T23:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901495#M313574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the sample qvw.&amp;nbsp; Please note the % of complete file, based on a variable, zeros out when drilling down. R9 row to drill down on and see the issue.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 01:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901495#M313574</guid>
      <dc:creator />
      <dc:date>2015-05-22T01:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901496#M313575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this message gets through to you.  I replied with a sample file but the response shows as going to my original post, not to yours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 01:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901496#M313575</guid>
      <dc:creator />
      <dc:date>2015-05-22T01:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901497#M313576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might have reduced the sample a bit too much. The monthly quota is zero in the chart, so the % column becomes NULL since you can not have have a 0 denominator in a fraction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what happens when you drill down as well, that the quota turns into zeros?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 01:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901497#M313576</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-05-22T01:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901498#M313577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My main issue at this point is the % Complete column going to 0 or NULL whenever I drill down.&amp;nbsp; I feel pretty confident the other formulas are not working due to that issue.&amp;nbsp; If I can resolve the % Complete , I can likely make the other expressions work.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 02:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901498#M313577</guid>
      <dc:creator />
      <dc:date>2015-05-22T02:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901499#M313578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you add MTDCOMP&amp;nbsp; as a list box, you will see that it all becomes excluded when you change dimension. The % Complete can becomes NULL as there is no available value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your data model, I think you should take a look at the data that you are loading. There are several rows that are complete NULL value rows, which means they add no logical value to the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you think each individual table looks accurate, re validate that the keys link the data in a way that you consider accurate. For example there are no MTDCOMP value associated with the region R9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 03:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901499#M313578</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-05-22T03:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901500#M313579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick replies.   Will respond when I've tried your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 03:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901500#M313579</guid>
      <dc:creator />
      <dc:date>2015-05-22T03:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901501#M313580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Right- there is no Region associated with MTD % because MTD % doesn't differ by Region or any other data field selections besides year, month and day. I want the selection of any field other than year, month or day to be ignored and not affect MTD % complete. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 18:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901501#M313580</guid>
      <dc:creator />
      <dc:date>2015-05-22T18:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901502#M313581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can understand that, but this is not the way the data is associated. So the data most be linked in a way that MTD is available for all regions. If the MTD value is unrelated to the data it can also be left in a data island, which means there is no connection to the other data. This way it would always remain unaffected by other selections. Which way you go to resolve the relation will depend on your data and how it relates. I am afraid I will not be able to give you e perfect answer for that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2015 00:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901502#M313581</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-05-23T00:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable disappears when drill down in table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901503#M313582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again. I will respond once I fully review your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2015 01:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-disappears-when-drill-down-in-table-chart/m-p/901503#M313582</guid>
      <dc:creator />
      <dc:date>2015-05-23T01:06:53Z</dc:date>
    </item>
  </channel>
</rss>

