<?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: Error in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60482#M771713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;if(Loc_Status='ONG',sum(&amp;nbsp; {&amp;lt;$(Set60Days)&amp;gt;} IdealFlag)/Count({&amp;lt;$(Set60Days)&amp;gt;} &lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;DISTINCT &lt;/SPAN&gt; CalendarDate))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;enclose that variable in set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2018 05:47:32 GMT</pubDate>
    <dc:creator>poojashribanger</dc:creator>
    <dc:date>2018-06-06T05:47:32Z</dc:date>
    <item>
      <title>Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60480#M771711</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;I have an expression that included variables. I keep getting an error in expression but can't seem to find the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;=if(Loc_Status='ONG',sum(&amp;nbsp; $(Set60Days) IdealFlag)/Count(DISTINCT $(Set60Days) CalendarDate)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont;"&gt;&lt;SPAN style="color: #212121; font-size: 15px; text-decoration: underline;"&gt;Variable &lt;/SPAN&gt;&lt;SPAN style="caret-color: #212121; color: #212121; font-size: 15px; text-decoration: underline;"&gt;description below:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;Set60Days =&amp;nbsp; {$&amp;lt;CalendarDate = {"&amp;gt;=$(v60Days) &amp;lt;=$(vMaxCalDate)"},OPS_MonthYear=&amp;gt;}&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;v60Days = AddMonths(max(CalendarDate),-2)&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;vMaxCalDate = max(CalendarDate)&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/Error-in-Expression/m-p/60480#M771711</guid>
      <dc:creator>taylor_jesse</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60481#M771712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What value does your variable Set60Days display when you use $(Set60Days) can you try this in your text object and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you cannot use $(Set60Days) in your sum like that. What exactly you are trying to do in your below expr? &lt;/P&gt;&lt;P&gt;I mean sum(IdealFlag) and what is this Set60days doing here are you multiplying ? or doing something else? You might need set analysis is what i think. Please elaborate a little more.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;=if(Loc_Status='ONG',sum( $(Set60Days) IdealFlag)/Count(DISTINCT $(Set60Days) CalendarDate))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 21:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60481#M771712</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-06-05T21:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60482#M771713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;if(Loc_Status='ONG',sum(&amp;nbsp; {&amp;lt;$(Set60Days)&amp;gt;} IdealFlag)/Count({&amp;lt;$(Set60Days)&amp;gt;} &lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;DISTINCT &lt;/SPAN&gt; CalendarDate))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont; font-size: 15px;"&gt;enclose that variable in set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 05:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60482#M771713</guid>
      <dc:creator>poojashribanger</dc:creator>
      <dc:date>2018-06-06T05:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60483#M771714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE _modifiedtitle="true" jivemacro="quote"&gt;
&lt;P&gt;I keep getting an error in expression but can't seem to find the issue.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Is that your expression editor says that there is an error or do you see an error/ or see nothing when you click okay on the expression editor and look for the result in the object? The reason I ask this is because, there are times when expression editors don't really understand the syntax and will say that there is an error where there is none. In your case...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(Loc_Status='ONG',sum(&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;$(Set60Days)&lt;/SPAN&gt; IdealFlag)/Count(DISTINCT $(Set60Days) CalendarDate))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the part in red will def. throw an error in expression editor, but it may still work if the value within that variable is good... which it seems like is (syntax wise).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 11:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60483#M771714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-06T11:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60484#M771715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 13:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60484#M771715</guid>
      <dc:creator>taylor_jesse</dc:creator>
      <dc:date>2018-06-06T13:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60485#M771716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It shows values but the expression editor says there is an error. I think you are right. I experience that a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 14:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60485#M771716</guid>
      <dc:creator>taylor_jesse</dc:creator>
      <dc:date>2018-06-06T14:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60486#M771718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression works but the editor says error in expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 14:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression/m-p/60486#M771718</guid>
      <dc:creator>taylor_jesse</dc:creator>
      <dc:date>2018-06-06T14:02:21Z</dc:date>
    </item>
  </channel>
</rss>

