<?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: To get the result after comparing two parameters (numbers) which are not equal (nearest value) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534089#M439012</link>
    <description>&lt;P&gt;I suggest you read how the Round function works:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/GeneralNumericFunctions/round.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/GeneralNumericFunctions/round.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But yes, if all the variance is 0.25 then change 0.5 to 0.25.&lt;/P&gt;&lt;P&gt;In case it do not get linked and there are missing values in Reference table then:&lt;/P&gt;&lt;PRE&gt;tmp:
Directory;
LOAD CLASS, 
     DRAFT, 
     SPEED,
     Round(DRAFT, 0.5) as tmpDRAFT,
     Round(SPEED, 0.5) as tmpSPEED
FROM
[..\Downloads\Data.xlsx]
(ooxml, embedded labels, table is Table);



Directory;
Left Join (tmp)
LOAD CLASS, 
     DRAFT as tmpDRAFT, 
     SPEED as tmpSPEED, 
     TRIM
FROM
[..\Downloads\Data.xlsx]
(ooxml, embedded labels, table is [Reference table]);


tmp2:
LOAD *
	,Alt(TRIM, 0) as newTRIM
Resident tmp;

DROP Table tmp;&lt;/PRE&gt;</description>
    <pubDate>Wed, 23 Jan 2019 20:08:29 GMT</pubDate>
    <dc:creator>MindaugasBacius</dc:creator>
    <dc:date>2019-01-23T20:08:29Z</dc:date>
    <item>
      <title>To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1533986#M438997</link>
      <description>&lt;P&gt;I have to get extract a column after comparing 2 numeric columns from a reference table.&amp;nbsp; To clarify, from Table 1, I should pass two column values to the respective columns in the reference table and it should retrieve reference table's&amp;nbsp; third column. I have attached the data set with expected result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="opt.png" style="width: 671px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4329i6F68D24F3C10987F/image-size/large?v=v2&amp;amp;px=999" role="button" title="opt.png" alt="opt.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1533986#M438997</guid>
      <dc:creator>mithunjacob</dc:creator>
      <dc:date>2024-11-16T21:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1533998#M438998</link>
      <description>Obviously the values don't match those in the reference table. So what's the precise logic that determines if there's a match or not?</description>
      <pubDate>Wed, 23 Jan 2019 17:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1533998#M438998</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-01-23T17:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534004#M439000</link>
      <description>Should ABC;11;18 return 0.5 ? based on the reference table</description>
      <pubDate>Wed, 23 Jan 2019 17:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534004#M439000</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2019-01-23T17:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534008#M439001</link>
      <description>&lt;P&gt;Yes, ABC 11:18 should return 0.50&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 17:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534008#M439001</guid>
      <dc:creator>mithunjacob</dc:creator>
      <dc:date>2019-01-23T17:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534010#M439002</link>
      <description>Table1:&lt;BR /&gt;LOAD&lt;BR /&gt;"CLASS",&lt;BR /&gt;DRAFT as 'DRAFT (x)',&lt;BR /&gt;SPEED as 'SPEED (y)',&lt;BR /&gt;Num(Round(DRAFT,0.5),'0.00') as 'DRAFT',&lt;BR /&gt;Num(Round(SPEED),'0.00') as 'SPEED'&lt;BR /&gt;FROM [lib://AttachedFiles/Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Table);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Left Join(Table1)&lt;BR /&gt;LOAD&lt;BR /&gt;"CLASS",&lt;BR /&gt;DRAFT,&lt;BR /&gt;SPEED,&lt;BR /&gt;"TRIM"&lt;BR /&gt;FROM [lib://AttachedFiles/Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Reference table]);&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jan 2019 17:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534010#M439002</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2019-01-23T17:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534011#M439003</link>
      <description>It should bring out the nearest value.</description>
      <pubDate>Wed, 23 Jan 2019 17:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534011#M439003</guid>
      <dc:creator>mithunjacob</dc:creator>
      <dc:date>2019-01-23T17:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534059#M439007</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.jpg" style="width: 297px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4341iC6B02435204DAAD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.jpg" alt="Screenshot_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am pretty sure this is the result you're looking for.&lt;/P&gt;&lt;P&gt;I have attached the qvw. Take a look.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 19:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534059#M439007</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-01-23T19:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534064#M439008</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46873" target="_self"&gt;&lt;SPAN class=""&gt;Jpenuliar&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; 's solution is the same as mine by the way&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 19:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534064#M439008</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-01-23T19:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534078#M439010</link>
      <description>&lt;P&gt;Thank you very much Jpenuliar! Your approach is working good for the sample set I attached. I will accept as solution. Before that one more doubt - what if in Drafts there is 0.25 variance also? I have attached a new sheet here with those sets. Kindly check. If we make&amp;nbsp;Num(Round(DRAFT,&lt;STRONG&gt;0.25&lt;/STRONG&gt;),'0.00') as 'DRAFT', one of the record will not come because the data is not there. Its a tricky situation! In case this scenario cannot be covered, will you able to induce/print '0' there from the script?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 19:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534078#M439010</guid>
      <dc:creator>mithunjacob</dc:creator>
      <dc:date>2019-01-23T19:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: To get the result after comparing two parameters (numbers) which are not equal (nearest value)</title>
      <link>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534089#M439012</link>
      <description>&lt;P&gt;I suggest you read how the Round function works:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/GeneralNumericFunctions/round.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/GeneralNumericFunctions/round.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But yes, if all the variance is 0.25 then change 0.5 to 0.25.&lt;/P&gt;&lt;P&gt;In case it do not get linked and there are missing values in Reference table then:&lt;/P&gt;&lt;PRE&gt;tmp:
Directory;
LOAD CLASS, 
     DRAFT, 
     SPEED,
     Round(DRAFT, 0.5) as tmpDRAFT,
     Round(SPEED, 0.5) as tmpSPEED
FROM
[..\Downloads\Data.xlsx]
(ooxml, embedded labels, table is Table);



Directory;
Left Join (tmp)
LOAD CLASS, 
     DRAFT as tmpDRAFT, 
     SPEED as tmpSPEED, 
     TRIM
FROM
[..\Downloads\Data.xlsx]
(ooxml, embedded labels, table is [Reference table]);


tmp2:
LOAD *
	,Alt(TRIM, 0) as newTRIM
Resident tmp;

DROP Table tmp;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Jan 2019 20:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-get-the-result-after-comparing-two-parameters-numbers-which/m-p/1534089#M439012</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-01-23T20:08:29Z</dc:date>
    </item>
  </channel>
</rss>

