<?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: Cannot use expression result in another expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90717#M751914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, i did want "greater" and was using the wrong operator.&lt;BR /&gt;I checked and the label had no blank spaces before or after. &lt;BR /&gt;Substituting "&amp;gt;&amp;gt;" with "&amp;gt;" still gives me the "error in expression" message, but the results appear to be right at a glance.&lt;/P&gt;&lt;P&gt;When i get back to the office i'll try with fresh data and go from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 14:41:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-31T14:41:23Z</dc:date>
    <item>
      <title>Cannot use expression result in another expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90714#M751911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i'm starting with Qlikview and i find myself stuck in an expression;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a pivot table with this expression that i labeled "Delta":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15409077014063474" jivemacro_uid="_15409077014063474" modifiedtitle="true"&gt;
&lt;P&gt;if(Avanzamento='C',8,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='D',7,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='F',7,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='G',6,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='H',5,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='I',5,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='L',5,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='M',2,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='N',2,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='O',2,&lt;/P&gt;
&lt;P&gt;if(Avanzamento='S',1)))))))))))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that seems working ok; i then want another expression using the result of this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15409076573629513" jivemacro_uid="_15409076573629513" modifiedtitle="true"&gt;
&lt;P&gt;=if((Today() + Delta&amp;gt;&amp;gt;[Scheduled Date]),'Late')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(the idea is to add X days -delta- to today and check the result against the [Scheduled Date] table).&lt;BR /&gt;I get an error using the label Delta in any expression, though. I tried substituting the label with the proper column (column(3) in this case) and the expression gives it an ok, but the result is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance if anyone can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90714#M751911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use expression result in another expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90715#M751912</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;First of all, are you sure you want to use the '&amp;gt;&amp;gt;' operator? it is a bit operator and it does not mean "greater":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/Operators/BitOperators.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/Operators/BitOperators.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/Operators/BitOperators.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, your expression should work. Your problem may be caused because you labeled your Delta with a blank space. I mean, maybe you labeled it as "Delta ". Please, check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that do not solve your problem, can you share a sample?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bests,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90715#M751912</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2018-10-30T15:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use expression result in another expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90716#M751913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this situation I would start from the script. Instead of:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: normal; border-style: none; border-color: #000000; font-weight: 400;"&gt;if(Avanzamento='C',8,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='D',7,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='F',7,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='G',6,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='H',5,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='I',5,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='L',5,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='M',2,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='N',2,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='O',2,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;if(Avanzamento='S',1)))))))))))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;You can create Mapping table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;Map:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;Mapping Load * Inline[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Avanzamento, Delta&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;C,8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;D,7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;F,7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;G,6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;H, 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;I, 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;L, 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;M, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;N, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;O, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;S, 1&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;Then apply this map on you field:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: Consolas,'Courier New',Courier,mono,serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: nowrap; word-spacing: 0px;"&gt;if((Today() + Delta&amp;gt;[Scheduled Date]),'Late') AS Status;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('Map', &lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Avanzamento&lt;/SPAN&gt;) AS Delta,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; letter-spacing: normal; font-variant: normal; text-align: left; font-style: normal; border-style: none; background-color: #ffffff; border-color: #000000; display: inline !important; font-weight: 400; float: none; orphans: 2; color: #000000; text-transform: none; font-size: 12px; white-space: nowrap; text-decoration: none; font-family: Consolas,'Courier New',Courier,mono,serif; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&amp;nbsp; [Scheduled Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;From …;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;After this you have&amp;nbsp; Status field in you table and you will be able to use it as a dimension field&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas,&amp;amp;font-size:12px; font-style: normal; font-weight: 400; border-color: #000000; border-style: none;"&gt;Vitalii&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90716#M751913</guid>
      <dc:creator>vitaliichupryna</dc:creator>
      <dc:date>2018-10-30T15:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use expression result in another expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90717#M751914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, i did want "greater" and was using the wrong operator.&lt;BR /&gt;I checked and the label had no blank spaces before or after. &lt;BR /&gt;Substituting "&amp;gt;&amp;gt;" with "&amp;gt;" still gives me the "error in expression" message, but the results appear to be right at a glance.&lt;/P&gt;&lt;P&gt;When i get back to the office i'll try with fresh data and go from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90717#M751914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-31T14:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use expression result in another expression</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90718#M751915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you for taking the time to answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try this as an alternative (i'll need a bit to learn about mapping tables, i don't want to just copy&amp;amp;paste &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;) and seee how this goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-expression-result-in-another-expression/m-p/90718#M751915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-31T14:44:35Z</dc:date>
    </item>
  </channel>
</rss>

