<?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 line charts based on listbox data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/line-charts-based-on-listbox-data/m-p/148288#M26612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aissam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are using too many IF statements.&lt;/P&gt;&lt;P&gt;1. I'd highly recommend replacing your nested IF statement in the load script with a Mapping table that you could load from Excel. What are you going to do if you need to add another Product?&lt;/P&gt;&lt;P&gt;2. In order to get a line per Product, you need to use ProductDescription as your Dimension - as simple as that, no IF statements needed.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jul 2009 00:30:42 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-07-04T00:30:42Z</dc:date>
    <item>
      <title>line charts based on listbox data</title>
      <link>https://community.qlik.com/t5/QlikView/line-charts-based-on-listbox-data/m-p/148285#M26609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He&lt;I&gt;llo Fellow Users,&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I have the following script (see below) and I would like to create Line Charts based on each&lt;/EM&gt; ProductDescription. Can someone help me how I can create something like a bookmark in a graph? I tried this (=ProductDescription = 'CT-2') in the dimension field but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aissam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;TempJobLines:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Sql&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Select&lt;/P&gt;&lt;P&gt;JobNumber as JOB_NUMBER,&lt;/P&gt;&lt;P&gt;ProductCode,&lt;/P&gt;&lt;P&gt;CUSTOMER_NUMBER,&lt;/P&gt;&lt;P&gt;PRODUCT_LINE,&lt;/P&gt;&lt;P&gt;jl.Description as Joblines_Description,&lt;/P&gt;&lt;P&gt;Quantity&lt;/P&gt;&lt;P&gt;&lt;B&gt;from&lt;/B&gt; Jobscope.dbo.JobLineitems jl&lt;/P&gt;&lt;P&gt;join jobscope.dbo.ipjobm jm on jm.JOB_NUMBER = jl.JOBNUMBER&lt;/P&gt;&lt;P&gt;where Jobnumber &amp;lt; 'A';&lt;/P&gt;&lt;P style="font-weight: bold"&gt;//------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-style: italic"&gt;JobLines:&lt;/P&gt;&lt;P&gt;&lt;B&gt;load&lt;/B&gt; *,&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '00', 'CT-2',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '01', 'CT-25',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '04', 'MS-50',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '05', 'CT-3',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '09', 'MT-10',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '11', 'SPIRAAL TRANSPORTEUR',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '25', 'ONDERDELEN',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '26', 'BANDDELEN',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '28', 'E-KASTEN',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '32', 'DOCUMENTATIE',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '37', 'ROLLENTRAPO',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '38', 'MAGNETIC SCREW CONVEYOR',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '42', 'WANNERPOMP/HOOD',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '52', 'CT-20',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '70', 'AFMONTEREN',&lt;/P&gt;&lt;P&gt;IF(CUSTOMER_NUMBER = '170132' &lt;B&gt;AND&lt;/B&gt; mid(ProductCode,1,2) = '24','RBF FILTERS UNISIGN',&lt;/P&gt;&lt;P&gt;IF(CUSTOMER_NUMBER = '140342' &lt;B&gt;AND&lt;/B&gt; mid(ProductCode,1,2) = '24','RBF FILTERS HURON',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '23' &lt;B&gt;AND&lt;/B&gt; INDEX(Joblines_Description,'HP') &amp;gt; 0, 'HP TANK',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '23' &lt;B&gt;AND&lt;/B&gt; INDEX(Joblines_Description,'BEHAELTER') &amp;gt; 0, 'TANK',&lt;/P&gt;&lt;P&gt;IF(mid(ProductCode,1,2) = '23' &lt;B&gt;AND&lt;/B&gt; INDEX(Joblines_Description,'TANK') &amp;gt; 0,'COOLANT TANK',&lt;/P&gt;&lt;P&gt;IF(ProductCode = '51000','CONSEP2000 CS-1',&lt;/P&gt;&lt;P&gt;IF(ProductCode = '51001','CONSEP2000 125HP',&lt;/P&gt;&lt;P&gt;IF(ProductCode = '51002','CONSEP2000 200HP','OTHER'))))))))))))))))))))))) &lt;B&gt;as&lt;/B&gt; ProductDescription&lt;/P&gt;&lt;P&gt;&lt;B&gt;Resident&lt;/B&gt; TempJobLines;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Drop&lt;/B&gt; &lt;B&gt;table&lt;/B&gt; &lt;I&gt;TempJobLines;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 17:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-charts-based-on-listbox-data/m-p/148285#M26609</guid>
      <dc:creator />
      <dc:date>2009-07-02T17:57:43Z</dc:date>
    </item>
    <item>
      <title>line charts based on listbox data</title>
      <link>https://community.qlik.com/t5/QlikView/line-charts-based-on-listbox-data/m-p/148286#M26610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not sure if I understood this problem correctly. Do you want to create a chart which has separate line for each product? Also, are there any other dimensions in this chart?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 12:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-charts-based-on-listbox-data/m-p/148286#M26610</guid>
      <dc:creator />
      <dc:date>2009-07-03T12:58:08Z</dc:date>
    </item>
    <item>
      <title>line charts based on listbox data</title>
      <link>https://community.qlik.com/t5/QlikView/line-charts-based-on-listbox-data/m-p/148287#M26611</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 think I was a little bit obscure about the problem. It took me a few hours but I solved it. I have a 2 tables one has the hours and one has the ProductDescription. The different products are in the field ProductDescription. I wanted to select one product per graph. I did this eventually in the dimension field with the following statement =If (ProductDescription = 'CT-20','CT-20').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aissam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 14:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-charts-based-on-listbox-data/m-p/148287#M26611</guid>
      <dc:creator />
      <dc:date>2009-07-03T14:21:09Z</dc:date>
    </item>
    <item>
      <title>line charts based on listbox data</title>
      <link>https://community.qlik.com/t5/QlikView/line-charts-based-on-listbox-data/m-p/148288#M26612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aissam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are using too many IF statements.&lt;/P&gt;&lt;P&gt;1. I'd highly recommend replacing your nested IF statement in the load script with a Mapping table that you could load from Excel. What are you going to do if you need to add another Product?&lt;/P&gt;&lt;P&gt;2. In order to get a line per Product, you need to use ProductDescription as your Dimension - as simple as that, no IF statements needed.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2009 00:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-charts-based-on-listbox-data/m-p/148288#M26612</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-07-04T00:30:42Z</dc:date>
    </item>
  </channel>
</rss>

