<?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 Dynamic set analisys by each row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57847#M9654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where I have a list of sellers which I desire to show the store where its seller made his/her last sell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanto show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesmanName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(SalesValue)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=only(aggr(max(Date),SalesmanName)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Store&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;SPAN style="color: #800000;"&gt;SalesmanName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN style="font-size: 8pt;"&gt;but that returs null when I select more than one Date. It works when I select salesmen with the same last sales date, but that is not valid for the whole set.&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;/H3&gt;&lt;H3&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="font-size: 8pt;"&gt;RS&lt;/SPAN&gt;&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 11:21:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-06T11:21:35Z</dc:date>
    <item>
      <title>Dynamic set analisys by each row</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57847#M9654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where I have a list of sellers which I desire to show the store where its seller made his/her last sell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanto show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesmanName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(SalesValue)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=only(aggr(max(Date),SalesmanName)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Store&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;SPAN style="color: #800000;"&gt;SalesmanName&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN style="font-size: 8pt;"&gt;but that returs null when I select more than one Date. It works when I select salesmen with the same last sales date, but that is not valid for the whole set.&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;/H3&gt;&lt;H3&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/H3&gt;&lt;H3&gt;&lt;/H3&gt;&lt;H3&gt;&lt;SPAN style="font-size: 8pt;"&gt;RS&lt;/SPAN&gt;&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 11:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57847#M9654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T11:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic set analisys by each row</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57848#M9655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(Store, -Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57848#M9655</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-06T12:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic set analisys by each row</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57849#M9656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;thanks for replying but it returned null for all cases in my set, even for one SalesmanName.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57849#M9656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T12:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic set analisys by each row</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57850#M9657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to see what you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57850#M9657</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-06T13:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic set analisys by each row</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57851#M9658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;follow attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57851#M9658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T13:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic set analisys by each row</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57852#M9659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can there be more than one store with the max date? If not, then try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(DISTINCT Store,-Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more than one store, you can try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(DISTINCT Aggr(If(Date = Max(TOTAL &amp;lt;SalesmanName&amp;gt; Date), Store), Date, SalesmanName))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/192612_Capture.PNG" style="height: 76px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57852#M9659</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-06T13:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic set analisys by each row</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57853#M9660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked perfect with the distinct (the store is a date parameter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 14:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-set-analisys-by-each-row/m-p/57853#M9660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T14:07:21Z</dc:date>
    </item>
  </channel>
</rss>

