<?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 Using the numeric value of a dual type field as field value definition in a set modifier in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613253#M226270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have loaded a field called 'Rubriek' from Excel. Actually in Excel there's a RubriekID (which is a numeric key) and Rubriek(which is a text).&lt;/P&gt;&lt;P&gt;In the script I loaded it as follows:&lt;/P&gt;&lt;P&gt;LOAD dual(Rubriek,RubriekID) as Rubriek,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That seems to work fine, I can use this dimension in objects , sort them bu numeric value and choose to display the num or the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an expression where i use set analysis the following gives no results:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Rubriek={1320}&amp;gt;}[Sales for the Period_SALES]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write the following instead it does work:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Rubriek={'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOFTWARE'}&amp;gt;}[Sales for the Period_SALES])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to overcome this: Working with numericals is supposed to be faster and filtering on text strings is far less accurate than on key numbers. The textstring may even not be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips to spare?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Wim Donckers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 20:50:45 GMT</pubDate>
    <dc:creator>wdonckers</dc:creator>
    <dc:date>2014-02-05T20:50:45Z</dc:date>
    <item>
      <title>Using the numeric value of a dual type field as field value definition in a set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613253#M226270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have loaded a field called 'Rubriek' from Excel. Actually in Excel there's a RubriekID (which is a numeric key) and Rubriek(which is a text).&lt;/P&gt;&lt;P&gt;In the script I loaded it as follows:&lt;/P&gt;&lt;P&gt;LOAD dual(Rubriek,RubriekID) as Rubriek,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That seems to work fine, I can use this dimension in objects , sort them bu numeric value and choose to display the num or the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an expression where i use set analysis the following gives no results:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Rubriek={1320}&amp;gt;}[Sales for the Period_SALES]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write the following instead it does work:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Rubriek={'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOFTWARE'}&amp;gt;}[Sales for the Period_SALES])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to overcome this: Working with numericals is supposed to be faster and filtering on text strings is far less accurate than on key numbers. The textstring may even not be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips to spare?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Wim Donckers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 20:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613253#M226270</guid>
      <dc:creator>wdonckers</dc:creator>
      <dc:date>2014-02-05T20:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using the numeric value of a dual type field as field value definition in a set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613254#M226271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;Rubriek={"=1320"}&amp;gt;}[Sales for the Period_SALES])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 21:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613254#M226271</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-05T21:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using the numeric value of a dual type field as field value definition in a set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613255#M226272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using just the "=" does not work for me. I believe you have to write it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;sum({$&amp;lt;Rubriek={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;Rubriek&lt;/SPAN&gt;=1320"}&amp;gt;}[Sales for the Period_SALES])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 21:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613255#M226272</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-05T21:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using the numeric value of a dual type field as field value definition in a set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613256#M226273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right, Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 21:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613256#M226273</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-05T21:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using the numeric value of a dual type field as field value definition in a set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613257#M226274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works indeed Rob! &lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What seemed a good idea (having just one field instead of two) does result in rather ugly set statements. Just because set comparison always compares against the text value a dual field.&lt;/P&gt;&lt;P&gt;What I will do is load RubriekID as an additional normal key field&amp;nbsp; and that will make set statements a lot easier e.g. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px; background-color: #f6f6f6;"&gt;sum({$&amp;lt;RubriekID={&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px; background-color: #f6f6f6;"&gt;1320}&amp;gt;}[Sales for the Period_SALES])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 21:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-numeric-value-of-a-dual-type-field-as-field-value/m-p/613257#M226274</guid>
      <dc:creator>wdonckers</dc:creator>
      <dc:date>2014-02-05T21:58:58Z</dc:date>
    </item>
  </channel>
</rss>

