<?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 If condition to set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832678#M292959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="88451" alt="super-cute-bunny-waving-smiley-emoticon.gif" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/88451_super-cute-bunny-waving-smiley-emoticon.gif" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to simplify the below formula?? It's already created and I need to simplify in order to increase the performance. I have many formulas like the below one and your suggestion will help me to get an idea. (Set analysis or any formula (except If)!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(not isnull([ZF]),'F',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(not isnull([ZT]),'T',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(not isnull([ZN]),'N',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if((IsNull(column(22)) or (column(22)='') or (column(22)='0') ), Null(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if((IsNull([NFlag]) or ([NFlag]='')) and (not IsNull([ZD %])),'D',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'L'))))) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i&lt;STRONG&gt;f( [SS]= 'T1' OR [SS]= 'T5', Null(), (FirstSortedValue( {&amp;lt;BP_Hierarchy.KUNNR={$(vCus)},K.CUST={$(vCus)},MV.ECM=, MA_EN.NO=&amp;gt;}distinct ZM_PR.LP_scale,-ZM_PR.L_Table))*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;only({&amp;lt;BP_Hierarchy.KUNNR={$(vCus)},K.CUST={$(vCus)},LI_CUR.CUR={$(vCur)},MV.ECM=,MA_EN.NO=&amp;gt;}LI_CUR.Rate)) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="88444" alt="animated-thank-you-smiley-emoticon.gif" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88444_animated-thank-you-smiley-emoticon.gif" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2015 02:55:53 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2015-06-05T02:55:53Z</dc:date>
    <item>
      <title>If condition to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832678#M292959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="88451" alt="super-cute-bunny-waving-smiley-emoticon.gif" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/88451_super-cute-bunny-waving-smiley-emoticon.gif" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to simplify the below formula?? It's already created and I need to simplify in order to increase the performance. I have many formulas like the below one and your suggestion will help me to get an idea. (Set analysis or any formula (except If)!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(not isnull([ZF]),'F',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(not isnull([ZT]),'T',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(not isnull([ZN]),'N',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if((IsNull(column(22)) or (column(22)='') or (column(22)='0') ), Null(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if((IsNull([NFlag]) or ([NFlag]='')) and (not IsNull([ZD %])),'D',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'L'))))) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i&lt;STRONG&gt;f( [SS]= 'T1' OR [SS]= 'T5', Null(), (FirstSortedValue( {&amp;lt;BP_Hierarchy.KUNNR={$(vCus)},K.CUST={$(vCus)},MV.ECM=, MA_EN.NO=&amp;gt;}distinct ZM_PR.LP_scale,-ZM_PR.L_Table))*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;only({&amp;lt;BP_Hierarchy.KUNNR={$(vCus)},K.CUST={$(vCus)},LI_CUR.CUR={$(vCur)},MV.ECM=,MA_EN.NO=&amp;gt;}LI_CUR.Rate)) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="88444" alt="animated-thank-you-smiley-emoticon.gif" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88444_animated-thank-you-smiley-emoticon.gif" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 02:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832678#M292959</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-06-05T02:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: If condition to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832679#M292960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the front end object the calculation performance depends on the data set over which the aggregation is performed in relation to the calculation operations. In short that means that you need to provide more details in order for any one to be able to provide proper advise. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a sample application, where the chart object and data model can be reviewed. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 03:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832679#M292960</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-06-05T03:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: If condition to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832680#M292961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Toni for your quick response. I just want to know whether we can write the above if condition in a simple way or not. Just ignore the performance issue. Could you help me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 04:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832680#M292961</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-06-05T04:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: If condition to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832681#M292962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally I would say that the expression simplicity relates to the data model. If you data model is prepared in best possible way you can accomplish the simplest possible expression. Still a sample would make that easier to evaluate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example consider adding flags in the data model that allows for easier set expressions, or pre-calculated as much values as possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 08:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832681#M292962</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-06-05T08:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: If condition to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832682#M292963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can further simplify your formula by putting some if condition in script. You can create the Flag in script for nested if condition and then use that flag in set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 09:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-to-set-analysis/m-p/832682#M292963</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-06-05T09:09:20Z</dc:date>
    </item>
  </channel>
</rss>

