<?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: Dynamic get the newest data by FirstSortedValue statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409066#M820694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your solution, but it doesn't work, the chart display nothing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2017 08:21:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-08-17T08:21:06Z</dc:date>
    <item>
      <title>Dynamic get the newest data by FirstSortedValue statement</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409062#M820689</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;Based on my previous two questions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/269755" target="_blank"&gt;Get the latest value for each department&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/271303" target="_blank"&gt;Firstsortedvalue from multi columns&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I can achieve my purpose: get the newest data from data sheet by firstsortedvalue function.&lt;/P&gt;&lt;P&gt;However, there's one problem, if one of condition has multi options, I have to split one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;In the attachment,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum({&amp;lt;Type={'売 上 高　実　績'},Key={"$(=FirstSortedValue({&amp;lt;FSVKey={'売 上 高　実　績预算'},TestedDate={'2016-10'}&amp;gt;} Key, -Key))"}&amp;gt;} Data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum({&amp;lt;Type={'売 上 高　実　績'},Key={"$(=FirstSortedValue({&amp;lt;FSVKey={'売 上 高　実　績预算'},TestedDate={'2016-11'}&amp;gt;} Key, -Key))"}&amp;gt;} Data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum({&amp;lt;Type={'売 上 高　実　績'},Key={"$(=FirstSortedValue({&amp;lt;FSVKey={'売 上 高　実　績预算'},TestedDate={'2016-12'}&amp;gt;} Key, -Key))"}&amp;gt;} Data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can exact the newest data per month, but I can't write like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;Sum({&amp;lt;Type={'売 上 高　実　績'},Key={"$(=FirstSortedValue({&amp;lt;FSVKey={'売 上 高　実　績预算'},TestedDate={'2016-10','2016-11','2016-12'}&amp;gt;} Key, -Key))"}&amp;gt;} Data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;That means, as each year has 12 months, I need to write 12 statements in expression.&lt;/P&gt;&lt;P&gt;It will be a heavy working load for maintenance.&lt;/P&gt;&lt;P&gt;And the &lt;SPAN style="color: #008000; font-size: 13.3333px;"&gt;FSVKey &lt;SPAN style="color: #333333; font-size: 13.3333px;"&gt;also has multi options, like&lt;SPAN style="color: #008000;"&gt; '売 上 高　実　績实际'&lt;/SPAN&gt;, &lt;SPAN style="color: #008000;"&gt;'売 上 高　実　績&lt;SPAN style="font-size: 13.3333px;"&gt;预算&lt;/SPAN&gt;'&lt;/SPAN&gt;, &lt;SPAN style="color: #008000;"&gt;'税 引 前 利 益(Profit)预算'&lt;/SPAN&gt; and so on.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The split will keep on and on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I wonder is there any better solution like using variable to cover multi option issue. Combine those statements into one.&lt;/P&gt;&lt;P&gt;I checked and searched some documents, found nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409062#M820689</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic get the newest data by FirstSortedValue statement</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409063#M820691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody knows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 03:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409063#M820691</guid>
      <dc:creator />
      <dc:date>2017-08-17T03:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic get the newest data by FirstSortedValue statement</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409064#M820692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess, the Non-english symbols and words, are giving the community confusion, perhaps you can translate the whole post in English?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 07:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409064#M820692</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-08-17T07:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic get the newest data by FirstSortedValue statement</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409065#M820693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;not sure if I understood your question, perhaps you could use the ColumNo() function for saving time creating the expressions, but it won't calculate faster...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Sum({&amp;lt;Type={'売 上 高　実　績'},Key={"$(=FirstSortedValue({&amp;lt;FSVKey={'売 上 高　実　績预算'},TestedDate={'2016-&lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;$(=ColumnNo())&lt;/SPAN&gt;'}&amp;gt;} Key, -Key))"}&amp;gt;} Data)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 07:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409065#M820693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-17T07:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic get the newest data by FirstSortedValue statement</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409066#M820694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your solution, but it doesn't work, the chart display nothing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 08:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409066#M820694</guid>
      <dc:creator />
      <dc:date>2017-08-17T08:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic get the newest data by FirstSortedValue statement</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409067#M820695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 08:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409067#M820695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-17T08:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic get the newest data by FirstSortedValue statement</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409068#M820696</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 tried multiple ways but no luck. stacked bar chart seems to be a solution but in case we have two dimensions, we can use only one expression &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 05:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409068#M820696</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2017-08-18T05:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic get the newest data by FirstSortedValue statement</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409069#M820697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use both &lt;SPAN style="color: #ff0000;"&gt;firstsortedvalue&lt;/SPAN&gt; and &lt;SPAN style="color: #ff0000;"&gt;max&lt;/SPAN&gt; these two function, however, the number in chart was not right.&lt;/P&gt;&lt;P&gt;When I added three dimensions, the chart will automatically change to stacked style.&lt;/P&gt;&lt;P&gt;I just wonder whether it is feasible like this:&lt;/P&gt;&lt;P&gt;First I filter the data from &lt;SPAN style="color: #ff0000;"&gt;FSVKey&lt;/SPAN&gt; (this column is combined by F2 &amp;amp; Type &amp;amp; TestedDate), then get the maximum key.&lt;/P&gt;&lt;P&gt;Finally, use the dimension to show data by group.&lt;/P&gt;&lt;P&gt;But I failed to find the way out.&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 05:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409069#M820697</guid>
      <dc:creator />
      <dc:date>2017-08-18T05:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic get the newest data by FirstSortedValue statement</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409070#M820698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the solution, use firstsortedvalue and max function in expression, then setup if function in dimension, the chart is working now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 07:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-get-the-newest-data-by-FirstSortedValue-statement/m-p/1409070#M820698</guid>
      <dc:creator />
      <dc:date>2017-08-18T07:30:18Z</dc:date>
    </item>
  </channel>
</rss>

