<?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: Set Analysis Mutiple Fields selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Mutiple-Fields-selection/m-p/1802824#M1211848</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response and sorry I could not reply you back in time.&lt;/P&gt;&lt;P&gt;My&amp;nbsp; requirement is return 'Ids' if any of the listed field has value 'A'. Here I gave the fields in set anaylsis expression.&lt;/P&gt;&lt;P&gt;Instead, I want to choose the field(s) to look for value 'A' and return Ids.&lt;/P&gt;&lt;P&gt;I have created an Inline table with same field names. So, is it possible to put the columns in variable and look for 'A' once in All fields?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;InlineTable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ColumName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Col1,&lt;/P&gt;&lt;P&gt;Col2,&lt;/P&gt;&lt;P&gt;Col3,&lt;/P&gt;&lt;P&gt;Col4&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; vVar =&amp;nbsp; &amp;nbsp; 'Col1, Col2, Col3, Col4'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Count({&amp;lt; vVar = {'A'}&amp;gt;} id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;P.s: I might be wrong but this is my requirement. Look for 'A' in any of the chosen fields and return Id. OR conditions should be used&amp;nbsp;&lt;/P&gt;&lt;P&gt;if user selects Col1 and Col2 from &lt;STRONG&gt;ColumnName&lt;/STRONG&gt; listbox, return ids if 'A' exists either in Col1 or Col2.&lt;/P&gt;&lt;P&gt;If 3 columns are selected, Col1 or Col2 or Col3.&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 18:51:08 GMT</pubDate>
    <dc:creator>manideep78</dc:creator>
    <dc:date>2021-04-26T18:51:08Z</dc:date>
    <item>
      <title>Set Analysis Mutiple Fields selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Mutiple-Fields-selection/m-p/1798907#M1211496</link>
      <description>&lt;P&gt;Dear ALL,&lt;/P&gt;&lt;P&gt;Can you please let me know if all 3 expressions returns same result?&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Count({&amp;lt; Col1={'A'}, Col2={'A'}, Col3={'A'}, Col4={'A'}&amp;gt;} id)&lt;/P&gt;&lt;P&gt;==&amp;gt;&lt;/P&gt;&lt;P&gt;2. Count({&amp;lt;Col1,Col2,Col3,Col4={'A'}&amp;gt;} id)&lt;/P&gt;&lt;P&gt;==&amp;gt;&lt;/P&gt;&lt;P&gt;Set vVar = 'Col1,Col2,Col3,Col4='&lt;/P&gt;&lt;P&gt;3. Count({&amp;lt;$(vVar){'A'}&amp;gt;} id)&lt;/P&gt;&lt;P&gt;The reason I want to use the third expression is I have too many columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 21:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Mutiple-Fields-selection/m-p/1798907#M1211496</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2021-04-12T21:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Mutiple Fields selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Mutiple-Fields-selection/m-p/1798990#M1211503</link>
      <description>&lt;P&gt;Expression 1 and 2 aren't identically and won't return the same results.&lt;/P&gt;&lt;P&gt;If you says that you have too many columns and wants therefore to shortcut your expressions I have the impression that you tries to solve challenges within the UI which are better addressed within the script, maybe by transforming (a part of) your data per crosstable into a "normal" data-structure.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 08:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Mutiple-Fields-selection/m-p/1798990#M1211503</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-04-13T08:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Mutiple Fields selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Mutiple-Fields-selection/m-p/1802824#M1211848</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response and sorry I could not reply you back in time.&lt;/P&gt;&lt;P&gt;My&amp;nbsp; requirement is return 'Ids' if any of the listed field has value 'A'. Here I gave the fields in set anaylsis expression.&lt;/P&gt;&lt;P&gt;Instead, I want to choose the field(s) to look for value 'A' and return Ids.&lt;/P&gt;&lt;P&gt;I have created an Inline table with same field names. So, is it possible to put the columns in variable and look for 'A' once in All fields?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;InlineTable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ColumName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Col1,&lt;/P&gt;&lt;P&gt;Col2,&lt;/P&gt;&lt;P&gt;Col3,&lt;/P&gt;&lt;P&gt;Col4&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; vVar =&amp;nbsp; &amp;nbsp; 'Col1, Col2, Col3, Col4'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Count({&amp;lt; vVar = {'A'}&amp;gt;} id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;P.s: I might be wrong but this is my requirement. Look for 'A' in any of the chosen fields and return Id. OR conditions should be used&amp;nbsp;&lt;/P&gt;&lt;P&gt;if user selects Col1 and Col2 from &lt;STRONG&gt;ColumnName&lt;/STRONG&gt; listbox, return ids if 'A' exists either in Col1 or Col2.&lt;/P&gt;&lt;P&gt;If 3 columns are selected, Col1 or Col2 or Col3.&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 18:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Mutiple-Fields-selection/m-p/1802824#M1211848</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2021-04-26T18:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Mutiple Fields selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Mutiple-Fields-selection/m-p/1802966#M1211861</link>
      <description>&lt;P&gt;Like above hinted I believe that your datamodel isn't really suitable for such a view and a transforming of the structure may simplify the matter - especially if there isn't only one multi-field matching/calculating else several ones.&lt;/P&gt;&lt;P&gt;Nevertheless you may solve it with a set analysis but you need to define it properly - it's regardless if it's done with external variables or maybe a $-sign expansion or just manually written - means you need to define all included fields separately with the wanted values and also applying the intended linking of them respectively the needed operators.&lt;/P&gt;&lt;P&gt;In your case with an extra field to define the fields which should be included such an expression may look like:&lt;/P&gt;&lt;P&gt;= concat('&amp;lt; ' &amp;amp; COL &amp;amp; ' = {''A''}', ' &amp;gt; + ') &amp;amp; ' &amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 07:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Mutiple-Fields-selection/m-p/1802966#M1211861</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-04-27T07:25:41Z</dc:date>
    </item>
  </channel>
</rss>

