<?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 Convert IF condition into set analysis. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-IF-condition-into-set-analysis/m-p/139919#M603432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I am facing a lot of performance issues in my dashboard. I figured it out its because of IF conditions which I am using in the variables.&lt;/P&gt;&lt;P&gt;I am trying to convert these into set analysis but not able to do. &lt;/P&gt;&lt;P&gt;Below are the 2 different expressions which i want to convert into set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;If(v_Summary_KPI='PN',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;if(sum(aggr(sum(aggr(max({$&amp;lt;Flag={'Opportunity_Snapshot'},[Snapshot Quarter]={'Q1'},[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;}[Solution WorkEffort TAT Adjusted]),[Activity ID],[HPE Opportunity Id])),[HPE Opportunity Id]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;/Count({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;} DISTINCT [Activity ID])&amp;lt;=10,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;num(sum(aggr(sum(aggr(max({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;}[Solution WorkEffort TAT Adjusted]),[Activity ID],[HPE Opportunity Id])),[HPE Opportunity Id]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;/Count({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;} DISTINCT [Activity ID]),'#,##0.0'),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;num(sum(aggr(sum(aggr(max({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;}[Solution WorkEffort TAT Adjusted]),[Activity ID],[HPE Opportunity Id])),[HPE Opportunity Id]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;/Count({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;} DISTINCT [Activity ID]),'#,##0')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt; This expression I use to calculate all four qtrs,its just I change qtr num here like q1,q2,q3,q4.&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;2) This is 2nd expression where I compare q1,q2 data and show the arrows based on value increase/decrease.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;If(if(isnull(vSolWorkEffortQ2),0,vSolWorkEffortQ2)&amp;gt;if(isnull(vSolWorkEffortQ1),0,vSolWorkEffortQ1) ,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n.png', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;If(if(isnull(vSolWorkEffortQ2),0,vSolWorkEffortQ2)&amp;lt;if(isnull(vSolWorkEffortQ1),0,vSolWorkEffortQ1)&amp;nbsp; ,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s.png',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;If(if(isnull(vSolWorkEffortQ2),0,vSolWorkEffortQ2)=if(isnull(vSolWorkEffortQ1),0,vSolWorkEffortQ1) , 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_e.png',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;If(if(isnull(vSolWorkEffortQ2),0),' ', &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;IF(isnull(vSolWorkEffortQ2) , 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led.png')))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but these 2 causing big time slowness to my dashboard. &lt;/P&gt;&lt;P&gt;Can some one please help me to over come this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2018 14:16:51 GMT</pubDate>
    <dc:creator>savitakhyadi</dc:creator>
    <dc:date>2018-10-06T14:16:51Z</dc:date>
    <item>
      <title>Convert IF condition into set analysis.</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-IF-condition-into-set-analysis/m-p/139919#M603432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I am facing a lot of performance issues in my dashboard. I figured it out its because of IF conditions which I am using in the variables.&lt;/P&gt;&lt;P&gt;I am trying to convert these into set analysis but not able to do. &lt;/P&gt;&lt;P&gt;Below are the 2 different expressions which i want to convert into set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;If(v_Summary_KPI='PN',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;if(sum(aggr(sum(aggr(max({$&amp;lt;Flag={'Opportunity_Snapshot'},[Snapshot Quarter]={'Q1'},[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;}[Solution WorkEffort TAT Adjusted]),[Activity ID],[HPE Opportunity Id])),[HPE Opportunity Id]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;/Count({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;} DISTINCT [Activity ID])&amp;lt;=10,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;num(sum(aggr(sum(aggr(max({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;}[Solution WorkEffort TAT Adjusted]),[Activity ID],[HPE Opportunity Id])),[HPE Opportunity Id]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;/Count({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;} DISTINCT [Activity ID]),'#,##0.0'),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;num(sum(aggr(sum(aggr(max({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;}[Solution WorkEffort TAT Adjusted]),[Activity ID],[HPE Opportunity Id])),[HPE Opportunity Id]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;/Count({$&amp;lt;Flag={'Opportunity_Snapshot'},&lt;SPAN style="font-size: 10pt;"&gt;[Snapshot Quarter]={'Q1'}&lt;/SPAN&gt;,[GBU]={'Advisory and Professional Services','Operational Services'},[Fiscal Quarter]=,[Fiscal Month]=,[Activity Status]={'Completed'},[Presales Sub Type]={'Solution Development'},[Solution WorkEffort TAT Adjusted]-={}&amp;gt;} DISTINCT [Activity ID]),'#,##0')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt; This expression I use to calculate all four qtrs,its just I change qtr num here like q1,q2,q3,q4.&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;2) This is 2nd expression where I compare q1,q2 data and show the arrows based on value increase/decrease.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;If(if(isnull(vSolWorkEffortQ2),0,vSolWorkEffortQ2)&amp;gt;if(isnull(vSolWorkEffortQ1),0,vSolWorkEffortQ1) ,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n.png', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;If(if(isnull(vSolWorkEffortQ2),0,vSolWorkEffortQ2)&amp;lt;if(isnull(vSolWorkEffortQ1),0,vSolWorkEffortQ1)&amp;nbsp; ,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s.png',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;If(if(isnull(vSolWorkEffortQ2),0,vSolWorkEffortQ2)=if(isnull(vSolWorkEffortQ1),0,vSolWorkEffortQ1) , 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_e.png',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;If(if(isnull(vSolWorkEffortQ2),0),' ', &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;IF(isnull(vSolWorkEffortQ2) , 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led.png')))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but these 2 causing big time slowness to my dashboard. &lt;/P&gt;&lt;P&gt;Can some one please help me to over come this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2018 14:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-IF-condition-into-set-analysis/m-p/139919#M603432</guid>
      <dc:creator>savitakhyadi</dc:creator>
      <dc:date>2018-10-06T14:16:51Z</dc:date>
    </item>
  </channel>
</rss>

