<?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 What function to use? Simple Problem! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309833#M1184454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; give some thing like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only({&amp;lt;Granted date = {$(=concat(Date,','))}&amp;gt;} ManagerNames )&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2011 03:20:07 GMT</pubDate>
    <dc:creator>qliksus</dc:creator>
    <dc:date>2011-10-05T03:20:07Z</dc:date>
    <item>
      <title>What function to use? Simple Problem!</title>
      <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309826#M1184447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 fields&lt;/P&gt;&lt;P&gt; Name,Granted_Date, ManagerName.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the value of field 'ManagerName', based on the the values of Name and Granted Date. suppose I select a 'Name', it has only one granted date but multiple managers name. I want to display only that manager name who was the manager at the granted date and not the whole list of multiple managers associated with that name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks . Any help would be appreicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 20:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309826#M1184447</guid>
      <dc:creator />
      <dc:date>2011-10-03T20:14:14Z</dc:date>
    </item>
    <item>
      <title>What function to use? Simple Problem!</title>
      <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309827#M1184448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all three fields are in the same table in QlikView, then once you select Name and Granted_Date, if there is only one possible value for ManagerName, then this will be displayed. But I'm assuming that you already tried something liek that and that it didn't work, so please elaborate on what do you want to return, what objects are you using and post some simple data that help us to check what you need to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the function FirstSortedValue() that can be used in either the script or a chart. Check &lt;A _jive_internal="true" href="https://community.qlik.com/message/147974#147974"&gt;this post&lt;/A&gt; among many others on how to use it with a similar issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 21:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309827#M1184448</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-03T21:01:48Z</dc:date>
    </item>
    <item>
      <title>What function to use? Simple Problem!</title>
      <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309828#M1184449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is I don't want my user to select the granted date column. It should display that this is the manager on the granted date.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Name, Granted Date, ManagerNames, Date&lt;/P&gt;&lt;P&gt;ABC, 9/20/2010, RM1, 09.20.2011&lt;/P&gt;&lt;P&gt;ABC, - , RM2, 09.21.2011&lt;/P&gt;&lt;P&gt;ABC,-, RM3, 09.22.2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This date is connected to the master calender. Now, if I select name ABC, it should see the grant date and display that manager at that time is RM1. It could be displayed in a text box as well or anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 21:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309828#M1184449</guid>
      <dc:creator />
      <dc:date>2011-10-03T21:34:05Z</dc:date>
    </item>
    <item>
      <title>What function to use? Simple Problem!</title>
      <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309829#M1184450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry , the granted date is also repeated with each record. So its like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name, Granted Date, ManagerNames, Date&lt;/P&gt;&lt;P&gt;ABC, 9/20/2010, RM1, 09.20.2011&lt;/P&gt;&lt;P&gt;ABC, 9/20/2010 , RM2, 09.21.2011&lt;/P&gt;&lt;P&gt;ABC,9/20/2010, RM3, 09.22.2011&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 21:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309829#M1184450</guid>
      <dc:creator />
      <dc:date>2011-10-03T21:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: What function to use? Simple Problem!</title>
      <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309830#M1184451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What date is associated to the master calendar? If users cannot select Granted Date, are they able to select "Date"? If not, what criteria should be used to know what ManagerName is correct once they select a Name? I. e.: The following will work in a text object or a chart expression, but I guess you want some other criteria to apply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;MaxString&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;[Granted Date]&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; = {&lt;/SPAN&gt;'$(=Max([Granted Date]))'&lt;SPAN class="s1"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;ManagerNames&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your example above, it will return "RM1" as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 21:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309830#M1184451</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-03T21:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: What function to use? Simple Problem!</title>
      <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309831#M1184452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another approach to my first answer below is using FirstSortedValue() as I mentioned above. Did you check the post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;FirstSortedValue&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;ManagerNames&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 21:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309831#M1184452</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-03T21:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: What function to use? Simple Problem!</title>
      <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309832#M1184453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Date field is connected to the Calender and not the Granted Date. As you could see the right data set below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name, Granted Date, ManagerNames, Date&lt;/P&gt;&lt;P&gt;ABC, 9/20/2010, RM1, 09.20.2010&lt;/P&gt;&lt;P&gt;ABC, 9/20/2010 , RM2, 09.21.2010&lt;/P&gt;&lt;P&gt;ABC,9/20/2010, RM3, 09.22.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The granted date is same for the name ABC as 9/20/2010 in each record and at that granted date the manager was RM1. I'm sorry for posting the wrong data in my above post. So , this 'Date' is actually storing data for each day. And at the 'Date' Value 09.20.2010 (which is also the granted value) the manager was RM1. That is all I want to display.&lt;/P&gt;&lt;P&gt;I think I just want the right set analysis expression for this. &lt;/P&gt;&lt;P&gt;So, when I choose my name , it displays all the managers RM1, RM2, RM3. All I want is to display that RM1 was the one on granted date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 22:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309832#M1184453</guid>
      <dc:creator />
      <dc:date>2011-10-03T22:17:09Z</dc:date>
    </item>
    <item>
      <title>What function to use? Simple Problem!</title>
      <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309833#M1184454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; give some thing like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only({&amp;lt;Granted date = {$(=concat(Date,','))}&amp;gt;} ManagerNames )&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 03:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309833#M1184454</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2011-10-05T03:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: What function to use? Simple Problem!</title>
      <link>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309834#M1184455</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 tried this statement but couldn't get any output. Can you tell me why have you used concat statement a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 17:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-function-to-use-Simple-Problem/m-p/309834#M1184455</guid>
      <dc:creator />
      <dc:date>2011-10-05T17:20:44Z</dc:date>
    </item>
  </channel>
</rss>

