<?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 0 values from calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/0-values-from-calculations/m-p/322032#M1191890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys, i have attached a scrambled version of my table with regards to my question,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="http://i.imgur.com/m6aXy.jpg" class="jive-image" src="http://i.imgur.com/m6aXy.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm trying to calculate the license usage rate by dividing the licenses used by the total licenses grouped by the license group, rank them and show their ranks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, as some of the rows have 0 for licenses used, it causes a hyphen or "-" to be displayed due to the 0 included in calculation. i know i can change or not show "-" but i wanna show it since 0 divide by whatever is still 0 meaning 0% used which is still meaningful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the dimension i've used for my pivot table,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;=(if(aggr(Rank(aggr(&lt;/P&gt;&lt;P&gt;sum(LIC_USED)&lt;/P&gt;&lt;P&gt;/sum(TOTAL_LIC)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP)), LICENSE_GROUP)&amp;lt;= 10 or&lt;/P&gt;&lt;P&gt;aggr(Rank(aggr(&lt;/P&gt;&lt;P&gt;sum(LIC_USED)&lt;/P&gt;&lt;P&gt;/sum(TOTAL_LIC)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP)), LICENSE_GROUP) &amp;gt;= &lt;/P&gt;&lt;P&gt;(Max(total aggr(Rank(aggr(&lt;/P&gt;&lt;P&gt;sum(LIC_USED)&lt;/P&gt;&lt;P&gt;/sum(TOTAL_LIC)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP)), LICENSE_GROUP))- 10)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;the 2nd dimension of my pivot table is simply&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=Site&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while this is the expression for the ranks column,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;=aggr(Rank(aggr(&lt;/P&gt;&lt;P&gt;sum(LIC_USED)&lt;/P&gt;&lt;P&gt;/sum(TOTAL_LIC)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP))&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: the picture i've uploaded is a reused one from another of my question, im unable to attach/upload a new one due to some restrictions in my current location &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2011 03:26:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-27T03:26:20Z</dc:date>
    <item>
      <title>0 values from calculations</title>
      <link>https://community.qlik.com/t5/QlikView/0-values-from-calculations/m-p/322032#M1191890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys, i have attached a scrambled version of my table with regards to my question,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="http://i.imgur.com/m6aXy.jpg" class="jive-image" src="http://i.imgur.com/m6aXy.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm trying to calculate the license usage rate by dividing the licenses used by the total licenses grouped by the license group, rank them and show their ranks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, as some of the rows have 0 for licenses used, it causes a hyphen or "-" to be displayed due to the 0 included in calculation. i know i can change or not show "-" but i wanna show it since 0 divide by whatever is still 0 meaning 0% used which is still meaningful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the dimension i've used for my pivot table,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;=(if(aggr(Rank(aggr(&lt;/P&gt;&lt;P&gt;sum(LIC_USED)&lt;/P&gt;&lt;P&gt;/sum(TOTAL_LIC)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP)), LICENSE_GROUP)&amp;lt;= 10 or&lt;/P&gt;&lt;P&gt;aggr(Rank(aggr(&lt;/P&gt;&lt;P&gt;sum(LIC_USED)&lt;/P&gt;&lt;P&gt;/sum(TOTAL_LIC)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP)), LICENSE_GROUP) &amp;gt;= &lt;/P&gt;&lt;P&gt;(Max(total aggr(Rank(aggr(&lt;/P&gt;&lt;P&gt;sum(LIC_USED)&lt;/P&gt;&lt;P&gt;/sum(TOTAL_LIC)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP)), LICENSE_GROUP))- 10)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;the 2nd dimension of my pivot table is simply&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=Site&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while this is the expression for the ranks column,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;=aggr(Rank(aggr(&lt;/P&gt;&lt;P&gt;sum(LIC_USED)&lt;/P&gt;&lt;P&gt;/sum(TOTAL_LIC)&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP))&lt;/P&gt;&lt;P&gt;, LICENSE_GROUP)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: the picture i've uploaded is a reused one from another of my question, im unable to attach/upload a new one due to some restrictions in my current location &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 03:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/0-values-from-calculations/m-p/322032#M1191890</guid>
      <dc:creator />
      <dc:date>2011-06-27T03:26:20Z</dc:date>
    </item>
  </channel>
</rss>

