<?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: Expression breakdown in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251993#M396126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks So much all. You replies were all really helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2016 10:38:43 GMT</pubDate>
    <dc:creator>didierodayo</dc:creator>
    <dc:date>2016-11-30T10:38:43Z</dc:date>
    <item>
      <title>Expression breakdown</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251989#M396122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help&amp;nbsp; to figure out what this calculated dimension is doing. I have added a snapshot of the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Calculated dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Dual&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Metric&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'vrf'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Metric Value Peak]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)/&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Metric&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'vrf'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Tunnel Limit]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)*100, &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Pole Name]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)&lt;BR /&gt; , 10), '&amp;lt;= x &amp;lt;','-'),&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Metric&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'vrf'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Metric Value Peak]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)/&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Metric&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'vrf'}&amp;gt;} &lt;SPAN lang="EN-AU" style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Tunnel Limit]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)*100, &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Pole Name]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)&lt;BR /&gt; , 10),'&amp;lt;=',1),'0')&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;STRONG&gt;expression&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;STRONG&gt;Count(DISTINCT [Pole Name])&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145240_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 10:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251989#M396122</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-11-30T10:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression breakdown</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251990#M396123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Didier, from inside () to outside ():&lt;/P&gt;&lt;P&gt;- Aggr(): Calculates the expression for each [Pole Name]&lt;/P&gt;&lt;P&gt;- Class(): Groups the results of the expression in a range of 10 (2nd parameter of the function)&lt;/P&gt;&lt;P&gt;- Replace(): Changes the default '&amp;lt;= x &amp;lt;' of the class() function to '-'&lt;/P&gt;&lt;P&gt;- Dual(): Used when you want store a string different than the number (or viceversa, like in months: january is Dual('Jan', 1)). In that case the 2nd part of dual is used to sort the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Subfield(): Splits a string, in this case it keeps the value before '&amp;lt;=', so the first number of the Class() funtion, the dimension values wil be sorted by default by this number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 10:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251990#M396123</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-30T10:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression breakdown</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251991#M396124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll give it a try:&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Dual&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Metric&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'vrf'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Metric Value Peak]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)/&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Metric&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'vrf'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Tunnel Limit]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)*100, &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Pole Name]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)&lt;BR /&gt; , 10), '&amp;lt;= x &amp;lt;','-'), //this part will build interval from 0&amp;lt;=xx in 10 classes, like 0,10,20,30 aso. it will also replace the &amp;lt;= x (that will comes in between when you use class function) with a '-'. The sum will get values around 0.1 and *100 so it will fit into class with base of 10.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Metric&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'vrf'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Metric Value Peak]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)/&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Metric&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'vrf'}&amp;gt;} &lt;SPAN lang="EN-AU" style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Tunnel Limit]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)*100, &lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Pole Name]&lt;/SPAN&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)&lt;BR /&gt; , 10),'&amp;lt;=',1),'0')&lt;BR /&gt; )&amp;nbsp; //this will find the value to left of &amp;lt;= sign ex 0 when class is 0&amp;lt;=10 and it will do a numeric value as an integer. and you will get a range 0,10,20,30,40,50... as dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-AU" style="margin: 0px; color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;Maybe someone else could explain it better.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 10:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251991#M396124</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-11-30T10:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression breakdown</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251992#M396125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can read more information class funtion from below link&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ConditionalFunctions/class.htm" rel="nofollow" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ConditionalFunctions/class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Sum({$&amp;lt;Metric={'vrf'}&amp;gt;} [Metric Value Peak])/Only({$&amp;lt;Metric={'vrf'}&amp;gt;} [Tunnel Limit])*100&lt;/P&gt;&lt;P&gt;This is your base expression.&lt;/P&gt;&lt;P&gt;Objective is to create range of above function result with interval of 10.&lt;/P&gt;&lt;P&gt;This can be done as below&lt;/P&gt;&lt;P&gt;Class(Sum({$&amp;lt;Metric={'vrf'}&amp;gt;} [Metric Value Peak])/Only({$&amp;lt;Metric={'vrf'}&amp;gt;} [Tunnel Limit])*100,10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Above Class will give you results something like below&lt;/P&gt;&lt;P&gt;0 &amp;lt;= x &amp;lt; 10&lt;/P&gt;&lt;P&gt;10 &amp;lt;= x &amp;lt; 20&lt;/P&gt;&lt;P&gt;20 &amp;lt;= x &amp;lt; 30&lt;/P&gt;&lt;P&gt;30 &amp;lt;= x &amp;lt; 40&lt;/P&gt;&lt;P&gt;and so on..depending upon the values you are getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Now comes the tricky portion.&lt;/P&gt;&lt;P&gt;Mostly user don't want to see '&amp;lt;= x &amp;lt;'&lt;/P&gt;&lt;P&gt;So here comes Replace function..&lt;/P&gt;&lt;P&gt;It will replace &amp;lt;= x &amp;lt; with '-'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Issue of using Replace is ..&lt;/P&gt;&lt;P&gt;Class Function gives you numeric ranges.. I mean the range you are getting can be sorted using sort by Numeric Value but Replace is a string function and it will convert your whole expression value in String/Text, which will now not allow you to sort by Numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) To avoid this we can use Dual funtion.&lt;/P&gt;&lt;P&gt;Dual(Text, Number) will show value as Text and can sort as number.&lt;/P&gt;&lt;P&gt;to make that the 2nd portion of class is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) I am pretty much sure that this can be simplified as below.&lt;/P&gt;&lt;P&gt;=Dual(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Replace(Aggr(Class(Sum({$&amp;lt;Metric={'vrf'}&amp;gt;} [Metric Value Peak])/Only({$&amp;lt;Metric={'vrf'}&amp;gt;} [Tunnel Limit])*100,10),[Pole Name]),'&amp;lt;= x &amp;lt;' ,'-'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr(Class(Sum({$&amp;lt;Metric={'vrf'}&amp;gt;} [Metric Value Peak])/Only({$&amp;lt;Metric={'vrf'}&amp;gt;} [Tunnel Limit])*100,10),[Pole Name])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 10:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251992#M396125</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-30T10:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression breakdown</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251993#M396126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks So much all. You replies were all really helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 10:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-breakdown/m-p/1251993#M396126</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-11-30T10:38:43Z</dc:date>
    </item>
  </channel>
</rss>

