<?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 Conditional Expression with selected fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91230#M755848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate an expression. In the listbox Source I have 3 fields: LATAM, EMEA and All.&lt;/P&gt;&lt;P&gt;If I select both LATAM and EMEA, I need to calcule the expression with values from all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that but did not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;BR /&gt;If &lt;BR /&gt;(&lt;BR /&gt;Source = 'LATAM' and 'EMEA',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Source='All'&amp;gt;}[GM %])&lt;BR /&gt;,&lt;BR /&gt;Sum([GM %])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You guys can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Conditional Expression with selected fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91230#M755848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate an expression. In the listbox Source I have 3 fields: LATAM, EMEA and All.&lt;/P&gt;&lt;P&gt;If I select both LATAM and EMEA, I need to calcule the expression with values from all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that but did not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;BR /&gt;If &lt;BR /&gt;(&lt;BR /&gt;Source = 'LATAM' and 'EMEA',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Source='All'&amp;gt;}[GM %])&lt;BR /&gt;,&lt;BR /&gt;Sum([GM %])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You guys can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91230#M755848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression with selected fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91231#M755849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(&lt;STRONG&gt;GetFieldSelections(Source)='EMEA, LATAM',&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({&amp;lt;Source='All'&amp;gt;}[GM %])&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum([GM %])&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 12:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91231#M755849</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-09-20T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression with selected fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91232#M755850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx for the fast response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression is returning the value 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 12:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91232#M755850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-20T12:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression with selected fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91233#M755851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your sample qvw to check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 12:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91233#M755851</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-09-20T12:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression with selected fields</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91234#M755852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need.&lt;/P&gt;&lt;P&gt;That worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Source&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)='EMEA, LATAM'&lt;BR /&gt; ,&lt;BR /&gt; -(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[GM %]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Source]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[GM %]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt; ,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[GM %]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; )&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you anyways&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 13:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression-with-selected-fields/m-p/91234#M755852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-20T13:19:12Z</dc:date>
    </item>
  </channel>
</rss>

