<?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: How to write Expressin in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873706#M305213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you don't have to write it that way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the total &amp;lt;subregion&amp;gt; will give you sum grouped by subregion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 15:22:01 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-04-22T15:22:01Z</dc:date>
    <item>
      <title>How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873696#M305203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table. like attachment.&amp;nbsp; 2 dim and one expression.&lt;/P&gt;&lt;P&gt;Column "Cluster count of Subregion" just for compare. it means how many Custer belong to the Sub region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression Logic is : Sum(Value)/Sum(DayNum)&lt;/P&gt;&lt;P&gt;Requirement point is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; when "Cluster count of Subregion" &amp;gt;1, the Expression result it should be&amp;nbsp; every Cluster's Sum(Value)/Sum(DayNm)&amp;nbsp; add.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; when "Cluster count of Subregion" =1 or 0, the Expression result is Sum(Value)/Sum(DayNum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The background of the question:&lt;/P&gt;&lt;P&gt;because data source is excel file. and the Subregion data is added by every (Cluster data /DayNum) if have Cluster.&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Subregion='Subregion1'&amp;gt;}Value) /Sum({&amp;lt;Subregion='Subregion1'&amp;gt;}DayNum)&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Cluster='Cluster1'&amp;gt;} Value)/Sum({&amp;lt;Cluster='Cluster1'&amp;gt;}DayNum)&lt;/P&gt;&lt;P&gt;+Sum({&amp;lt;Cluster='Cluster2'&amp;gt;} Value)/Sum({&amp;lt;Cluster='Cluster2'&amp;gt;}DayNum)&lt;/P&gt;&lt;P&gt;+Sum({&amp;lt;Cluster='Cluster3'&amp;gt;} Value)/Sum({&amp;lt;Cluster='Cluster3'&amp;gt;}DayNum)&lt;/P&gt;&lt;P&gt;+Sum({&amp;lt;Cluster='Cluster4'&amp;gt;} Value)/Sum({&amp;lt;Cluster='Cluster4'&amp;gt;}DayNum)&lt;/P&gt;&lt;P&gt;......................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&amp;nbsp;&amp;nbsp;&amp;nbsp; How to write the Expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Kevin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 08:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873696#M305203</guid>
      <dc:creator>wenkew186</dc:creator>
      <dc:date>2015-04-21T08:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873697#M305204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for my Sample is not clear. I re-uploading the sample.&lt;/P&gt;&lt;P&gt;My Expression like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" height="430" src="https://community.qlik.com/legacyfs/online/84236_pastedImage_0.png" style="width: 356px; height: 377px;" width="387" /&gt;&lt;/P&gt;&lt;P&gt;1. Cluster is dynamic, so it should be control by variable. I can't every Subregion and ever Cluster hard code in expression.&amp;nbsp; &lt;/P&gt;&lt;P&gt;2. the Total is null, how to let it show the Sun of the Row like straight? i have to use pivot table .&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" height="162" src="https://community.qlik.com/legacyfs/online/84240_pastedImage_1.png" style="width: 283px; height: 127px;" width="327" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have conceive to use "COUNT(DISTINCT {&amp;lt;Subregion&amp;gt;} Cluster)"&amp;nbsp; to judgment which Subregion have more than 1 Cluster then Expression use every Cluster SUM(Amount)/sum(DayNum) add, if not, then just SUM(Amount)/sum(DayNum). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about pick match function? and it may be need loop calculate in Expression, ! I'm not sure.&amp;nbsp; Can any help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873697#M305204</guid>
      <dc:creator>wenkew186</dc:creator>
      <dc:date>2015-04-21T16:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873698#M305205</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;Give me sample data for excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while using match function to avoid the nested if conditions .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 17:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873698#M305205</guid>
      <dc:creator />
      <dc:date>2015-04-21T17:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873699#M305206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this sample is right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 17:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873699#M305206</guid>
      <dc:creator>wenkew186</dc:creator>
      <dc:date>2015-04-21T17:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873700#M305207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried with sum(total &amp;lt;subregion&amp;gt; Amount)/sum( total &amp;lt;subregion&amp;gt; daynum)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 00:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873700#M305207</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-22T00:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873701#M305208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this is what you are looking for? PFA&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>Wed, 22 Apr 2015 01:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873701#M305208</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-22T01:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873702#M305209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you sunindia,&lt;/P&gt;&lt;P&gt;yes, I hope look the Total is like this.&lt;/P&gt;&lt;P&gt;But it is not my only problem,&lt;/P&gt;&lt;P&gt;1.I need dynamic the expression. now all the hard code in here. like Subregion='A' and Cluster ='A1'. I need use variable to replace it.&lt;/P&gt;&lt;P&gt;2. another problem in my sample.&amp;nbsp; when click a Subregion, the Dim Group not drop down and no data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 02:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873702#M305209</guid>
      <dc:creator>wenkew186</dc:creator>
      <dc:date>2015-04-22T02:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873703#M305210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your response Ramon,&lt;/P&gt;&lt;P&gt;My expression is like this, and because I need add every Cluster Sum(Amount)/Sum(DayNum) when Subregion has Cluster. so that why I use this complex expression and nit use just Sum(Amount)/Sum(DayNum).&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-758402-84236/pastedImage_0.png"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/legacyfs/online/84236_pastedImage_0.png"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-758402-84236/pastedImage_0.png"&gt;&lt;IMG class="jive-image image-1" height="430" src="https://community.qlik.com/legacyfs/online/84278_pastedImage_0.png" style="width: 349px; height: 344px;" width="387" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/legacyfs/online/84236_pastedImage_0.png"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 02:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873703#M305210</guid>
      <dc:creator>wenkew186</dc:creator>
      <dc:date>2015-04-22T02:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873704#M305211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out: (PFA)&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>Wed, 22 Apr 2015 10:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873704#M305211</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-22T10:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873705#M305212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the the application I posted for you?&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>Wed, 22 Apr 2015 15:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873705#M305212</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-22T15:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873706#M305213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you don't have to write it that way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the total &amp;lt;subregion&amp;gt; will give you sum grouped by subregion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873706#M305213</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-22T15:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Expressin</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873707#M305214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suninda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, it is works good for my case, it's a great help for me.thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 07:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Expressin/m-p/873707#M305214</guid>
      <dc:creator>wenkew186</dc:creator>
      <dc:date>2015-04-24T07:21:28Z</dc:date>
    </item>
  </channel>
</rss>

