<?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 How to search a value inside a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-search-a-value-inside-a-table/m-p/153498#M30506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following two tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qualify *;&lt;/P&gt;&lt;P&gt;unqualify Article;&lt;/P&gt;&lt;P&gt;MEDIUMCOST:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Article, Year, Cost&lt;/P&gt;&lt;P&gt;123, 2009, 100&lt;/P&gt;&lt;P&gt;123, 2008, 120&lt;/P&gt;&lt;P&gt;456, 2007, 68&lt;/P&gt;&lt;P&gt;456, 2006, 50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALES:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Article, Year, Price&lt;/P&gt;&lt;P&gt;123, 2009, 500&lt;/P&gt;&lt;P&gt;123, 2008, 240&lt;/P&gt;&lt;P&gt;456, 2009, 90&lt;/P&gt;&lt;P&gt;456, 2007, 60&lt;/P&gt;&lt;P&gt;456, 2005, 30&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to calculate the cost and i can have the following cases:&lt;/P&gt;&lt;P&gt;- I have sold a product in one year and i have the evaluation of the cost for this year (product 123 sold in 2009 the cost for the year 2009 is 100)&lt;/P&gt;&lt;P&gt;In this case i should see the cost of the year that match, so 100&lt;/P&gt;&lt;P&gt;- i have sold a product in one year and i have the value of the cost in one of the previous year (product 456 sold in 2009 the cost are available only in 2007 and 2005)&lt;/P&gt;&lt;P&gt;in this case I should see the first cost available in the first year available. In my example the cost of product 456 in Year 2007 = 68&lt;/P&gt;&lt;P&gt;- i have sold a product in one year and i have no value of cost in the previous years (product 456 sold in 2005)&lt;/P&gt;&lt;P&gt;In this case I should have cost = 0&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2009 23:48:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-16T23:48:59Z</dc:date>
    <item>
      <title>How to search a value inside a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-search-a-value-inside-a-table/m-p/153498#M30506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following two tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qualify *;&lt;/P&gt;&lt;P&gt;unqualify Article;&lt;/P&gt;&lt;P&gt;MEDIUMCOST:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Article, Year, Cost&lt;/P&gt;&lt;P&gt;123, 2009, 100&lt;/P&gt;&lt;P&gt;123, 2008, 120&lt;/P&gt;&lt;P&gt;456, 2007, 68&lt;/P&gt;&lt;P&gt;456, 2006, 50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALES:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Article, Year, Price&lt;/P&gt;&lt;P&gt;123, 2009, 500&lt;/P&gt;&lt;P&gt;123, 2008, 240&lt;/P&gt;&lt;P&gt;456, 2009, 90&lt;/P&gt;&lt;P&gt;456, 2007, 60&lt;/P&gt;&lt;P&gt;456, 2005, 30&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to calculate the cost and i can have the following cases:&lt;/P&gt;&lt;P&gt;- I have sold a product in one year and i have the evaluation of the cost for this year (product 123 sold in 2009 the cost for the year 2009 is 100)&lt;/P&gt;&lt;P&gt;In this case i should see the cost of the year that match, so 100&lt;/P&gt;&lt;P&gt;- i have sold a product in one year and i have the value of the cost in one of the previous year (product 456 sold in 2009 the cost are available only in 2007 and 2005)&lt;/P&gt;&lt;P&gt;in this case I should see the first cost available in the first year available. In my example the cost of product 456 in Year 2007 = 68&lt;/P&gt;&lt;P&gt;- i have sold a product in one year and i have no value of cost in the previous years (product 456 sold in 2005)&lt;/P&gt;&lt;P&gt;In this case I should have cost = 0&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 23:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-search-a-value-inside-a-table/m-p/153498#M30506</guid>
      <dc:creator />
      <dc:date>2009-11-16T23:48:59Z</dc:date>
    </item>
    <item>
      <title>How to search a value inside a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-search-a-value-inside-a-table/m-p/153499#M30507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should have an interval dates for cost value by Product (Article). For example:&lt;/P&gt;&lt;P&gt;load * inline&lt;BR /&gt;&lt;BR /&gt;[&lt;BR /&gt;&lt;BR /&gt;Article, YearStart, YearEnd, Cost&lt;BR /&gt;&lt;BR /&gt;123, 2009, 2099, 100&lt;BR /&gt;&lt;BR /&gt;123, 2008, 2008, 120&lt;BR /&gt;&lt;BR /&gt;456, 2007, 2099, 68&lt;BR /&gt;&lt;BR /&gt;456, 2006, 2006, 50&lt;BR /&gt;&lt;BR /&gt;];&lt;BR /&gt;The field "YearEnd" you may calculate from your field "Year".&lt;/P&gt;&lt;P&gt;then after you will get such table you should use intervalmatch() function.(see more details in help)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 00:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-search-a-value-inside-a-table/m-p/153499#M30507</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2009-11-17T00:49:33Z</dc:date>
    </item>
    <item>
      <title>How to search a value inside a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-search-a-value-inside-a-table/m-p/153500#M30508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sparur has sent you on the right track but I've attached an example because there are a number of steps.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 14:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-search-a-value-inside-a-table/m-p/153500#M30508</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-11-17T14:21:01Z</dc:date>
    </item>
    <item>
      <title>How to search a value inside a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-search-a-value-inside-a-table/m-p/153501#M30509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;what to say? Thanks a lot!&lt;/P&gt;&lt;P&gt;I will put your solution in my model.&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 17:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-search-a-value-inside-a-table/m-p/153501#M30509</guid>
      <dc:creator />
      <dc:date>2009-11-17T17:45:04Z</dc:date>
    </item>
  </channel>
</rss>

