<?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 Condition with variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Condition-with-variables/m-p/355211#M131843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Set analysis works in aggregation functions, and SQRT is not one of them.&amp;nbsp; Without trying to understand your logic - may be you can just add the condition to your variables?&lt;/P&gt;&lt;P&gt;v1=Sqr(Stdev({&amp;lt;&lt;A&gt;={'aaa'}, B={'bbb'}&amp;gt;}&lt;C&gt;))&lt;/C&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;v2=Count({&amp;lt;&lt;A&gt;={'aaa'}, B={'bbb'}&amp;gt;}&lt;C&gt;)&lt;/C&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2012 00:15:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-17T00:15:48Z</dc:date>
    <item>
      <title>Condition with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-with-variables/m-p/355209#M131841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;I have variables&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN&gt;v1=Sqr(Stdev({&amp;lt;&lt;A&gt;={'aaa'}&amp;gt;}&lt;C&gt;))&lt;/C&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;v2=Count({&amp;lt;&lt;A&gt;={'aaa'}&amp;gt;}&lt;C&gt;)&lt;/C&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;How can I add condition B='bbb' to this expression?&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="background-color: #ffffff; font-family: calibri, verdana, arial, sans-serif;"&gt;([1st Time]-after([1st Time]))/SQRT((($(v2)+after(&lt;SPAN&gt;$(v2)&lt;/SPAN&gt;))/(&lt;SPAN&gt;$(v2)&lt;/SPAN&gt;*after(&lt;SPAN&gt;$(v2)&lt;/SPAN&gt;)))*($(v1)*(N-1)+after($(v1))*(after(&lt;SPAN&gt;$(v2)&lt;/SPAN&gt;)-1))/(&lt;SPAN&gt;$(v2)&lt;/SPAN&gt;+after(&lt;SPAN&gt;$(v2)&lt;/SPAN&gt;)-2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="background-color: #ffffff; font-family: calibri, verdana, arial, sans-serif;"&gt;B='bbb' uses for v1 and v2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="background-color: #ffffff; font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 17:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-with-variables/m-p/355209#M131841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-16T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Condition with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-with-variables/m-p/355210#M131842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Who knows how to add SET ANALYSIS for &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: calibri, verdana, arial, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;SQRT((($(v2)+after(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; color: #636363; font-family: calibri, verdana, arial, sans-serif;"&gt;$(v2)&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: calibri, verdana, arial, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: calibri, verdana, arial, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need B='bbb'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 20:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-with-variables/m-p/355210#M131842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-16T20:25:12Z</dc:date>
    </item>
    <item>
      <title>Condition with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-with-variables/m-p/355211#M131843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Set analysis works in aggregation functions, and SQRT is not one of them.&amp;nbsp; Without trying to understand your logic - may be you can just add the condition to your variables?&lt;/P&gt;&lt;P&gt;v1=Sqr(Stdev({&amp;lt;&lt;A&gt;={'aaa'}, B={'bbb'}&amp;gt;}&lt;C&gt;))&lt;/C&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;v2=Count({&amp;lt;&lt;A&gt;={'aaa'}, B={'bbb'}&amp;gt;}&lt;C&gt;)&lt;/C&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 00:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-with-variables/m-p/355211#M131843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-17T00:15:48Z</dc:date>
    </item>
    <item>
      <title>Condition with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Condition-with-variables/m-p/355212#M131844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;My variable B has 14 different tags(aaa,bbb,ccc,...., fff).&lt;/P&gt;&lt;P&gt;I try to replace B from v1 and v2 to in an expression. Because A is constant for all charts, only B changed in each chart. Other words, I need to add 28 variables, if I add B to your case.&lt;/P&gt;&lt;P&gt;I try to find a trick.&lt;/P&gt;&lt;P&gt;Thanks for reply,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 13:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condition-with-variables/m-p/355212#M131844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-17T13:37:30Z</dc:date>
    </item>
  </channel>
</rss>

