<?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: Having trouble with text box expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924505#M955334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;p(CurrentPeriod) is used for all possible values within CurrentPeriod should be used to filter ReportPeriod. e(CurrentPeriod) is to include all excluded values from CurrentPeriod should be used to filter ReportPeriod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the attached for more detailed explanation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 18:46:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-11-17T18:46:48Z</dc:date>
    <item>
      <title>Having trouble with text box expression</title>
      <link>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924501#M955330</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;First off, thank you to those that have already provided excellent help for my previous issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a text box that I use to calculate the percentage of "Satisfied" answers on a given survey.&amp;nbsp; The data that I'm pulling from has responses from several different timestamps (ReportPeriod) and I had them hard-coded into my expression like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(count({&amp;lt;Answer = {'Satisfied','More Productive'}, ReportPeriod = {'2014-10-01'}&amp;gt;}Question) / count({&amp;lt;ReportPeriod = {'2014-10-01'}&amp;gt;}Question), '##.##%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works wonderfully, but I don't want to have to go back and re-input the dates every time there is a new survey -- so I now have a field called CurrentPeriod, which pulls the most recent date.&amp;nbsp; However, I can't figure out how to get that field into my expression above to make it work as it's currently working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 17:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924501#M955330</guid>
      <dc:creator />
      <dc:date>2015-11-17T17:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with text box expression</title>
      <link>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924502#M955331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Num(count({&amp;lt;Answer = {'Satisfied','More Productive'}, ReportPeriod = p(CurrentPeriod)&amp;gt;}Question) / count({&amp;lt;ReportPeriod = p(CurrentPeriod) &amp;gt;}Question), '##.##%')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;assuming that CurrentPeriod field has only one value, the current period, in same format as ReportPeriod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 18:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924502#M955331</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-17T18:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with text box expression</title>
      <link>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924503#M955332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be 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: 13px;"&gt;&lt;STRONG&gt;=Num(count({&amp;lt;Answer = {'Satisfied','More Productive'}, ReportPeriod = {"$(=Date(CurrentPeriod, 'YYYY-MM-DD'))"}&amp;gt;}Question) / count({&amp;lt;ReportPeriod = &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{"$(=Date(CurrentPeriod, 'YYYY-MM-DD'))"}&lt;/STRONG&gt;&amp;gt;}Question), '##.##%')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 18:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924503#M955332</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-17T18:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with text box expression</title>
      <link>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924504#M955333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, that did it!&amp;nbsp; Any chance you can explain what the 'p' does before the field entry, and why it's needed?&amp;nbsp; I just want to make sure I'm learning as I go, and not just relying on the community for help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 18:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924504#M955333</guid>
      <dc:creator />
      <dc:date>2015-11-17T18:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with text box expression</title>
      <link>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924505#M955334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;p(CurrentPeriod) is used for all possible values within CurrentPeriod should be used to filter ReportPeriod. e(CurrentPeriod) is to include all excluded values from CurrentPeriod should be used to filter ReportPeriod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the attached for more detailed explanation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 18:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Having-trouble-with-text-box-expression/m-p/924505#M955334</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-17T18:46:48Z</dc:date>
    </item>
  </channel>
</rss>

