<?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: Formula difficulties - compare two values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353433#M131134</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;Try using single quotes, because the value in variable is a text string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13396846020371299" jivemacro_uid="_13396846020371299"&gt;&lt;P&gt;&lt;SPAN&gt;=Sum({&amp;lt; CI_AFD = {'$(afd_ci)'} &amp;gt;} OMZET) &lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-size: 12px; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 14:37:17 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-06-14T14:37:17Z</dc:date>
    <item>
      <title>Formula difficulties - compare two values</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353432#M131133</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 have two parameters in my dashboard, that I would like to use as a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when the salesdepartment (CI_AFD) that is selected = 'team1', I want to only see products with the value 'team1' (afd_ci)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought to fix it by using this as formula:&lt;/P&gt;&lt;P&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;CI_AFD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(afd_ci)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OMZET&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;but that does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;greetings,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Wouter&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 14:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353432#M131133</guid>
      <dc:creator />
      <dc:date>2012-06-14T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Formula difficulties - compare two values</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353433#M131134</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;Try using single quotes, because the value in variable is a text string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13396846020371299" jivemacro_uid="_13396846020371299"&gt;&lt;P&gt;&lt;SPAN&gt;=Sum({&amp;lt; CI_AFD = {'$(afd_ci)'} &amp;gt;} OMZET) &lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-size: 12px; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 14:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353433#M131134</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-14T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Formula difficulties - compare two values</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353434#M131135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it didn't work. ( I don't see data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What works is if I use this formula: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;CI_AFD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = {'CI - CendrisZakelijk'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OMZET&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However, instead of hard coding the variabel, I want to use the selection from the field ci_afd &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any other ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 10:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353434#M131135</guid>
      <dc:creator />
      <dc:date>2012-06-18T10:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Formula difficulties - compare two values</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353435#M131136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wouter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should define your variable in the Settings menu, Variable Overview as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13400153945488397" jivemacro_uid="_13400153945488397"&gt;&lt;P&gt;=Chr(39) &amp;amp; Concat(CI_AFD, Chr(39) &amp;amp; Chr(44) &amp;amp; Chr(39)) &amp;amp; Chr(39)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you put the variable in a text object you see values single quoted and comma separated, which is a format ready to use in set analysis: 'Value','Value2','Value3'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the expression suggested should now work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 10:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353435#M131136</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-18T10:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Formula difficulties - compare two values</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353436#M131137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does change the outcome. However it gives an empty table.&lt;/P&gt;&lt;P&gt;Should I make a new LET or SET variabel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the efforts!!&lt;/P&gt;&lt;P&gt;Wouter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 10:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353436#M131137</guid>
      <dc:creator />
      <dc:date>2012-06-18T10:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Formula difficulties - compare two values</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353437#M131138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wouter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to use LET or SET because you are creating the variable in run time. Check the application for a dummy example on how this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 10:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353437#M131138</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-18T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Formula difficulties - compare two values</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353438#M131139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following now works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;CI_AFD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;afd_ci&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OMZET&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks you Miguel, l wouldn't have solved it without your help!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Wouter&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 11:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-difficulties-compare-two-values/m-p/353438#M131139</guid>
      <dc:creator />
      <dc:date>2012-06-18T11:30:34Z</dc:date>
    </item>
  </channel>
</rss>

