<?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 FirstSortedValue in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-analysis/m-p/1670180#M727726</link>
    <description>&lt;P&gt;Hi, guys.&lt;/P&gt;&lt;P&gt;My set analysis:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;sum({&amp;lt;_C3Meses_VENDAS_={1},DES_CD={'&lt;/FONT&gt;$(=FirstSortedValue(DES_CD,-(aggr(sum({&amp;lt;_C3Meses_VENDAS_={1}&amp;gt;}VB),DES_CD,BANDEIRA)),1))&lt;FONT color="#FF0000"&gt;'}&amp;gt;}VB)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;don't work.&lt;/P&gt;&lt;P&gt;if i isolate the expression ////&amp;nbsp; =&lt;EM&gt;&lt;FONT color="#3366FF"&gt;FirstSortedValue(DES_CD,-(aggr(sum({&amp;lt;_C3Meses_VENDAS_={1}&amp;gt;}VB),DES_CD,BANDEIRA)),1))&lt;/FONT&gt;&amp;nbsp; ////&amp;nbsp; ,&amp;nbsp;&lt;/EM&gt;it work normally.&lt;/P&gt;&lt;P&gt;any sugestion?&lt;/P&gt;&lt;P&gt;thz!&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:24:09 GMT</pubDate>
    <dc:creator>AndreFrencl</dc:creator>
    <dc:date>2024-11-16T01:24:09Z</dc:date>
    <item>
      <title>FirstSortedValue in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-analysis/m-p/1670180#M727726</link>
      <description>&lt;P&gt;Hi, guys.&lt;/P&gt;&lt;P&gt;My set analysis:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;sum({&amp;lt;_C3Meses_VENDAS_={1},DES_CD={'&lt;/FONT&gt;$(=FirstSortedValue(DES_CD,-(aggr(sum({&amp;lt;_C3Meses_VENDAS_={1}&amp;gt;}VB),DES_CD,BANDEIRA)),1))&lt;FONT color="#FF0000"&gt;'}&amp;gt;}VB)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;don't work.&lt;/P&gt;&lt;P&gt;if i isolate the expression ////&amp;nbsp; =&lt;EM&gt;&lt;FONT color="#3366FF"&gt;FirstSortedValue(DES_CD,-(aggr(sum({&amp;lt;_C3Meses_VENDAS_={1}&amp;gt;}VB),DES_CD,BANDEIRA)),1))&lt;/FONT&gt;&amp;nbsp; ////&amp;nbsp; ,&amp;nbsp;&lt;/EM&gt;it work normally.&lt;/P&gt;&lt;P&gt;any sugestion?&lt;/P&gt;&lt;P&gt;thz!&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-analysis/m-p/1670180#M727726</guid>
      <dc:creator>AndreFrencl</dc:creator>
      <dc:date>2024-11-16T01:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-analysis/m-p/1670224#M727727</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/30181"&gt;@AndreFrencl&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you give us an example of what you are trying to achieve? And what kind of data?&lt;/P&gt;&lt;P&gt;Usually, in my experience, FirstSortedValue is more commonly used to get a string, which you cannot sum, otherwise you would use the Max function.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you can give us examples maybe we can help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-analysis/m-p/1670224#M727727</guid>
      <dc:creator>jberna26</dc:creator>
      <dc:date>2020-01-28T21:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-analysis/m-p/1670375#M727728</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/11069"&gt;@jberna26&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the function&lt;/P&gt;&lt;P&gt;&amp;nbsp;=&lt;EM&gt;&lt;FONT color="#3366FF"&gt;FirstSortedValue(DES_CD,-(aggr(sum({&amp;lt;_C3Meses_VENDAS_={1}&amp;gt;}VB),DES_CD,BANDEIRA)),1))&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;the function bring to me a string, like "RS", "AP", "CO", ....&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;so, my goal is like this:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;sum({&amp;lt;_C3Meses_VENDAS_={1},DES_CD={'&lt;/FONT&gt;RS&lt;FONT color="#FF0000"&gt;'}&amp;gt;}VB)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;both functions works, but not together.&lt;/P&gt;&lt;P&gt;(sorry my english)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-analysis/m-p/1670375#M727728</guid>
      <dc:creator>AndreFrencl</dc:creator>
      <dc:date>2020-01-29T10:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-analysis/m-p/1670399#M727729</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/30181"&gt;@AndreFrencl&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understood now what you are trying to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should use double quotes:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;sum({&amp;lt;_C3Meses_VENDAS_={1},DES_CD={&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;$(=FirstSortedValue(DES_CD,-(aggr(sum({&amp;lt;_C3Meses_VENDAS_={1}&amp;gt;}VB),DES_CD,BANDEIRA)),1))&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;}&amp;gt;}VB)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Not sure it will fix the problem, but single quotes are reserved for literal strings, and double quotes are used when some kind of search or function is applied.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Let me know if it fixes the issue.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 11:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-analysis/m-p/1670399#M727729</guid>
      <dc:creator>jberna26</dc:creator>
      <dc:date>2020-01-29T11:30:04Z</dc:date>
    </item>
  </channel>
</rss>

