<?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: Loop in Set Analysis to fetch selected value... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025045#M936491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I have understood your logic but you could try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; TransactionDate = {"$(=chr(39) &amp;amp; concat(distinct date(TransactionDate+1, 'DD/MMM/YYYY'), chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2016 09:02:01 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-02-25T09:02:01Z</dc:date>
    <item>
      <title>Loop in Set Analysis to fetch selected value...</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025043#M936489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a scenario which is like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a &lt;STRONG&gt;TransactionDate&lt;/STRONG&gt; Field which is used as a MasterCalender&amp;nbsp; and created &lt;STRONG&gt;one more field say TestDate&lt;/STRONG&gt; which stores &lt;STRONG style="font-size: 13.3333px;"&gt;TransactionDate+1 logic...&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now If I &lt;STRONG&gt;selects multiple date from TransactionDate&lt;/STRONG&gt; fields say, 04/Dec/2015, 06/Dec/2015, 10/Dec/2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TestDate would return:&lt;/STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt; 05/Dec/2015, 07/Dec/2015, 11/Dec/2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to &lt;STRONG&gt;compare these TestDate with TransactionDate&lt;/STRONG&gt; and want to fetch only matching data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here User can selects N values...So what I did, I used &lt;STRONG&gt;Concat&lt;/STRONG&gt;(&lt;STRONG style="font-size: 13.3333px;"&gt;TestDate,'|') which is storing all selected date only..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I &lt;STRONG&gt;compare these Concatenated Date with TransactionDate in Set Analysis&lt;/STRONG&gt;???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought of SubField(), Min(),Max() etc but they can fetch only one value at one time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use somthing like &lt;STRONG&gt;Looping at Set Analysis&lt;/STRONG&gt; which will &lt;STRONG&gt;fetch ConcatenatedDate one by one&lt;/STRONG&gt; &amp;amp; will be &lt;STRONG&gt;comparing&lt;/STRONG&gt; those returned &lt;STRONG&gt;values with TransactionDate??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Range Function which can solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/gwassenaar"&gt;Gysbert Wassenaar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/jagan"&gt;jagan mohan rao appala&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/maxgro"&gt;maxgro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/sunindia"&gt;Sunny T&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/Marcus_Sommer"&gt;Marcus Sommer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/MRKachhiaIMP"&gt;Manish Kachhia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 07:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025043#M936489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T07:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in Set Analysis to fetch selected value...</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025044#M936490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Now I want to &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;compare these TestDate with TransactionDate&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; and want to fetch only matching data...&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you explain that? If TestDate is always TransactionDate+1 these dates can never match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 08:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025044#M936490</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-25T08:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in Set Analysis to fetch selected value...</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025045#M936491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I have understood your logic but you could try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; TransactionDate = {"$(=chr(39) &amp;amp; concat(distinct date(TransactionDate+1, 'DD/MMM/YYYY'), chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 09:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025045#M936491</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-25T09:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in Set Analysis to fetch selected value...</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025046#M936492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean to say, If a User selects any &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;TransactionDate, I should get the result of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;STRONG&gt;TransactionDate+1 values..It could be N values.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Am I clear? &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 09:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025046#M936492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T09:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in Set Analysis to fetch selected value...</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025047#M936493</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;Not sure, but indirect set analysis will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TransactionDate=p(TestDate)&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 09:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025047#M936493</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-02-25T09:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in Set Analysis to fetch selected value...</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025048#M936494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Marcus's provided solution doesn't work, I would try this without double quotes:&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;Sum({&amp;lt; TransactionDate = {$(=chr(39) &amp;amp; Concat(DISTINCT Date(TransactionDate+1, 'DD/MMM/YYYY'), chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))}&amp;gt;} Value)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 09:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-in-Set-Analysis-to-fetch-selected-value/m-p/1025048#M936494</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-25T09:27:40Z</dc:date>
    </item>
  </channel>
</rss>

