<?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: Alternate state evaluating expression different than default in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689245#M249619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Ajay about the use of single quotes for numbers. I am guilty of it too sometimes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2014 19:10:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-08-15T19:10:36Z</dc:date>
    <item>
      <title>Alternate state evaluating expression different than default</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689240#M249614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get a system working where the selections for an end-users ID are moved out to an alternate state, so that selections can be applied in the alternate state without reducing the default data set, and I have created a state called Selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Except when I move a copy of my user Ids to an island table and then assign that table to the separate state, the syntax that checked for evaluating matches stops working.&amp;nbsp; I've marked the expressions that seem ok in green and the ones that are functioning differently in the alternate state in red.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 17:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689240#M249614</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-15T17:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state evaluating expression different than default</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689241#M249615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64542_1.png" style="width: 620px; height: 494px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure what exactly the issue is but in the second text box where you check for the UISelector in Selections state, i removed the single quotes for the value in the if condition and it checks fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 17:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689241#M249615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-15T17:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state evaluating expression different than default</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689242#M249616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a new state State1 and it seems to work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: As suggested by Jsaradhi, removing quotes around the number works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 17:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689242#M249616</guid>
      <dc:creator />
      <dc:date>2014-08-15T17:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state evaluating expression different than default</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689243#M249617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello jsaradhi, Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused then, why does the expression against UsrID using single quotes evaluate properly in all states?&lt;/P&gt;&lt;P&gt;=IF(UsrID='0.015625','TRUE','FALSE')&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What would be the indicator for when and where you can or cannot use quotes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 17:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689243#M249617</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-15T17:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state evaluating expression different than default</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689244#M249618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My theory:&lt;/P&gt;&lt;P&gt;Usually number fields dont need quotes, its required only for text values. But people use even for numbers, forcing QV to read it as a text. Maybe something to do with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 18:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689244#M249618</guid>
      <dc:creator />
      <dc:date>2014-08-15T18:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state evaluating expression different than default</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689245#M249619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Ajay about the use of single quotes for numbers. I am guilty of it too sometimes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 19:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689245#M249619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-15T19:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state evaluating expression different than default</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689246#M249620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I appreciate you taking the time to look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here's something weird.. I thought maybe having ID values using a decimal it might be something making the evaluation inconsistent, so I tried to push them to integers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Except when I multiply the same value from the ID fields, I get two different evaluations of the Floor() function.&amp;nbsp; Why aren't these matching?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="20140815_Floor_divergence.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64551_20140815_Floor_divergence.png" style="width: 620px; height: 126px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 19:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689246#M249620</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2014-08-15T19:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state evaluating expression different than default</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689247#M249621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have come across this and the solution I found was using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Floor(Num#(UISelector) * 100000000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used to compare numbers like If (Value=Cost,1,0) and for&amp;nbsp; 1.2342 = 1.2342 it would return false. I searched the forum and found the solution as to use Num#().&amp;nbsp; I will paste the link if i come across it again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 18:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689247#M249621</guid>
      <dc:creator />
      <dc:date>2014-08-18T18:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate state evaluating expression different than default</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689248#M249622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might help:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also when I tried converting the two numbers to binary they were giving me two different results:&lt;/P&gt;&lt;P&gt;=Num(UsrID,'(bin)') or =Num(UsrID,'(hex)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above link might throw some light on that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 18:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-state-evaluating-expression-different-than-default/m-p/689248#M249622</guid>
      <dc:creator />
      <dc:date>2014-08-18T18:55:47Z</dc:date>
    </item>
  </channel>
</rss>

