<?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: Fields with selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550165#M481354</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;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Here are&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;more details on&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;my problem : I have a master calendar with about 100 fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;In a table, i have to display the price for the current month, the price for the next month and the price for the previous month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;My table must be independant from selections on a week, a commercial event, a particular day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I currently create &lt;SPAN class="hps"&gt;dynamically &lt;/SPAN&gt;a set analysis with all the fields of my calendar except the month, but in order to ameliorate my formula &lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;would like to have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;only&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the calendar fields&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;present in&lt;/SPAN&gt;&lt;SPAN class="hps"&gt; active&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;selections.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Oct 2013 16:35:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-12T16:35:05Z</dc:date>
    <item>
      <title>Fields with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550162#M481351</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 a list of field 'Field1', 'Field2', 'Field3', 'Field4', 'Field5'.&lt;/P&gt;&lt;P&gt;I want to compare this list of fields to current selections in order to generate an output with fields present in my list&amp;nbsp; in which a selection is currently made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Does anyone&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;would have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an idea to achieve this &lt;/SPAN&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 20:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550162#M481351</guid>
      <dc:creator />
      <dc:date>2013-10-11T20:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fields with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550163#M481352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I understand what you're after.&lt;/P&gt;&lt;P&gt;If you want a dynamic table with expressions that can be selected from a separate list, have a look at the following example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 21:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550163#M481352</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-10-11T21:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fields with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550164#M481353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand why you can't use a Current Selections Box object. But if you want an alternative have a look at the attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 08:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550164#M481353</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-12T08:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fields with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550165#M481354</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;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Here are&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;more details on&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;my problem : I have a master calendar with about 100 fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;In a table, i have to display the price for the current month, the price for the next month and the price for the previous month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;My table must be independant from selections on a week, a commercial event, a particular day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I currently create &lt;SPAN class="hps"&gt;dynamically &lt;/SPAN&gt;a set analysis with all the fields of my calendar except the month, but in order to ameliorate my formula &lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;would like to have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;only&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the calendar fields&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;present in&lt;/SPAN&gt;&lt;SPAN class="hps"&gt; active&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;selections.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2013 16:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550165#M481354</guid>
      <dc:creator />
      <dc:date>2013-10-12T16:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Fields with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550166#M481355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, If I understand you correctly you want a string that's a list of the fields in which selections are made?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, one way is to create a variable per field that returns the field name if there are selections in the field. Then concatenate all those variables into one string. The variables can be generated in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET _vFList ='';&lt;/P&gt;&lt;P&gt;FOR i = 0 to NoOfTables()-1;&lt;/P&gt;&lt;P&gt;LET vTable = TableName($(i));&lt;/P&gt;&lt;P&gt;FOR j = 0 to NoOfFields('$(vTable)')-1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vField=FieldName($(j),'$(vTable)');&lt;/P&gt;&lt;P&gt;&amp;nbsp; vVarName=replace('$(vField)',' ','_');&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET _v$(vVarName) = =if(getselectedcount([$(vField)]),'$(vField),');&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET _vFList = $(_vFList) &amp;amp; _v$(vVarName);&lt;/P&gt;&lt;P&gt;NEXT j;&lt;/P&gt;&lt;P&gt;NEXT i;&lt;/P&gt;&lt;P&gt;LET _vFList = right('$(_vFList)',len('$(_vFList)')-1 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last variable _vFList should return the list of fields when you dollar-expand it in a sheet object: $(_vFList). See attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be an easier way, but I haven't found it yet. Maybe a real pro knows how to do this more efficiently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Oct 2013 08:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550166#M481355</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-13T08:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fields with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550167#M481356</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 had the same issue and could find a good solution. So I ended in listing all my fields (automatically through variables of course &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ) and, to my surprise, the performance was still very good, event with 100 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'd love to have a proper answer on this too !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 14:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-with-selections/m-p/550167#M481356</guid>
      <dc:creator>dvasseur</dc:creator>
      <dc:date>2013-10-15T14:43:04Z</dc:date>
    </item>
  </channel>
</rss>

