<?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: Expression formula based on a column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161082#M378522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don´t need a resident one.&lt;/P&gt;&lt;P&gt;You can read from your excel as my example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 16:36:48 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2016-07-27T16:36:48Z</dc:date>
    <item>
      <title>Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161078#M378518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;The attached Excel file (generated from QV app) explains my problem. &lt;/P&gt;&lt;P&gt;I need a formula to evaluate the FLAG expression based on the CURR and PREV fields. The specs are as follows.&lt;/P&gt;&lt;P&gt;(1) If PREV is null, FLAG is 'N'.&lt;/P&gt;&lt;P&gt;(2) If PREV has a value that matches any value &lt;STRONG&gt;above&lt;/STRONG&gt; that row in the CURR column, FLAG = 'Y'.&lt;/P&gt;&lt;P&gt;(2) If PREV has a value that does not match any value above that row in the CURR column, FLAG = 'N'.&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 15:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161078#M378518</guid>
      <dc:creator />
      <dc:date>2016-07-27T15:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161079#M378519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this?&lt;/P&gt;&lt;P&gt;LOAD POSKI, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLTAG, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VORNR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CURR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PREV, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLAG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsNull(Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;PREV&lt;/SPAN&gt;')),'N',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iF(Exists(CURR,PREV),'Y','N')) AS FLAG2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="238370" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2051-226842-1092965-238370/QVTEST.xls"&gt;https://community.qlik.com/servlet/JiveServlet/download/1092965-238370/QVTEST.xls&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 16:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161079#M378519</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-27T16:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161080#M378520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;If(Len(Trim(PREV)) = 0,'N',If(Exists(CURR,PREV),'Y','N')) as FLAG&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;FROM ......;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 16:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161080#M378520</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-07-27T16:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161081#M378521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was hoping for a formula without having to load from a resident table. May be there isn't one and this is the best option. Thank you both Antonio and Clever Anjos!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 16:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161081#M378521</guid>
      <dc:creator />
      <dc:date>2016-07-27T16:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161082#M378522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don´t need a resident one.&lt;/P&gt;&lt;P&gt;You can read from your excel as my example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 16:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161082#M378522</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-27T16:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161083#M378523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This loads directly from Excel File.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 16:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161083#M378523</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-07-27T16:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161084#M378524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anjos! I know that a resident load is not required in this simple case but the Excel file is only a small part of my QV dashboard. I attached the Excel file merely to illustrate the problem. If there is no formula for the expression, I need to use RESIDENT LOAD in my dashboard. I find Antonio's suggestion to check for &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PREV&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) = 0 &lt;/SPAN&gt; works. Your idea of IsNull(Peek('PREV')) is elaborate and I had bad experiences using IsNull() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 16:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161084#M378524</guid>
      <dc:creator />
      <dc:date>2016-07-27T16:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161085#M378525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Addendum - check this code that uses IsNull() function:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;ZZPSNW2:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;POSKI&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PLTAG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VORNR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CURR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PREV&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLAG&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;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PREV&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) = 0,'N',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CURR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PREV&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'Y','N')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLAG1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//This works in all cases&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;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('PREV')),'N',If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CURR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PREV&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'Y','N')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLAG2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//This does not&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [..\..\QVDloadfiles\QVTEST.xls]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1$); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 17:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161085#M378525</guid>
      <dc:creator />
      <dc:date>2016-07-27T17:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161086#M378526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Good to read that you solve your problem.&lt;/P&gt;&lt;P&gt;If you like my answer, would you mind marking it as "Helpful"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 17:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161086#M378526</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-27T17:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression formula based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161087#M378527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 17:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-formula-based-on-a-column/m-p/1161087#M378527</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-27T17:33:06Z</dc:date>
    </item>
  </channel>
</rss>

