<?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 Dual returning the Numeric Value when using MIN expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269891#M1206933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max is a numeric function, so it returns a number. It's not smart enough to return a dual(), unfortunately. If you want to convert that back to a rating, you'd have to do it manually. However, since your rating texts are the opposite sequence of their associated numbers, I suspect this would work, at least if all you need is the text value.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;minstring(RATING)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Aug 2010 19:42:24 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-08-06T19:42:24Z</dc:date>
    <item>
      <title>Dual returning the Numeric Value when using MIN expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269890#M1206932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the dual function to apply numeric value to my ratings, but when I use the MAX function in an expression, I'm getting the numeric value and not the text.&lt;/P&gt;&lt;P&gt;FYI: My script looked like:&lt;/P&gt;&lt;P&gt;if(RATING='big',dual(RATING,10),&lt;BR /&gt; if(RATING='med',dual(RATING,5),&lt;BR /&gt; if(RATING='small',dual(RATING,1),&lt;BR /&gt; dual(RATING,0)))) as DualRating&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 15:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269890#M1206932</guid>
      <dc:creator />
      <dc:date>2010-08-06T15:52:18Z</dc:date>
    </item>
    <item>
      <title>Dual returning the Numeric Value when using MIN expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269891#M1206933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max is a numeric function, so it returns a number. It's not smart enough to return a dual(), unfortunately. If you want to convert that back to a rating, you'd have to do it manually. However, since your rating texts are the opposite sequence of their associated numbers, I suspect this would work, at least if all you need is the text value.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;minstring(RATING)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 19:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269891#M1206933</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-06T19:42:24Z</dc:date>
    </item>
    <item>
      <title>Dual returning the Numeric Value when using MIN expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269892#M1206934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I expect that &lt;STRONG&gt;text&lt;/STRONG&gt;(max(DualRating)) returns text value. Doesn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 21:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269892#M1206934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-06T21:31:49Z</dc:date>
    </item>
    <item>
      <title>Dual returning the Numeric Value when using MIN expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269893#M1206935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should check it rather than guessing, but my guess is "no". My guess is that QlikView will apply these functions simply and in order. First, it will use the max() function, which returns a simple number, like 10, not a dual(). Then it will give you the text() for 10, which is simply '10', and not a dual(). I'd be shocked and impressed if QlikView was smart enough to return 'big'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 21:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269893#M1206935</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-06T21:54:44Z</dc:date>
    </item>
    <item>
      <title>Dual returning the Numeric Value when using MIN expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269894#M1206936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;BR /&gt;You're right, I just checked. The only way is manual, maybe something like if:&lt;BR /&gt;text(if(max(RATING)=10, 'big',&lt;BR /&gt; if(max(RATING)=5,, 'med,...&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Aug 2010 01:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269894#M1206936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-07T01:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dual returning the Numeric Value when using MIN expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269895#M1206937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if I had an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) / &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon; background: yellow;"&gt;Organization&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;How would I output the correspinding Organization for the Max value ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 15:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-returning-the-Numeric-Value-when-using-MIN-expression/m-p/269895#M1206937</guid>
      <dc:creator />
      <dc:date>2012-12-06T15:51:06Z</dc:date>
    </item>
  </channel>
</rss>

