<?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: Multiple If to falg in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324205#M824659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use&amp;nbsp; below code in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Time&amp;gt;Critical,'Critical1',&lt;/P&gt;&lt;P&gt; if(Time&amp;gt;=Urgent and Time&amp;lt;=Critical,'UrgentandCritical2',&lt;/P&gt;&lt;P&gt;if(Time&amp;gt;=Normal and Time&amp;lt;=Urgent,'NormalUrgent3',&lt;/P&gt;&lt;P&gt;if(Time&amp;gt;=Medium and Time&amp;lt;=Normal,'MediumNormal4',&lt;/P&gt;&lt;P&gt;if(Time&amp;lt;=Normal,'BelowNormal5',null()))))) As [Flag Condition] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2017 05:45:55 GMT</pubDate>
    <dc:creator>arvind_patil</dc:creator>
    <dc:date>2017-07-18T05:45:55Z</dc:date>
    <item>
      <title>Multiple If to falg</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324201#M824655</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 multiple if conditions in front end.. I want to create flag for that expressions ,how can I do that in scripting? And how can iget that flag in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone suggest the best way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.if(Time&amp;gt;Critical,number,null())&lt;/P&gt;&lt;P&gt;2. if(Time&amp;gt;=Urgent and Time&amp;lt;=Critical,number,null())&lt;/P&gt;&lt;P&gt;3.if(Time&amp;gt;=Normal and Time&amp;lt;=Urgent,number,null())&lt;/P&gt;&lt;P&gt;4.if(Time&amp;gt;=Medium and Time&amp;lt;=Normal,number,null())&lt;/P&gt;&lt;P&gt;5.if(Time&amp;lt;=Normal,number,null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sonica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324201#M824655</guid>
      <dc:creator>soniasweety</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If to falg</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324202#M824656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Time&amp;gt;Critical, &lt;STRONG&gt;1&lt;/STRONG&gt;) as Flag1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; If(Time&amp;gt;=Urgent and Time&amp;lt;=Critical,&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;) as Flag2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the front-end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: Sum({&amp;lt;Flag1={1}&amp;gt;}number)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2: Sum({&amp;lt;Flag2={1}&amp;gt;}number)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 05:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324202#M824656</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-07-18T05:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If to falg</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324203#M824657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Time&amp;gt;Critical &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Time&amp;gt;=Urgent and Time&amp;lt;=Critical &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,2 ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(T&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ime&amp;gt;=Normal and Time&amp;lt;=Urgent &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Time&amp;gt;=Medium and Time&amp;lt;=Normal&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,4,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Time&amp;lt;=Normal&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,5 , Null() ))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;))) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Then use this in front end&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;Flag={1}&amp;gt;}Sales) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 05:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324203#M824657</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-07-18T05:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If to falg</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324204#M824658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add this to your load script (adapted to your exact requirements):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(Time&amp;gt;Critical, 1, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(Time&amp;gt;=Urgent, 2, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(Time&amp;gt;=Normal, 3, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(Time&amp;gt;=Medium, 4,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(Time&amp;lt;=Normal 5, null()))))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ) as Flag, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your set expression becomes:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;EM&gt;Sum({&amp;lt;Flag = {1}&amp;gt;} Amount)&lt;/EM&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 05:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324204#M824658</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-07-18T05:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If to falg</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324205#M824659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use&amp;nbsp; below code in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Time&amp;gt;Critical,'Critical1',&lt;/P&gt;&lt;P&gt; if(Time&amp;gt;=Urgent and Time&amp;lt;=Critical,'UrgentandCritical2',&lt;/P&gt;&lt;P&gt;if(Time&amp;gt;=Normal and Time&amp;lt;=Urgent,'NormalUrgent3',&lt;/P&gt;&lt;P&gt;if(Time&amp;gt;=Medium and Time&amp;lt;=Normal,'MediumNormal4',&lt;/P&gt;&lt;P&gt;if(Time&amp;lt;=Normal,'BelowNormal5',null()))))) As [Flag Condition] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 05:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-to-falg/m-p/1324205#M824659</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2017-07-18T05:45:55Z</dc:date>
    </item>
  </channel>
</rss>

