<?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 Expression with condition inside in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-with-condition-inside/m-p/1151106#M520953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create two expressions selected based on selection in field_b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount(field_B) &amp;gt; 0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{1&amp;lt;&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;filed_C&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = {'X','Y'},&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;field_A&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;={'A','B'}&amp;gt;}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; {1&amp;lt;&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;field_A&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;={'A','B'}&amp;gt;})&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only added the set analysis, but make sure to add the complete expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2016 17:48:50 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-13T17:48:50Z</dc:date>
    <item>
      <title>Set Expression with condition inside</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-with-condition-inside/m-p/1151105#M520952</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 meet a problem in set expression. I would like to write conditions in the set expression. Could anyone help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is: I have set expression here {1&amp;lt;&lt;STRONG&gt;&lt;EM&gt;field_A&lt;/EM&gt;&lt;/STRONG&gt;={'A','B'}&amp;gt;}. I need to create a button to do Toggle Selection on &lt;STRONG&gt;&lt;EM&gt;field_B&lt;/EM&gt;&lt;/STRONG&gt;. Once I click on the button, the set expression should be {1&amp;lt;&lt;STRONG&gt;&lt;EM&gt;filed_C&lt;/EM&gt;&lt;/STRONG&gt; = {'X','Y'},&lt;STRONG&gt;&lt;EM&gt;field_A&lt;/EM&gt;&lt;/STRONG&gt;={'A','B'}&amp;gt;} (No typo here, the revised part is on &lt;STRONG&gt;&lt;EM&gt;field_C&lt;/EM&gt;&lt;/STRONG&gt; not &lt;STRONG&gt;&lt;EM&gt;field_B&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think maybe this can be done by GetFieldSelections(Field), But I am kind of confused on the gramma inside the set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 17:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-with-condition-inside/m-p/1151105#M520952</guid>
      <dc:creator />
      <dc:date>2016-07-13T17:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression with condition inside</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-with-condition-inside/m-p/1151106#M520953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create two expressions selected based on selection in field_b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount(field_B) &amp;gt; 0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{1&amp;lt;&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;filed_C&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = {'X','Y'},&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;field_A&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;={'A','B'}&amp;gt;}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; {1&amp;lt;&lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;field_A&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;={'A','B'}&amp;gt;})&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only added the set analysis, but make sure to add the complete expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 17:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-with-condition-inside/m-p/1151106#M520953</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-13T17:48:50Z</dc:date>
    </item>
  </channel>
</rss>

