<?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: Problem with first selected value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624619#M733832</link>
    <description>&lt;P&gt;Can anyone else help?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 11:40:15 GMT</pubDate>
    <dc:creator>peterderrington</dc:creator>
    <dc:date>2019-09-17T11:40:15Z</dc:date>
    <item>
      <title>Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620944#M733825</link>
      <description>&lt;P&gt;So I have a chart that shows the first instance of someone entering (and leaving) a department which uses these expressions:&lt;/P&gt;&lt;P&gt;&lt;FONT size="1" color="#0000ff"&gt;Time&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;FirstSortedValue&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;[Time Event Sent For]&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;ID&lt;/FONT&gt;&lt;FONT size="1"&gt;,1)) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1" color="#0000ff"&gt;Time&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;FirstSortedValue&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;[Time Event Out Of Recovery]&lt;/FONT&gt;&lt;FONT size="1"&gt;,-&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;ID&lt;/FONT&gt;&lt;FONT size="1"&gt;,1)) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;However the chart only works if I don't filter down to a specific department which isn't helpful.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620944#M733825</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620960#M733826</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try with&lt;/P&gt;&lt;P&gt;&lt;FONT size="1" color="#0000ff"&gt;Time&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;FirstSortedValue&lt;/FONT&gt;&lt;FONT size="1"&gt;({&amp;lt;Department&amp;gt;}&amp;nbsp; &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;[Time Event Sent For]&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;ID&lt;/FONT&gt;&lt;FONT size="1"&gt;,1)) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1" color="#0000ff"&gt;Time&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;FirstSortedValue&lt;/FONT&gt;&lt;FONT size="1"&gt;({&amp;lt;Department&amp;gt;}&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;[Time Event Out Of Recovery]&lt;/FONT&gt;&lt;FONT size="1"&gt;,-&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;ID&lt;/FONT&gt;&lt;FONT size="1"&gt;,1)) &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 09:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620960#M733826</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2019-09-06T09:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620966#M733827</link>
      <description>&lt;P&gt;So we're a step forward....&lt;/P&gt;&lt;P&gt;It now doesn't show the dreaded 'No Data' message now when I select a department however the graph itself doesn't change. So I think what its doing is just showing the very first selected value of all the data rather than the selected.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 09:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620966#M733827</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2019-09-06T09:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620973#M733828</link>
      <description>&lt;P&gt;That set expression overrides the selection of Department. Its hard to give specific advice without knowing more of your data model, but perhaps you need a partial total, something like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Time(FirstSortedValue(TOTAL &amp;lt;Department&amp;gt; [Time Event Sent For], ID ,1))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Time(FirstSortedValue(TOTAL &amp;lt;Department&amp;gt;} [Time Event Out Of Recovery], -ID, 1))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You may need to try other field(s) in the partial total. This is only a guess however...&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 10:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620973#M733828</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-09-06T10:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620988#M733829</link>
      <description>&lt;P&gt;So that's not working properly.&lt;/P&gt;&lt;P&gt;The graph goes flat and disappears completely when you select a department.&lt;/P&gt;&lt;P&gt;Attached is what the graph should look like.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 10:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1620988#M733829</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2019-09-06T10:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1621002#M733830</link>
      <description>&lt;P&gt;Does this happen for every selection of Department? Also, do you have multiple lowest value per Department, if you do, you can try adding a DISTINCT like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Time(FirstSortedValue(DISTINCT [Time Event Sent For], ID, 1))
Time(FirstSortedValue(DISTINCT [Time Event Out Of Recovery], -ID, 1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 11:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1621002#M733830</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-06T11:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1621118#M733831</link>
      <description>&lt;P&gt;Yeah it happens for all departments selected.&lt;/P&gt;&lt;P&gt;The original data is an excel spreadsheet, in time order, with various lines for different instances. Each line contains a number of unique identifiers and also has a time that they started (or were called for) and when they finished.&lt;/P&gt;&lt;P&gt;I need to be able to select a department and then see the very first instance that someone was called into the department and then the last time that someone left that department too.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 14:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1621118#M733831</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2019-09-06T14:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624619#M733832</link>
      <description>&lt;P&gt;Can anyone else help?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 11:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624619#M733832</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2019-09-17T11:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624624#M733833</link>
      <description>&lt;P&gt;In order to help you better, would you be able to share a qvw sample where we can see the problem?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 11:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624624#M733833</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-17T11:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624632#M733834</link>
      <description>&lt;P&gt;I'll see if i can sort out a qvw sample and post it up, i just need to anonomise some of the data first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624632#M733834</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2019-09-17T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624642#M733835</link>
      <description>&lt;P&gt;Ok,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this....&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624642#M733835</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2019-09-17T12:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624646#M733836</link>
      <description>&lt;P&gt;So, I added Theatre Name dimension to the chart (after converting it to a straight table) and I see all Nulls, seems like Theatre Name is not connected to Date of Visit dimension.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624646#M733836</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-17T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with first selected value</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624654#M733837</link>
      <description>&lt;P&gt;Strange,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a version of the data&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-first-selected-value/m-p/1624654#M733837</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2019-09-17T12:35:47Z</dc:date>
    </item>
  </channel>
</rss>

