<?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: how to select only one element based on another selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781857#M472673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, to select all names you can use:&lt;/P&gt;&lt;P&gt;='('&amp;amp;Concat({&amp;lt;Date={'$(=only(Date))'}&amp;gt;}Name,'|')&amp;amp;')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 13:21:17 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2015-01-05T13:21:17Z</dc:date>
    <item>
      <title>how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781848#M472664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem to create a button select an element from the result of another selection.&lt;/P&gt;&lt;P&gt;Target:&lt;/P&gt;&lt;P&gt;1. Select the latest "Date".&lt;/P&gt;&lt;P&gt;2. Based on the latest Date, the column Name can have multiple result.&lt;/P&gt;&lt;P&gt;3. Select only one Name from step 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some thing like below:&lt;/P&gt;&lt;P&gt;somefunction({&amp;lt;&lt;SPAN style="font-size: 10pt;"&gt;Date={'$(=only(max({&amp;lt;Date={"&amp;lt;=01-10-2014 0:00:00"}&amp;gt;}Date)))'}&amp;gt;}Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;that can select only one (the top one) Name from the Name list? &lt;/P&gt;&lt;P&gt;This is like to use array[1] in php, but I do not know how to select it in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help?&lt;/P&gt;&lt;P&gt;THanks very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 13:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781848#M472664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-23T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781849#M472665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you need the "Name" field, one way could be a combination of aggr function with FirstSortedValue&lt;/P&gt;&lt;P&gt;FirstSortedValue(Name, -aggr(sum/max/rank(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;Date={"&amp;lt;=01-10-2014 0:00:00"}&amp;gt;&lt;/SPAN&gt;value),Name))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is only an approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 13:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781849#M472665</guid>
      <dc:creator>german_avanzato</dc:creator>
      <dc:date>2014-12-23T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781850#M472666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@German,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I made a mistake. It still dose not work. &lt;/P&gt;&lt;P&gt;It works only when the max(Date) and Name are 1-1 match. If for a max(Date), there are multiple value in Name column. Then the result is null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 14:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781850#M472666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-23T14:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781851#M472667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you could upload and example of your model, maybe I can solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr function is like a group by function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe, you need to add the Date into the dimmension&lt;/P&gt;&lt;P&gt;FirstSortedValue(Name, -aggr(sum/max/rank(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;{&amp;lt;Date={"&amp;lt;=01-10-2014 0:00:00"}&amp;gt;&lt;/SPAN&gt;value),&lt;SPAN style="text-decoration: underline;"&gt;Date&lt;/SPAN&gt;,Name))&lt;/P&gt;&lt;P&gt;and/or use the rank function, to sort the result/limit it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With and example of your model will be much easy to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 16:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781851#M472667</guid>
      <dc:creator>german_avanzato</dc:creator>
      <dc:date>2014-12-23T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781852#M472668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy 2015!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have this problem. My target is to have two buttons: 1st button is to select a Date (Step 1 in the example), and then run a macro to press the 2nd button to select the Name for the Name list box(Step 2 in the example ).&lt;/P&gt;&lt;P&gt;And attached is a example .qvw file.&lt;/P&gt;&lt;P&gt;Case 1:You can see when you click on button "SelectDateOneName",&amp;nbsp; and then click on button "SelectName", it works.&lt;/P&gt;&lt;P&gt;Case 2:But when you "SelectDateMultiName", then my solution dose not work.&lt;/P&gt;&lt;P&gt;I am wondering in case 2, how can I select all result and one result (only Name1, first one order by alphabet) in the "Name list box".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 11:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781852#M472668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781853#M472669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, German,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help. And happy new year.&lt;/P&gt;&lt;P&gt;I attached an example .qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zhihong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 12:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781853#M472669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T12:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781854#M472670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, for the Select Name Button you can select:&lt;/P&gt;&lt;P&gt;=MinString({&amp;lt;Date={'$(=only(Date))'}&amp;gt;}Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 13:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781854#M472670</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-05T13:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781855#M472671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ruben,&lt;/P&gt;&lt;P&gt;Thanks very much. Your suggestion works to select one Name out.&lt;/P&gt;&lt;P&gt;Do you know in case 2, how can I have all Name selected (Both Name1 and Name2)? &lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 13:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781855#M472671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T13:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781856#M472672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you have an example.&lt;/P&gt;&lt;P&gt;When I select a project auto selected date max in other variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 13:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781856#M472672</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-01-05T13:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781857#M472673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, to select all names you can use:&lt;/P&gt;&lt;P&gt;='('&amp;amp;Concat({&amp;lt;Date={'$(=only(Date))'}&amp;gt;}Name,'|')&amp;amp;')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 13:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781857#M472673</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-05T13:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781858#M472674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Enrique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your finding.&lt;/P&gt;&lt;P&gt;I do not know why it behaves like this when you select "project", then the max "date" is selected.&lt;/P&gt;&lt;P&gt;Normally, when you select a project, then the available date should be highlighted (available to be selected), but not selected. You need to click to select it or use button to select it.&lt;/P&gt;&lt;P&gt;If you try the other way around(and&amp;nbsp; that is my case, select the latest Date to get the Name), first select a "date", and you will see the the the "project" is not selected. This is a normal behave in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zhihong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 13:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781858#M472674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T13:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781859#M472675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhihong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was an example I have given him because he believed he could help.&lt;/P&gt;&lt;P&gt;If what you want is upside down, select a date and see which names are associated, this QV is offered in standard form.&lt;/P&gt;&lt;P&gt;I've probably misunderstood your requirement, because my English is not very good.&lt;/P&gt;&lt;P&gt;If I explain in more detail try to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 13:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781859#M472675</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-01-05T13:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781860#M472676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;It works. I improve it a little bit as there are space in the Name in my real project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;'"'&amp;amp; Concat({&amp;lt;CaStartDate={'$(=only(CaStartDate))'}&amp;gt;}CampaignName,'"|"')&amp;amp;'"'&amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zhihong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781860#M472676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T14:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only one element based on another selection</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781861#M472677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Enrique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem solved.&lt;/P&gt;&lt;P&gt;Your answer helps me to know a new feature of QV. &lt;/P&gt;&lt;P&gt;Thanks very much for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zhihong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-select-only-one-element-based-on-another-selection/m-p/781861#M472677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-05T14:04:52Z</dc:date>
    </item>
  </channel>
</rss>

