<?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 Category Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Category-Problem/m-p/1395502#M423669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi at all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with some articles and another table with categories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a left join formula in order to take all the value in the first table and take the value of category for each articles that had a specific code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw that when i show the amount of sales by category there is a field with empty simbol '-' . So that simbol is the total amount of sales for the articles that don't have a category code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i would like to add a formula in the script that assign at each article that doesn't have the category code a generic name of category (for example 'Unknown'). I tried to use an if formula in the second table (table with category name for each code) but it is not works because in that table any code has a category name. So i have to add that formula in the previous script but how can i do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-----------------------------LOAD FIRST TABLE DATA BY QVD FILE------------------------------------------//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Articles:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM C:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Articles.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-----------------------------LOAD AND JOIN SECOND TABLE------------------------------------------//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category_Code &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as CATEGORIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Category);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2017 09:09:12 GMT</pubDate>
    <dc:creator>andrea90casa</dc:creator>
    <dc:date>2017-09-12T09:09:12Z</dc:date>
    <item>
      <title>Category Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Category-Problem/m-p/1395502#M423669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi at all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with some articles and another table with categories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a left join formula in order to take all the value in the first table and take the value of category for each articles that had a specific code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw that when i show the amount of sales by category there is a field with empty simbol '-' . So that simbol is the total amount of sales for the articles that don't have a category code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i would like to add a formula in the script that assign at each article that doesn't have the category code a generic name of category (for example 'Unknown'). I tried to use an if formula in the second table (table with category name for each code) but it is not works because in that table any code has a category name. So i have to add that formula in the previous script but how can i do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-----------------------------LOAD FIRST TABLE DATA BY QVD FILE------------------------------------------//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Articles:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM C:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Articles.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-----------------------------LOAD AND JOIN SECOND TABLE------------------------------------------//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category_Code &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as CATEGORIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Category);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Category-Problem/m-p/1395502#M423669</guid>
      <dc:creator>andrea90casa</dc:creator>
      <dc:date>2017-09-12T09:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Category Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Category-Problem/m-p/1395503#M423670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the below formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NULLASVALUE * ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vNullValue = 'Unknown';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a &lt;SPAN style="font-size: 13.3333px;"&gt;Unknown &lt;/SPAN&gt;value for all the null value fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Category-Problem/m-p/1395503#M423670</guid>
      <dc:creator>karthikoffi27se</dc:creator>
      <dc:date>2017-09-12T09:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Category Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Category-Problem/m-p/1395504#M423671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Karthik &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;Hi tried with this, when I was waiting someone help me, and it should be works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Articles:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(IsNull(Category),'Unknown',Category)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Category_00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM C:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxArticles.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field Category FROM Articles;&lt;/P&gt;&lt;P&gt;RENAME Field Category_00 TO Category;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Category-Problem/m-p/1395504#M423671</guid>
      <dc:creator>andrea90casa</dc:creator>
      <dc:date>2017-09-12T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Category Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Category-Problem/m-p/1395505#M423672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;Use ApplyMap() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC:&lt;/P&gt;&lt;P&gt;Mapping Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category_Code&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as CATEGORIA&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Category);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now, in the Articles table, write&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ApplyMap('ABC',Category_Code,'Unknown') as CATEGORIA&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This will assign "Unknown" that doesn't have any Category Code.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Also, make sure you load the excel sheet before the Articles table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Category-Problem/m-p/1395505#M423672</guid>
      <dc:creator>mostwanted123</dc:creator>
      <dc:date>2017-09-12T09:22:34Z</dc:date>
    </item>
  </channel>
</rss>

