<?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: Change column content in query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698691#M1073485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;use &lt;STRONG&gt;noconcatenate&lt;/STRONG&gt; in between two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 12:56:23 GMT</pubDate>
    <dc:creator>ashfaq_haseeb</dc:creator>
    <dc:date>2014-08-04T12:56:23Z</dc:date>
    <item>
      <title>Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698684#M1073478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my first post as total rookie to QlikView. I got two tables like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;Division&lt;/P&gt;&lt;P&gt;MatDiv1&lt;/P&gt;&lt;P&gt;MatDiv2&lt;/P&gt;&lt;P&gt;Sales amount&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductHierarchy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Material&lt;/P&gt;&lt;P&gt;Product Family&lt;/P&gt;&lt;P&gt;MatDiv1 is populated only for division 1, MatDiv2 is populated only for division 2.&lt;/P&gt;&lt;P&gt;I want to have the material in a single column and apply apply the same lookup {(left keep (Sales) load ... from ProductHierarchy} to both Div1-Material and Div2-Material, in the script. How can I best do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 12:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698684#M1073478</guid>
      <dc:creator />
      <dc:date>2014-08-01T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698685#M1073479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a number of things.&amp;nbsp; If you want to combine these two table's into 1 table in the script, look at doing a left join or mapping load.&amp;nbsp; Here is an example of a mapping load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product:&lt;/P&gt;&lt;P&gt;Mapping Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Material, ProdFamily&lt;/P&gt;&lt;P&gt;From [SOURCE];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Month&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Division&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Div1-Material&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Div2-Material&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,SalesAmount&lt;BR /&gt;&amp;nbsp; ,ApplyMap('Product', Div1-Material) as ProdFamily&lt;/P&gt;&lt;P&gt;From [Source]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also remember, if you want to keep this as two table,s and have the selections work, associations are made by columns being named the same, so ni Product, you could rename your 'Material' column to 'Div1-Material' in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 12:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698685#M1073479</guid>
      <dc:creator>joshabbott</dc:creator>
      <dc:date>2014-08-01T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698686#M1073480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the post changed a little from when I originally did my reply &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; Does the values in MatDiv1 and MatDiv2 corespond to Material in your second table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 12:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698686#M1073480</guid>
      <dc:creator>joshabbott</dc:creator>
      <dc:date>2014-08-01T12:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698687#M1073481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes they do!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 12:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698687#M1073481</guid>
      <dc:creator />
      <dc:date>2014-08-01T12:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698688#M1073482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your proposal, Josh. I would like to keep the two tables but have the Div1-Material and the Div2-Material in a single column (say MyMaterial), to which I then apply the lookup to the product hierarchy.&lt;/P&gt;&lt;P&gt;When building charts etc, you would only deal with a single column, which is more convenient.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 12:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698688#M1073482</guid>
      <dc:creator />
      <dc:date>2014-08-01T12:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698689#M1073483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be ok to load MatDiv1 and MatDiv2 into the same column called MatDiv or do these need to be separated?&amp;nbsp; If you could load them into one column, try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Month&lt;BR /&gt;&amp;nbsp; ,Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Division&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,MatDiv1 as MatDiv&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Sales amount&lt;/P&gt;&lt;P&gt;from [SOURCE];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Month&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Division&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,MatDiv2 as MatDiv&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Sales Amount&lt;/P&gt;&lt;P&gt;from [SOURCE];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(The top two tables will concatenate on eachother and may create a problem if you are unable to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Material as MatDiv&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Product Family]&lt;/P&gt;&lt;P&gt;FROM [Source];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 13:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698689#M1073483</guid>
      <dc:creator>joshabbott</dc:creator>
      <dc:date>2014-08-01T13:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698690#M1073484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Josh. It works if I load with a where statement ( either " where Division &amp;lt;&amp;gt; 1 " or alternatively " where Division = 1 "), however it crashes if I run the two load statements. It seems the concatenation of tables you mentioned is failing.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 12:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698690#M1073484</guid>
      <dc:creator />
      <dc:date>2014-08-04T12:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698691#M1073485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;use &lt;STRONG&gt;noconcatenate&lt;/STRONG&gt; in between two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 12:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698691#M1073485</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-04T12:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698692#M1073486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by 'it crashes'?&amp;nbsp; Could you upload your qvw or a portion of it to make it more understandable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 12:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698692#M1073486</guid>
      <dc:creator>joshabbott</dc:creator>
      <dc:date>2014-08-04T12:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698693#M1073487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´m working with a personal edition. By crashing I mean simply that the application stands still after I reload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 13:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698693#M1073487</guid>
      <dc:creator />
      <dc:date>2014-08-04T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698694#M1073488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm, that sounds like a different problem.&amp;nbsp; That's no good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 13:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698694#M1073488</guid>
      <dc:creator>joshabbott</dc:creator>
      <dc:date>2014-08-04T13:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698695#M1073489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;After playing around a little bit more, it seems that the problem is with the statement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Trebuchet MS','sans-serif'; font-size: 10pt;"&gt;left keep&amp;nbsp; (RA_raw) load ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;MatDiv1 as MatDiv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;where Division = 1....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; font-family: 'Trebuchet MS','sans-serif'; font-size: 10pt;"&gt;left keep&amp;nbsp; (RA_raw) load ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;MatDiv2 as MatDiv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;where Division &amp;lt;&amp;gt; 1....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;and if I drop the &lt;SPAN style="line-height: 115%; font-family: 'Trebuchet MS','sans-serif'; font-size: 10pt;"&gt;left keep&amp;nbsp; (RA_raw)&lt;/SPAN&gt;, then it doesn´t crash anymore. Now I just need to do the left keep functionality at another point in time in the script....&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 16:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698695#M1073489</guid>
      <dc:creator />
      <dc:date>2014-08-04T16:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change column content in query</title>
      <link>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698696#M1073490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution was ultimately an if statement in the initial load statement, works perfect!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 08:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-column-content-in-query/m-p/698696#M1073490</guid>
      <dc:creator />
      <dc:date>2014-08-20T08:34:54Z</dc:date>
    </item>
  </channel>
</rss>

