<?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: Set Expression using formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-using-formula/m-p/62751#M10484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's quite annoying that it was as simple as using a FirstSortedValue!! It works perfectly. I really should have picked that up &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2018 09:40:45 GMT</pubDate>
    <dc:creator>keithlawrence</dc:creator>
    <dc:date>2018-04-19T09:40:45Z</dc:date>
    <item>
      <title>Set Expression using formula</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-using-formula/m-p/62748#M10481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm struggling with this for quite a while now and after searching the Community I've come to the conclusion it's not a situation that's been asked before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of temperatures in a month and a field flag. I need to be a pull through the flag for the lowest temp in each month. No matter what I try it seems to only pull through the flag on the lowest temp for the entire data rather than by each individual month. My basic data is as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Temp, Flag, Country&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 10, 1, AA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 11, 0, AA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 15, 0, BB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 11, 0, CC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 15, 1, CC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 10, 0, AA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 9, 1, BB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 15, 0, BB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 16, 0, CC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 9, 0, CC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 10, 1, AA&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the min temp per month by simply using Min(Temp). What I need is to know the flag for that min temp per month. I've tried the following with no success:&lt;/P&gt;&lt;P&gt;only({&amp;lt;Temp={$(=min(Temp))}&amp;gt;}Flag)&lt;/P&gt;&lt;P&gt;only({&amp;lt;Temp={'$(=min(Temp))'}&amp;gt;}Flag)&lt;/P&gt;&lt;P&gt;only({&amp;lt;Temp={&lt;SPAN style="font-size: 13.3333px;"&gt;'$(=Aggr(min(Temp)),Month)'}&lt;/SPAN&gt;&amp;gt;}Flag)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Aggr(only({&amp;lt;Temp={'$(=min(Temp))'}&amp;gt;}Flag),Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I basically get the flag working on month 3 and 4 as they are both min temp 9 and that is the overall min temp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How do I get it to work for the individual months?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;My next problem is establishing what country had that temp but if I can't fix the above, I can't get the country.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any ideas?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-using-formula/m-p/62748#M10481</guid>
      <dc:creator>keithlawrence</dc:creator>
      <dc:date>2018-04-19T09:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression using formula</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-using-formula/m-p/62749#M10482</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;can you just simply describe what is the expected output with the data shown above ? via an image for example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-using-formula/m-p/62749#M10482</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-04-19T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression using formula</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-using-formula/m-p/62750#M10483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FirstSortedValue(DISTINCT Flag,Temp)&lt;/P&gt;&lt;P&gt;Don't forget to untick suppress Zero values from Presentation tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-using-formula/m-p/62750#M10483</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-04-19T09:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression using formula</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-using-formula/m-p/62751#M10484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's quite annoying that it was as simple as using a FirstSortedValue!! It works perfectly. I really should have picked that up &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-using-formula/m-p/62751#M10484</guid>
      <dc:creator>keithlawrence</dc:creator>
      <dc:date>2018-04-19T09:40:45Z</dc:date>
    </item>
  </channel>
</rss>

