<?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 If condition with two columns  joining together in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-with-two-columns-joining-together/m-p/743951#M471823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a very simple question but with Qlikview it seems not that simple. I have two columns the NPS column is aggregated and I have to calculate that on the montly basis. The problem I am facing in joining the data from two different tables. I have to make the line graph to show the development of both the question _name. for example I want to have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" if(question_name='nps' and ROUND(sum(if(NPS='Promotor',1)) / count(TOUCHPOINT)*100&lt;/P&gt;&lt;P&gt;- (sum(if(NPS='Detractor',1)) / count(TOUCHPOINT)*100))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement which starts from round gives me aggregated value which I have to use.&lt;/P&gt;&lt;P&gt;Similarly I want the same from other question name as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 365px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="109"&gt;QUESTION_NAME&lt;/TD&gt;&lt;TD width="64"&gt;NPS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;NPS&lt;/TD&gt;&lt;TD&gt;Promotor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;NPS&lt;/TD&gt;&lt;TD&gt;detractor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TNPS&lt;/TD&gt;&lt;TD&gt;promotor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TNPS&lt;/TD&gt;&lt;TD&gt;detractor&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 09:57:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-18T09:57:19Z</dc:date>
    <item>
      <title>If condition with two columns  joining together</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-with-two-columns-joining-together/m-p/743951#M471823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a very simple question but with Qlikview it seems not that simple. I have two columns the NPS column is aggregated and I have to calculate that on the montly basis. The problem I am facing in joining the data from two different tables. I have to make the line graph to show the development of both the question _name. for example I want to have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" if(question_name='nps' and ROUND(sum(if(NPS='Promotor',1)) / count(TOUCHPOINT)*100&lt;/P&gt;&lt;P&gt;- (sum(if(NPS='Detractor',1)) / count(TOUCHPOINT)*100))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement which starts from round gives me aggregated value which I have to use.&lt;/P&gt;&lt;P&gt;Similarly I want the same from other question name as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 365px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="109"&gt;QUESTION_NAME&lt;/TD&gt;&lt;TD width="64"&gt;NPS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;NPS&lt;/TD&gt;&lt;TD&gt;Promotor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;NPS&lt;/TD&gt;&lt;TD&gt;detractor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TNPS&lt;/TD&gt;&lt;TD&gt;promotor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TNPS&lt;/TD&gt;&lt;TD&gt;detractor&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 09:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-with-two-columns-joining-together/m-p/743951#M471823</guid>
      <dc:creator />
      <dc:date>2015-02-18T09:57:19Z</dc:date>
    </item>
  </channel>
</rss>

