<?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: Aggregating and Calculating Dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303759#M27705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this as your dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(If(Sum($(='Var' &amp;amp; Lookback)) &amp;gt; 0, 'Yes', 'No'), Code)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jun 2017 15:10:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-16T15:10:02Z</dc:date>
    <item>
      <title>Aggregating and Calculating Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303754#M27700</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 have the sample data loaded in the following qvf. What I'd like to do is create a calculated dimension according to the following logic:&lt;/P&gt;&lt;P&gt;Aggregate the data by the field 'Code'&lt;/P&gt;&lt;P&gt;1.If variable=1, then in aggregated data, If Var1&amp;gt;0 even for one record, give the output as 'Yes', otherwise 'No'.&lt;/P&gt;&lt;P&gt;2.If variable=2, then in aggregated data, If Var2&amp;gt;0 even for one record, give the output as 'Yes',otherwise 'No'.&lt;/P&gt;&lt;P&gt;3.&lt;SPAN style="font-size: 13.3333px;"&gt;If variable=3, then in aggregated data, If Var3&amp;gt;0 even for one record, give the output as 'Yes', otherwise 'No'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What I'd like to show in the pie chart finally the distinct count of Codes that fall under 'Yes' and 'No'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ Please help me out.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TIA!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 13:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303754#M27700</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2017-06-16T13:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating and Calculating Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303755#M27701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Phalgun,&lt;/P&gt;&lt;P&gt;Find the file attached,&lt;/P&gt;&lt;P&gt;Let me know if it worked,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 13:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303755#M27701</guid>
      <dc:creator />
      <dc:date>2017-06-16T13:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating and Calculating Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303756#M27702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rima! Thanks a lot for the response. But the thing is I want the logic to be implemented in the front end rather than the script as I want the chart to be dynamic with a number of selections I have in my dashboard. Sorry I forgot to mention that. Is there anyway you can do this in the front end? Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 13:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303756#M27702</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2017-06-16T13:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating and Calculating Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303757#M27703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once again, I am not completely sure I understand the requirement and final output needed here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 14:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303757#M27703</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-16T14:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating and Calculating Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303758#M27704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me see if I can make this more clear. Firstly, aggregate the data based on the field 'Code'. Now in this aggregated data, when Variable=1, if the field Var1&amp;gt;0 for even one record within the aggregated data, output is 'Yes',for that particular code. if not 'No'. Similarly when Variable=2 and Variable=3,consider the fields Var2 and Var3. Finally show the count of the distinct codes that fall under 'Yes' or 'No' in the pie chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code 1000393344 the aggregated data is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Code&lt;/TD&gt;&lt;TD width="64"&gt;Var1&lt;/TD&gt;&lt;TD width="64"&gt;Var2&lt;/TD&gt;&lt;TD width="64"&gt;Var3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;1000393344&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;1000393344&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;1000393344&lt;/TD&gt;&lt;TD align="right"&gt;0.005112&lt;/TD&gt;&lt;TD align="right"&gt;0.005112&lt;/TD&gt;&lt;TD align="right"&gt;0.005112&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;1000393344&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;1000393344&lt;/TD&gt;&lt;TD align="right"&gt;0.151344&lt;/TD&gt;&lt;TD align="right"&gt;0.151344&lt;/TD&gt;&lt;TD align="right"&gt;0.151344&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;1000393344&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;1000393344&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ,if Variable=1, as we can see in the field Var1, at least one record is &amp;gt;0. So the output for this Code is 'Yes'.&lt;/P&gt;&lt;P&gt;Similarly, if Variable=2, as we can see in field Var2, at least one record is &amp;gt;0. So the output for this Code is 'Yes'.&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, 16 Jun 2017 14:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303758#M27704</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2017-06-16T14:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating and Calculating Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303759#M27705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this as your dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(If(Sum($(='Var' &amp;amp; Lookback)) &amp;gt; 0, 'Yes', 'No'), Code)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 15:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303759#M27705</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-16T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating and Calculating Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303760#M27706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. This was exactly what I wanted!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 06:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-and-Calculating-Dimension/m-p/1303760#M27706</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2017-06-19T06:17:47Z</dc:date>
    </item>
  </channel>
</rss>

