<?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 Matching string and returning field value in text object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664451#M728752</link>
    <description>&lt;P&gt;I have two tables -&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg -&amp;nbsp;&lt;/P&gt;&lt;P&gt;T1&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;T2&lt;/P&gt;&lt;P&gt;T1F1&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;T1F2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; T2F1&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;T2F2&amp;nbsp;&lt;/P&gt;&lt;P&gt;abcd&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;65&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; xyz&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;10002&lt;BR /&gt;xyz&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;100&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;efg&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; 10029&lt;BR /&gt;lpq&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; 19&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; mno&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; 10078&lt;/P&gt;&lt;P&gt;I want to show value of T2F2 for T2F1 = xyz . Ideally I need to get T1F1 with highest T1F2 value and show T2F2 for the same value in a text and image object. For simplicity let's hard code the value 'xyz'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(min([T2F1] like 'XYZ'),'Y','N')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from a different post which returns Y but when I replace 'Y' with the field name nothing gets returned.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(min([T2F1] like 'XYZ'),T2F2,'N')&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The table T2F2 contains unique values for T2F1.&lt;BR /&gt;&lt;BR /&gt;Would appreciate any help as I am a newbie to qliksense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:19:31 GMT</pubDate>
    <dc:creator>Soham</dc:creator>
    <dc:date>2024-11-16T19:19:31Z</dc:date>
    <item>
      <title>Matching string and returning field value in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664451#M728752</link>
      <description>&lt;P&gt;I have two tables -&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg -&amp;nbsp;&lt;/P&gt;&lt;P&gt;T1&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;T2&lt;/P&gt;&lt;P&gt;T1F1&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;T1F2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; T2F1&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;T2F2&amp;nbsp;&lt;/P&gt;&lt;P&gt;abcd&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;65&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; xyz&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;10002&lt;BR /&gt;xyz&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;100&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;efg&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; 10029&lt;BR /&gt;lpq&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; 19&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; mno&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; 10078&lt;/P&gt;&lt;P&gt;I want to show value of T2F2 for T2F1 = xyz . Ideally I need to get T1F1 with highest T1F2 value and show T2F2 for the same value in a text and image object. For simplicity let's hard code the value 'xyz'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(min([T2F1] like 'XYZ'),'Y','N')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from a different post which returns Y but when I replace 'Y' with the field name nothing gets returned.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(min([T2F1] like 'XYZ'),T2F2,'N')&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The table T2F2 contains unique values for T2F1.&lt;BR /&gt;&lt;BR /&gt;Would appreciate any help as I am a newbie to qliksense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664451#M728752</guid>
      <dc:creator>Soham</dc:creator>
      <dc:date>2024-11-16T19:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Matching string and returning field value in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664461#M728753</link>
      <description>&lt;P&gt;I don't know what the reason is but see attached.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664461#M728753</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2020-01-10T14:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Matching string and returning field value in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664466#M728754</link>
      <description>&lt;P&gt;I am sorry about this. I open the .qvw file but I don't see anything. Can you please guide me to what I should be looking for ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664466#M728754</guid>
      <dc:creator>Soham</dc:creator>
      <dc:date>2020-01-10T14:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Matching string and returning field value in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664472#M728755</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen1.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26672i9D48FCB0D722199B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen1.JPG" alt="Screen1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is a screenshot, hope you can see&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664472#M728755</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2020-01-10T14:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Matching string and returning field value in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664475#M728756</link>
      <description>&lt;P&gt;Honestly, I don't get it&lt;/P&gt;&lt;P&gt;but I think this will help you&lt;/P&gt;&lt;P&gt;first in the script :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;T1:
LOAD T1F1 as Key,* INLINE [
    T1F1,T1F2
    abcd,65
    xyz,100
    lpq,19
];

T2:
LOAD T2F1 as Key,* INLINE [
    T2F1,T2F2
    xyz,10002
    efg,10029
    mno,10078
];

LOAD

     FirstSortedValue(T1F1,-(T1F2)) as MaxT1F_
Resident T1
;

LET vMaxT1F1 =peek('MaxT1F_');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then in the text/image object :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=only({&amp;lt;T2F1={$(vMaxT1F1)}&amp;gt; } T2F2)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664475#M728756</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-01-10T14:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Matching string and returning field value in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664476#M728757</link>
      <description>&lt;P&gt;Thank you for this. I do see it and it is working fine. But is there any reason as to why the if expression was not working ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664476#M728757</guid>
      <dc:creator>Soham</dc:creator>
      <dc:date>2020-01-10T14:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Matching string and returning field value in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664477#M728758</link>
      <description>&lt;P&gt;T2F1 is a string !&lt;/P&gt;&lt;P&gt;min(T2F1) -&amp;gt;minstring(T2F1)&lt;/P&gt;&lt;P&gt;but it's not good to use it like that also you must to aggregate ....&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664477#M728758</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-01-10T14:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Matching string and returning field value in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664480#M728759</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-string-and-returning-field-value-in-text-object/m-p/1664480#M728759</guid>
      <dc:creator>Soham</dc:creator>
      <dc:date>2020-01-10T14:33:49Z</dc:date>
    </item>
  </channel>
</rss>

