<?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() and Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323201#M119093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as KeyDeal returns numeric value then to compare it with vTestDeal you have to convert it into numeric:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;KeyDeal = {$num#(vTestDeal)} Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2011 06:34:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-16T06:34:07Z</dc:date>
    <item>
      <title>FirstSortedValue() and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323198#M119090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to get the result of my FirstSortedValue function to work in Set Analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vTestDeal = FirstSortedValue(KeyDeal, Proceeds) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...which yields 10 and a set analysis expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;KeyDeal = {$(vTestDeal)} Measure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you would think that I would get the Sum of the Measure where KeyDeal = 10.&amp;nbsp; However, the chart doesn't calculate and I get a "No data to display" error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I replace $(vTestDeal) in the set analysis with the number 10, my data comes up correctly.&amp;nbsp; This made me think it might be a datatype issue or something, but experimenting with num and text functions and using single quotes didn't solve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 03:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323198#M119090</guid>
      <dc:creator>scotthan</dc:creator>
      <dc:date>2011-11-16T03:04:37Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue() and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323199#M119091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott can you try with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;KeyDeal = {"$(vTestDeal)"} Measure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 05:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323199#M119091</guid>
      <dc:creator />
      <dc:date>2011-11-16T05:58:40Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue() and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323200#M119092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; use beelow code &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;KeyDeal = {"$(vTestDeal)"} &lt;STRONG&gt;&amp;lt;}&lt;/STRONG&gt;Measure)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 06:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323200#M119092</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-11-16T06:19:55Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue() and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323201#M119093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as KeyDeal returns numeric value then to compare it with vTestDeal you have to convert it into numeric:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;KeyDeal = {$num#(vTestDeal)} Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 06:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323201#M119093</guid>
      <dc:creator />
      <dc:date>2011-11-16T06:34:07Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue() and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323202#M119094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks everyone, I was able to wrap my variable in a num function and use the doubel quotes to get my answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 15:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Set-Analysis/m-p/323202#M119094</guid>
      <dc:creator>scotthan</dc:creator>
      <dc:date>2011-11-16T15:44:33Z</dc:date>
    </item>
  </channel>
</rss>

