<?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: using Expression in script to get counts. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162429#M892495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please check attached qvf file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 06:36:10 GMT</pubDate>
    <dc:creator>berryandcherry6</dc:creator>
    <dc:date>2016-08-10T06:36:10Z</dc:date>
    <item>
      <title>using Expression in script to get counts.</title>
      <link>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162423#M892487</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 below Equation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;MonthPeriod_Runrate={'$(=month(weekend(Max(CanonicalDate)))&amp;amp; year(weekend(Max(CanonicalDate))))'}&amp;gt;}Distinct Date_Runrate) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this gives me 28 count. in front end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of using this equation everywhere i have made it global variable in script, and getting count of that by &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vMonthPeriod_Runrate_Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;) = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but above&amp;nbsp; gives me zero count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My variable in script is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMonthPeriod_Runrate_Count = 'count({$&amp;lt;MonthPeriod_Runrate={"&amp;lt;$' &amp;amp;'(=month(weekend(Max(CanonicalDate)))&amp;amp; year(weekend(Max(CanonicalDate))))"}&amp;gt;}Distinct Date_Runrate)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting any error while loading also, What is the wrong i am doing here.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&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/using-Expression-in-script-to-get-counts/m-p/1162423#M892487</guid>
      <dc:creator>berryandcherry6</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: using Expression in script to get counts.</title>
      <link>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162424#M892490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Does the expression contain a leading = sign? If not, &lt;/SPAN&gt;you should be using =$($(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt;vMonthPeriod_Runrate_Count)) - the inner $ sign expands the variable into the expression, the outer one then evaluates the expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you using the expression - in a text box, chart expression, etc? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 05:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162424#M892490</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-10T05:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: using Expression in script to get counts.</title>
      <link>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162425#M892491</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;Thanks for reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using in expression for simple table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression looks like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ClientMetrics='Parlege',((floor($(vCredit_Course_Completed)/$(vMonth_Period_Count)*&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMonthPeriod_Runrate_Count))*20)+((floor($(vCredit_Usersigned)/$(vMonth_Period_Count)*&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMonthPeriod_Runrate_Count)) - floor($(vCredit_Course_Completed)/&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMonth_Period_Count)*&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMonthPeriod_Runrate_Count)))*10)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for checking i tried&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=$($(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMonthPeriod_Runrate_Count))&amp;nbsp;&amp;nbsp; this gives nothing in textbox&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 05:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162425#M892491</guid>
      <dc:creator>berryandcherry6</dc:creator>
      <dc:date>2016-08-10T05:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: using Expression in script to get counts.</title>
      <link>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162426#M892492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide Full expression, Because for above one some variables are there. Can you please provide Variable expressions or full expression ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 05:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162426#M892492</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-08-10T05:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: using Expression in script to get counts.</title>
      <link>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162427#M892493</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;In Script, i have below variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vCredit_Course_Completed = 'sum({$&amp;lt;MonthPeriod1 = {"&amp;lt;$' &amp;amp;'(=Date(MonthStart(weekend(Max(CanonicalDate))),''MMM-YY''))"}, DateType= {''completion''},&lt;/P&gt;&lt;P&gt;&amp;nbsp; client_id = {'1'},final_test_status={''passed''}&amp;gt;} course_completed)';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let vCredit_Usersigned =&amp;nbsp; 'sum({$&amp;lt;MonthPeriod1 = {"&amp;lt;$' &amp;amp;'(=Date(MonthStart(weekend(Max(CanonicalDate))),''MMM-YY''))"}, DateType= {''signed''},&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt; client_id = {'1'}&lt;/SPAN&gt;&amp;gt;} user_signed)';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let vMonth_Period_Count = 'count({$&amp;lt;MonthPeriod1={"&amp;lt;$' &amp;amp;'(=max(MonthPeriod1))"}&amp;gt;}Distinct CanonicalDate)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMonthPeriod_Runrate_Count = 'count({$&amp;lt;MonthPeriod_Runrate={"&amp;lt;$' &amp;amp;'(=month(weekend(Max(CanonicalDate)))&amp;amp; year(weekend(Max(CanonicalDate))))"}&amp;gt;}Distinct Date_Runrate)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting values for first three equation variables, but not for last variable&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;vMonthPeriod_Runrate_Count .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because of year and month keyword in script i am not getting count.&lt;SPAN style="font-size: 13.3333px;"&gt;????&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 05:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162427#M892493</guid>
      <dc:creator>berryandcherry6</dc:creator>
      <dc:date>2016-08-10T05:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: using Expression in script to get counts.</title>
      <link>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162428#M892494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you upload a small sample qvw file containing some representative data, the chart and the variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 05:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162428#M892494</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-10T05:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: using Expression in script to get counts.</title>
      <link>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162429#M892495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please check attached qvf file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-Expression-in-script-to-get-counts/m-p/1162429#M892495</guid>
      <dc:creator>berryandcherry6</dc:creator>
      <dc:date>2016-08-10T06:36:10Z</dc:date>
    </item>
  </channel>
</rss>

