<?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 statement in script load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279522#M1195579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Artjoms,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above is defaulting at 1 , so when&amp;nbsp; I have both columns populated it will apply time to complete as 1 ( as its the first option in the formula) -- ( I think!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I can explain my issue a little better,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like when Unstructured is populated , Time to complete is 8 , when Structured is populated , Time to complete is 1, so when BOTH are populated it assigns Time to complete accordingly. Would some sort of mapping be more suitable ? Or is there a way around the above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2011 08:40:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-06T08:40:16Z</dc:date>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279520#M1195577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Excel sheet loaded into Qlikview , where there are 2 columns [Structured] and [Unstructured]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to add another column manually within the script called [Time to complete], where &lt;/P&gt;&lt;P&gt;&lt;/P&gt;[Structured] is populated I wish for [Time to complete] to be '1' and where [Unstructured] is populated I wish for [Time to complete] to be '8'.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a few variations of the if statement but I'm continously getting an error on the Reload, can anyone advise me please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or perhaps there is a better solution such as mapping ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 08:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279520#M1195577</guid>
      <dc:creator />
      <dc:date>2011-05-06T08:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279521#M1195578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Len(Trim([Structured]))&amp;gt;0,1,If(Len(Trim([Unstructured]))&amp;gt;0,8)) as [Time to complete]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;AT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 08:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279521#M1195578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-06T08:18:42Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279522#M1195579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Artjoms,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above is defaulting at 1 , so when&amp;nbsp; I have both columns populated it will apply time to complete as 1 ( as its the first option in the formula) -- ( I think!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I can explain my issue a little better,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like when Unstructured is populated , Time to complete is 8 , when Structured is populated , Time to complete is 1, so when BOTH are populated it assigns Time to complete accordingly. Would some sort of mapping be more suitable ? Or is there a way around the above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 08:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279522#M1195579</guid>
      <dc:creator />
      <dc:date>2011-05-06T08:40:16Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279523#M1195580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean the result should 0, 1, 8 or 9?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Len(Trim([Structured]))&amp;gt;0,1, 0) + If(Len(Trim([Unstructured]))&amp;gt;0,8, 0)) as [Time to complete]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 08:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279523#M1195580</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-06T08:45:11Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279524#M1195581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi tko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah thats kind of the issue, I need like a duplicate result , where Struct is populated 1 , Unstruct 8 or if BOTH assign Time to Complete as those that are in Struct 1 those in Unstruct 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, if I could have 2 columns called Tme to complete and it would fill in 0 for whichever column not completed and Both results when BOTH are populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think its possible ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 08:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279524#M1195581</guid>
      <dc:creator />
      <dc:date>2011-05-06T08:52:00Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279525#M1195582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggested statement above shoudl do that, or did I miss out on something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Len(Trim([Structured]))&amp;gt;0,1, 0) + If(Len(Trim([Unstructured]))&amp;gt;0,8, 0)) as [Time to complete]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 08:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279525#M1195582</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-06T08:56:00Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279526#M1195583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can u elaborate your concern?&lt;/P&gt;&lt;P&gt;"Structured is populated" means what?&lt;/P&gt;&lt;P&gt;Please give a sample table created in Excel that you want from QV.&lt;/P&gt;&lt;P&gt;Cover maximum possible combinations of values possible so that accurate solution can be given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Happy Thoughts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279526#M1195583</guid>
      <dc:creator />
      <dc:date>2011-05-06T09:03:22Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279527#M1195584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi tko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the formula is slightly different the second time posted, I've bolded the differences below -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Len(Trim([Structured]))&amp;gt;0,1&lt;STRONG&gt;, 0&lt;/STRONG&gt;) + If(Len(Trim([Unstructured]))&amp;gt;0,8&lt;STRONG&gt;, 0&lt;/STRONG&gt;)) as [Time to complete]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I reckon thats the part of the formula that makes it Zero if there is no data available in both columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I loaded it in I get the below Syntax error -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax error, missing/misplaced FROM:&lt;/P&gt;&lt;P&gt;CONCATENATE (MasterTable)&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date) as Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date(Date)) as Month, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(Date(Date)) as Week, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date(Date)) as Year,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Flexcube Branch], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [No. of Unstructured Rollovers], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [No. of Structured Rollovers], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [No. of Structured Closures], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [No. of Unstructured Rollovers]+[No. of Structured Rollovers] as Number,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [No. Manual Dockets], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Manual Dockets not processed on Day], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Trim([No. of Structured Rollovers]))&amp;gt;0,1, 0) + If(Len(Trim([No. of Unstructured Rollovers]))&amp;gt;0,8, 0)) as [Time to complete]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you see where I made a mistake ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279527#M1195584</guid>
      <dc:creator />
      <dc:date>2011-05-06T09:16:01Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279528#M1195585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly, if the string lengths are above 0 then 1 or 8 will be returned else 0. And then theses values will be added to each other and presented as the field&amp;nbsp; [Time to complete].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script editor you should be able to see that the last ) is highlighted in red, meaning the corresponding ( is missing. In this case the last ) should not be there, so please remove it and you should be fine. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279528#M1195585</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-06T09:22:02Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279529#M1195586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove last bracket:&lt;/P&gt;&lt;P&gt;If(Len(Trim([No. of Structured Rollovers]))&amp;gt;0,1, 0) + If(Len(Trim([No. of Unstructured Rollovers]))&amp;gt;0,8, 0) as [Time to complete]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279529#M1195586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-06T09:34:29Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279530#M1195587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Toni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I see , I added a ')' when I pasted in to script, I've fixed the syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is giving a result of 9 for Time to complete when both columns in excel have data present. - I do not wish the Time to complete to be Summed , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi, below is the loaded data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Excel 1.bmp" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/4026_Excel+1.bmp" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In excel I would wish it to look like -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Excel 2.bmp" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/4028_Excel+2.bmp" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, if I was to build a chart for the 7/3/11 Total time to complete would be; 353 -- being (38*8 +49*1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 09:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279530#M1195587</guid>
      <dc:creator />
      <dc:date>2011-05-06T09:35:33Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279531#M1195588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there is no end to the possibilities of what you can do. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the script sample you provided I would suggest that you think over your data model to avoid having to change it to much later on. What fields should be calculated already on load, making them static, and which fileds to calculate in the application, making them dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is quite common to have a master calender table to link your dates to. That way you only have the date in the data table and the week, month, quarter details in the master calendar table. A selection on a quarter will then limit the data in the calendar table and thereby also limit the linked values in the data table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to precalculate the data in script, and want to avoid repeating IF statements over and over, an eficient way can be to have a preceeding load as in the example below. The previously loaded table in such a scenario becomes the input for the following load. As in my example below if your iniital values might be empty it can be good to set them to zero, to make them numeric and suitbale for further calculations. In the following load you then know that the values are valid and can use them as such right away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can add even a third load on top to use the fields for your final calculation. This gives a easy to follow script and thereby easy to debug or alter if required.&lt;/P&gt;&lt;P&gt;&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; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [No. of Structured Rollovers]*[Time to complete Structured] + &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [No. of Unstructured Rollovers]*[Time to complete Unstructured] as TotalTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&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;*,&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([No. of Structured Rollovers]&amp;gt;0,1, 0) as [Time to complete Structured],&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([No. of Unstructured Rollovers]&amp;gt;0,8, 0) as [Time to complete Unstructured],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[No. of Unstructured Rollovers]+[No. of Structured Rollovers] as Number,&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;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Flexcube Branch],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Len(Trim([No. of Unstructured Rollovers])&amp;gt;0), Num([No. of Unstructured Rollovers]), 0) as [No. of Unstructured Rollovers],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Len(Trim([No. of Structured Rollovers])&amp;gt;0), Num([No. of Structured Rollovers]), 0) as [No. of Structured Rollovers],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [No. of Structured Closures],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [No. Manual Dockets],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Manual Dockets not processed on Day]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said this just an example, you have to analyse your own scenario and see what fits best for your purposes. Hope it has helped in some way &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 11:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279531#M1195588</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-06T11:43:15Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279532#M1195589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Toni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much, makes perfect sense , Going to try and make it happen now by editing script , ill let you know how I go,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for such a good response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 12:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279532#M1195589</guid>
      <dc:creator />
      <dc:date>2011-05-06T12:26:15Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279533#M1195590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Toni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes the simple answers are the best !!! Took your suggestion and spilt out the load of the sheet, works perfectly would never have thought of it ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks you saved me alot of grey hair !!!&lt;BR /&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 15:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279533#M1195590</guid>
      <dc:creator />
      <dc:date>2011-05-06T15:17:38Z</dc:date>
    </item>
    <item>
      <title>if statement in script load</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279534#M1195591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great to hear you got it to work, and that you have mastered one of QlikView many smart and easy ways to work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2011 08:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-in-script-load/m-p/279534#M1195591</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-07T08:26:10Z</dc:date>
    </item>
  </channel>
</rss>

