<?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 Dynamic Values in E() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984503#M949333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({1&amp;lt;Company=E({1&amp;lt;Date={$(=Chr(39) &amp;amp; GetFieldSelections([Date], Chr(39) &amp;amp; ',' &amp;amp; Chr(39)) &amp;amp; Chr(39))}&amp;gt;})&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 21:28:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-09T21:28:27Z</dc:date>
    <item>
      <title>Using Dynamic Values in E()</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984502#M949332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not quite sure if I am doing something wrong, but here is the scenario. I would like to sum amounts for companies that didn't exist in a given time period. The below is the sample dataset. As you can see D and C never had activities in 2015-01.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108546_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As of now, I am using the below expression to show the companies that didn't exist in 2015-01:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({1&amp;lt;Company=E({1&amp;lt;Date={'2015-01'}&amp;gt;})&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/108547_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;What I would like to achieve is to make 2015-01 dynamic. So far, I used GetFieldSelections(Date) and it is not working:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Company=E({&amp;lt;Date={"$(=GetFieldSelections([Date]))"}&amp;gt;})&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/108551_Capture.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am not able to attach the qvw right now, but if someone has a suggestion it would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984502#M949332</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-12-09T21:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic Values in E()</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984503#M949333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({1&amp;lt;Company=E({1&amp;lt;Date={$(=Chr(39) &amp;amp; GetFieldSelections([Date], Chr(39) &amp;amp; ',' &amp;amp; Chr(39)) &amp;amp; Chr(39))}&amp;gt;})&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984503#M949333</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-09T21:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic Values in E()</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984504#M949334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As always amazing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌. One question though, why do we have to go through this nonsense just to get the field selection? Would you mind breaking down chr(39) parts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984504#M949334</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-12-09T21:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic Values in E()</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984505#M949335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, so when you were doing this hard-coded way you would have done something like this for two dates, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({1&amp;lt;Company=E({1&amp;lt;Date={&lt;SPAN style="color: #ff0000;"&gt;'2015-01', '2015-02'&lt;/SPAN&gt;}&amp;gt;})&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part I colored red is the exact thing you will see when you put -&amp;gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Chr(39) &amp;amp; GetFieldSelections([Date], Chr(39) &amp;amp; ',' &amp;amp; Chr(39)) &amp;amp; Chr(39)&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; in a text box. So essentially I am replicating the hard-coded numbers using GetFieldSelections() function in a text box. Once I have that I just placed it between $() in the set modifier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I hope that helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984505#M949335</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-09T21:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic Values in E()</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984506#M949336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984506#M949336</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-12-09T21:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Dynamic Values in E()</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984507#M949337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. I am glad I was able to 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>Wed, 09 Dec 2015 21:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dynamic-Values-in-E/m-p/984507#M949337</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-09T21:50:32Z</dc:date>
    </item>
  </channel>
</rss>

