<?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: DUAL - Strange behavior in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DUAL-Strange-behavior/m-p/1127709#M371037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I was just re-reading the DUAL "help" and it states that quite succinctly.&lt;/P&gt;&lt;P&gt;So basically the numeric part of your dual becomes a unique key (if you will) into the string that goes with it.&lt;/P&gt;&lt;P&gt;Since I have some string values that precede 2016Q2 that are different (and older) the text displayed will be the first encountered in the table to match the new DUAL number value.&amp;nbsp; What I did to get around this is whenever I changed the text, I also changed the ID (2 became 2.5, etc) and that worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2016 20:33:43 GMT</pubDate>
    <dc:creator>tschullo</dc:creator>
    <dc:date>2016-08-17T20:33:43Z</dc:date>
    <item>
      <title>DUAL - Strange behavior</title>
      <link>https://community.qlik.com/t5/QlikView/DUAL-Strange-behavior/m-p/1127707#M371035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been wrestling with this problem for several hours now, so I broke it sown to as imple script.&lt;/P&gt;&lt;P&gt;The goal was to produce a [Risk Type] column comprised of the Name as the string value and&amp;nbsp; ID as the numeric value&lt;/P&gt;&lt;P&gt;where the Name is changed to Z whenever the quarter is &amp;gt;= to 2016 Q2. As you can see this is not working.&lt;/P&gt;&lt;P&gt;Note the commented out line which was my first attempt that did not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if(Year*10+Qtr&amp;gt;=20162,Dual('Z',ID),Dual(Name,ID)) as NewName&lt;/P&gt;&lt;P&gt;So I decided to not do the dual and try on a second pass in RiskRatings.&amp;nbsp; this still did not work.&lt;/P&gt;&lt;P&gt;I would appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134792_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;TEST:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;Year, Qtr, Name, ID, Key&lt;BR /&gt;2016, 1, A, 1, 2016-1-1&lt;BR /&gt;2016, 1, B, 2, 2016-1-2&lt;BR /&gt;2016, 1, C, 3, 2016-1-3&lt;BR /&gt;2016, 1, D, 4, 2016-1-4&lt;BR /&gt;2016, 2, A, 1, 2016-2-1&lt;BR /&gt;2016, 2, B, 2, 2016-2-2&lt;BR /&gt;2016, 2, C, 3, 2016-2-3&lt;BR /&gt;2016, 2, D, 4, 2016-2-4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rating:&lt;BR /&gt;LOAD&lt;BR /&gt;Key,&lt;BR /&gt;ID as ID2,&lt;BR /&gt;//if(Year*10+Qtr&amp;gt;=20162,Dual('Z',ID),Dual(Name,ID)) as NewName,&lt;BR /&gt;if(Year*10+Qtr&amp;gt;=20162,'Z',Name) as NewName2&lt;BR /&gt;Resident TEST;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RiskRatings:&lt;BR /&gt;Load Key,&lt;BR /&gt; Dual(NewName2,ID2) as NewName,&lt;BR /&gt; 1 as RiskCnt&lt;BR /&gt;Resident Rating;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 19:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DUAL-Strange-behavior/m-p/1127707#M371035</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2016-08-17T19:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: DUAL - Strange behavior</title>
      <link>https://community.qlik.com/t5/QlikView/DUAL-Strange-behavior/m-p/1127708#M371036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each numeric value can only show a single dual value text representation. It seems you are trying to assing the sam ID number different text representations. &lt;/P&gt;&lt;P&gt;Does this explain your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 20:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DUAL-Strange-behavior/m-p/1127708#M371036</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-08-17T20:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: DUAL - Strange behavior</title>
      <link>https://community.qlik.com/t5/QlikView/DUAL-Strange-behavior/m-p/1127709#M371037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I was just re-reading the DUAL "help" and it states that quite succinctly.&lt;/P&gt;&lt;P&gt;So basically the numeric part of your dual becomes a unique key (if you will) into the string that goes with it.&lt;/P&gt;&lt;P&gt;Since I have some string values that precede 2016Q2 that are different (and older) the text displayed will be the first encountered in the table to match the new DUAL number value.&amp;nbsp; What I did to get around this is whenever I changed the text, I also changed the ID (2 became 2.5, etc) and that worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 20:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DUAL-Strange-behavior/m-p/1127709#M371037</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2016-08-17T20:33:43Z</dc:date>
    </item>
  </channel>
</rss>

