<?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: display values in test box based on selection of value and conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744861#M453207</link>
    <description>&lt;P&gt;Thanks for your reply...I have updated the application with meaningful values now&lt;/P&gt;&lt;P&gt;I have a list box with a unique identifier and a test box that should be displaying the reasons of why the identifier is listed on the list box.&lt;/P&gt;&lt;P&gt;My question is that the values in the test box display if the identifier has only one 'number/type' combination met &amp;nbsp;.. however if the identifier associated with multiple numbers/types and conditions test box doesn’t display any values by when user selects the identifier...&amp;nbsp;&lt;/P&gt;&lt;P&gt;My scenario here is irrespective of number of number/type combination and conditions&amp;nbsp; test box should display all the values accordingly.&lt;/P&gt;&lt;P&gt;if an identifier satisfy all conditions , the test box should display&amp;nbsp;all values&lt;/P&gt;&lt;P&gt;Missing Values in ----&lt;/P&gt;&lt;P&gt;RelatedCEnd is ----&lt;/P&gt;&lt;P&gt;RelatedEEnd is ----&lt;/P&gt;&lt;P&gt;EStart_Date is &amp;nbsp;----&lt;/P&gt;&lt;P&gt;=if(GetPossibleCount(Identifier)=1 ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( Status='Missing' ,'Missing Values in '&amp;amp; CONCAT(Missing_Field,',')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,if (Type = 'Commercial' and rnk =1 and&amp;nbsp; RelatedCEnd_Date &amp;gt;=&lt;STRONG&gt;&lt;EM&gt;$(vToday)&lt;/EM&gt;&lt;/STRONG&gt;and RelatedCEnd_Date&amp;lt;=&lt;STRONG&gt;&lt;EM&gt;$(v30Days)&lt;/EM&gt;&lt;/STRONG&gt;,'RelatedCEnd is '&amp;amp;&amp;nbsp; RelatedCEnd_Date&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,if (Type = 'PA'&amp;nbsp;&amp;nbsp; and rnk =1 and&amp;nbsp;&amp;nbsp; RelatedEEnd_Date &amp;gt;=&lt;STRONG&gt;&lt;EM&gt;$(vToday)&lt;/EM&gt;&lt;/STRONG&gt; and RelatedEEnd_Date&amp;lt;=&lt;STRONG&gt;&lt;EM&gt;$(v30Days)&lt;/EM&gt;&lt;/STRONG&gt; ,'RelatedEEnd is '&amp;amp; RelatedEEnd_Date&lt;BR /&gt;&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;,if(Type = 'Commercial' and rnk =1 and&amp;nbsp;&amp;nbsp; [claims] = '0'&amp;nbsp; ,'EStart_Date is' &amp;amp;&amp;nbsp; EStart_Date ) ))))&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 17:22:32 GMT</pubDate>
    <dc:creator>Sai78</dc:creator>
    <dc:date>2020-09-17T17:22:32Z</dc:date>
    <item>
      <title>display values in test box based on selection of value and conditions</title>
      <link>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744531#M453168</link>
      <description>&lt;P&gt;I have a condition when the user selects a value from the list box ..there is another test box the details need to be displayed... I have tried multiple ways but data not getting displayed as designed..could you please check the attached application and help.&lt;/P&gt;&lt;P&gt;Any insight would greatly be appreciated. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744531#M453168</guid>
      <dc:creator>Sai78</dc:creator>
      <dc:date>2024-11-15T23:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: display values in test box based on selection of value and conditions</title>
      <link>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744815#M453201</link>
      <description>&lt;P&gt;Your main problem is that there are cases where multiple STATUS and multiple TYPES.&amp;nbsp; for example, when you choose an identifier with multiple records.&amp;nbsp; there will only be one possible STATUS, but multiple occurrences of it so the expression STATUS=missing will fail.&amp;nbsp; it should be only(STATUS)=missing:&lt;BR /&gt;&lt;BR /&gt;=if(GetPossibleCount(Identifier)=1 ,&lt;BR /&gt;if( &lt;EM&gt;&lt;STRONG&gt;only(Status)&lt;/STRONG&gt;&lt;/EM&gt;='Missing' , CONCAT(Missing_Field,',')&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;you will see this if you select identifier 'TVT-VNEZCVN2' as it only has one record where status = missing.&amp;nbsp; &amp;nbsp;so you code returns the expected value.&amp;nbsp; otherwise it fails.&lt;BR /&gt;&lt;BR /&gt;then your next issue is with the criteria&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Type = 'test type4'&lt;/STRONG&gt;&lt;/EM&gt; this will again fail if there are multiple instances of Type.&lt;/P&gt;&lt;P&gt;could it be you want to create a staright table instead so you can handle cases where multiple records are returned?&lt;BR /&gt;&lt;BR /&gt;if you explain what you are trying to achieve, maybe someone can help.&amp;nbsp; hope this answers the question why your code is failing and leads you to a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 14:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744815#M453201</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-17T14:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: display values in test box based on selection of value and conditions</title>
      <link>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744861#M453207</link>
      <description>&lt;P&gt;Thanks for your reply...I have updated the application with meaningful values now&lt;/P&gt;&lt;P&gt;I have a list box with a unique identifier and a test box that should be displaying the reasons of why the identifier is listed on the list box.&lt;/P&gt;&lt;P&gt;My question is that the values in the test box display if the identifier has only one 'number/type' combination met &amp;nbsp;.. however if the identifier associated with multiple numbers/types and conditions test box doesn’t display any values by when user selects the identifier...&amp;nbsp;&lt;/P&gt;&lt;P&gt;My scenario here is irrespective of number of number/type combination and conditions&amp;nbsp; test box should display all the values accordingly.&lt;/P&gt;&lt;P&gt;if an identifier satisfy all conditions , the test box should display&amp;nbsp;all values&lt;/P&gt;&lt;P&gt;Missing Values in ----&lt;/P&gt;&lt;P&gt;RelatedCEnd is ----&lt;/P&gt;&lt;P&gt;RelatedEEnd is ----&lt;/P&gt;&lt;P&gt;EStart_Date is &amp;nbsp;----&lt;/P&gt;&lt;P&gt;=if(GetPossibleCount(Identifier)=1 ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( Status='Missing' ,'Missing Values in '&amp;amp; CONCAT(Missing_Field,',')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,if (Type = 'Commercial' and rnk =1 and&amp;nbsp; RelatedCEnd_Date &amp;gt;=&lt;STRONG&gt;&lt;EM&gt;$(vToday)&lt;/EM&gt;&lt;/STRONG&gt;and RelatedCEnd_Date&amp;lt;=&lt;STRONG&gt;&lt;EM&gt;$(v30Days)&lt;/EM&gt;&lt;/STRONG&gt;,'RelatedCEnd is '&amp;amp;&amp;nbsp; RelatedCEnd_Date&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,if (Type = 'PA'&amp;nbsp;&amp;nbsp; and rnk =1 and&amp;nbsp;&amp;nbsp; RelatedEEnd_Date &amp;gt;=&lt;STRONG&gt;&lt;EM&gt;$(vToday)&lt;/EM&gt;&lt;/STRONG&gt; and RelatedEEnd_Date&amp;lt;=&lt;STRONG&gt;&lt;EM&gt;$(v30Days)&lt;/EM&gt;&lt;/STRONG&gt; ,'RelatedEEnd is '&amp;amp; RelatedEEnd_Date&lt;BR /&gt;&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;,if(Type = 'Commercial' and rnk =1 and&amp;nbsp;&amp;nbsp; [claims] = '0'&amp;nbsp; ,'EStart_Date is' &amp;amp;&amp;nbsp; EStart_Date ) ))))&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 17:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744861#M453207</guid>
      <dc:creator>Sai78</dc:creator>
      <dc:date>2020-09-17T17:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: display values in test box based on selection of value and conditions</title>
      <link>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744881#M453212</link>
      <description>&lt;P&gt;&lt;EM&gt;"My question is that the values in the test box display if the identifier has only one 'number/type' combination met &amp;nbsp;.. however if the identifier associated with multiple numbers/types and conditions test box doesn’t display any values by when user selects the identifier... "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;i may not have communicated it properly.&amp;nbsp; we are both saying the same thing.&amp;nbsp; you should not use the expresstion STATUS= ... or TYPE=... as these fail if there are multiple rows.&amp;nbsp; the STATUS criteria is simple as you may have a unique status per identifier.&amp;nbsp; so you use&lt;/P&gt;&lt;P&gt;if(ONLY(STATUS)=...&lt;/P&gt;&lt;P&gt;now type is a different matter as you obviously have multiple types per identifier.&amp;nbsp; if (and this is a big if) TYPE for each identifier could be Missing and only one other, you can maybe get away with the following&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(GetPossibleCount(Identifier)=1 ,
      if( only(Status)='Missing' ,'Missing Values in '&amp;amp; CONCAT(Missing_Field,',')
          ,if (only({&amp;lt;Type-={'Missing'}&amp;gt;}Type) = 'Commercial' and only(rnk) =1 and  max(RelatedCEnd_Date) &amp;gt;=$(vToday)and max(RelatedCEnd_Date)&amp;lt;=$(v30Days),'RelatedCEnd is '&amp;amp;  max(RelatedCEnd_Date )
             ,if (only({&amp;lt;Type-={'Missing'}&amp;gt;}Type) = 'PA'   and only(rnk) =1 and   max(RelatedEEnd_Date) &amp;gt;=$(vToday) and max(RelatedEEnd_Date)&amp;lt;=$(v30Days) ,'RelatedEEnd is '&amp;amp; max(RelatedEEnd_Date) 
                 ,if(only({&amp;lt;Type-={'Missing'}&amp;gt;}Type) = 'Commercial' and only(rnk) =1 and   only([claims]) = '0'  ,'EStart_Date is' &amp;amp;  max(EStart_Date) ) ))))
&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;the change i did was placed aggregations around each field.&amp;nbsp; again you cannot use the expression FIELD=... if there are cases where there will be multiple instances or values for the field. hence the ONLY and MAX (im guessing business requirements here)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 18:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744881#M453212</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-17T18:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: display values in test box based on selection of value and conditions</title>
      <link>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744895#M453214</link>
      <description>&lt;P&gt;Thank you for the insight!&lt;/P&gt;&lt;P&gt;The updated logic also didn't get displayed when identifiers have multiple types /numbers associated with&lt;/P&gt;&lt;P&gt;an example...if the user selects identifier 'TVT-S2qiptk0 ' displays without any issues as this identifier has only one number and type associated with, However, if the user selects identifier s 'TVT-R65X0tX0'&amp;nbsp; or 'TVT-R7KjljK0' or 'TVT-Rd1bmvh0 ' identifier values are not getting displayed.. My requirement is to list out all the conditions that attention needed...&lt;/P&gt;&lt;P&gt;Could you help with this as to how to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 19:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744895#M453214</guid>
      <dc:creator>Sai78</dc:creator>
      <dc:date>2020-09-17T19:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: display values in test box based on selection of value and conditions</title>
      <link>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744908#M453215</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/31146"&gt;@Sai78&lt;/a&gt;&amp;nbsp; what is expected output for&amp;nbsp;&amp;nbsp;TVT-RPQ5Tgh0 ?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 21:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744908#M453215</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-17T21:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: display values in test box based on selection of value and conditions</title>
      <link>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744909#M453216</link>
      <description>&lt;P&gt;these are new test cases.&amp;nbsp; the expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;only({&amp;lt;Type-={'Missing'}&amp;gt;}Type) =&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assumes that each identifier can only either have type missing or one other.&amp;nbsp; for identifier&amp;nbsp;TVT-R7KjljK0, it has 3 types, missing, PA, and commercial.&amp;nbsp; this scenario is not addressed by the code.&amp;nbsp; you need to decide what you do in scenarios like these?&amp;nbsp; is it commercial?&amp;nbsp; is it PA? you need to go back to your business rule.&lt;/P&gt;&lt;P&gt;i would suggest you organize your logic in some structure like :&lt;BR /&gt;&lt;BR /&gt;if ID &lt;EM&gt;HAS&lt;/EM&gt; commercial then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if max of rnk =.... and max(RelEndDate)&amp;gt;=...&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else if max(rnk)=... and max(RelEndDate)&amp;gt;=...&lt;BR /&gt;else if ID HAS PA then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if max of Rnk =....&lt;BR /&gt;&lt;BR /&gt;now to code the phrase if ID HAS commercial you can&amp;nbsp; use this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;only({&amp;lt;Type-={'Missing','PA'}&amp;gt;}Type) = 'Commercial'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is for if ID HAS PA:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;only({&amp;lt;Type-={'Missing','Commercial'}&amp;gt;}Type) = 'PA'&lt;/LI-CODE&gt;&lt;P&gt;will all your selections result in an entry in your text box?&amp;nbsp; answer is no.&amp;nbsp; bec for some you also need to check rnk, relatedDate, and claims.&amp;nbsp; if neither of the conditions are met, you get NULL.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 21:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/display-values-in-test-box-based-on-selection-of-value-and/m-p/1744909#M453216</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-17T21:22:14Z</dc:date>
    </item>
  </channel>
</rss>

