<?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: consolidated if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/consolidated-if-statement/m-p/636724#M678669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;generic load was the one I was forgetting.&amp;nbsp; (It gave wonky results on a very large data set with unique qualities that I had to pivot with if statements, but looks okay for this.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 13:26:07 GMT</pubDate>
    <dc:creator>stevelord</dc:creator>
    <dc:date>2014-05-19T13:26:07Z</dc:date>
    <item>
      <title>consolidated if statement</title>
      <link>https://community.qlik.com/t5/QlikView/consolidated-if-statement/m-p/636721#M678666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a variety of if statements to pivot data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(AttributeName='Challenge' AND AttributeValue, AttributeValue) as [Email New Inquiry Challenge], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(AttributeName='Forms' AND AttributeValue, AttributeValue) as [Email New Inquiry Forms], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(AttributeName='General Program' AND AttributeValue, AttributeValue) as [Email New Inquiry General Program], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(AttributeName='Gift Card' AND AttributeValue, AttributeValue) as [Email New Inquiry Gift Card], &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a single statement I can write to create these fields?&amp;nbsp; Something like this in concept:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(AttributeName AND AttributeValue, AttributeValue) as ['Email New Inquiry '&amp;amp;vAttributeName']&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to unpivot lots of data due to varying field headers to get it loaded, and am using the if statements above to re-pivot the data from a single table.&amp;nbsp; Many files have shifting names of operators for their field headers, or maybe a new inquiry type can be added etc, and I'd like the script to add new people itself without me having to keep track or anyone else having to communicate to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and it just occurred to me the data sets for the particular dashboard that made me ask this question may not become too huge to just let a pivot table handle it, but still a correct answer to above would be helpful in other places where I do have huge data sets. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will tap points to whoever solves above for me.&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 May 2014 20:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/consolidated-if-statement/m-p/636721#M678666</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-05-16T20:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: consolidated if statement</title>
      <link>https://community.qlik.com/t5/QlikView/consolidated-if-statement/m-p/636722#M678667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look for Generic and CrossTable statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 21:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/consolidated-if-statement/m-p/636722#M678667</guid>
      <dc:creator />
      <dc:date>2014-05-16T21:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: consolidated if statement</title>
      <link>https://community.qlik.com/t5/QlikView/consolidated-if-statement/m-p/636723#M678668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve, Use Generic Load to Pivot the table. Please go through the below blog post as reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/03/31/generic" title="http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/31/generic"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/31/generic&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 May 2014 01:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/consolidated-if-statement/m-p/636723#M678668</guid>
      <dc:creator />
      <dc:date>2014-05-18T01:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: consolidated if statement</title>
      <link>https://community.qlik.com/t5/QlikView/consolidated-if-statement/m-p/636724#M678669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;generic load was the one I was forgetting.&amp;nbsp; (It gave wonky results on a very large data set with unique qualities that I had to pivot with if statements, but looks okay for this.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 13:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/consolidated-if-statement/m-p/636724#M678669</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-05-19T13:26:07Z</dc:date>
    </item>
  </channel>
</rss>

