<?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 Works But not in the script. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340776#M125858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Its calculate the value for DebtDays= '123456'.. and take value(TotalDebt) for that.What is your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2012 17:10:08 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-08-06T17:10:08Z</dc:date>
    <item>
      <title>Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340773#M125855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have this expression: =Sum({&amp;lt;DebtDays={'123456'}&amp;gt;}TotalDebt) Works Fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the script I put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Est:&lt;BR /&gt;Load Num_Card_OP,&lt;/P&gt;&lt;P&gt;If(Sum(DebtDays= 123456),TotalDebt) as Estratificacion&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;resident table1&lt;BR /&gt;Group By Num_Card_OP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 16:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340773#M125855</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T16:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340774#M125856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Num_Card_OP,&lt;/P&gt;&lt;P&gt;If(DebtDays= '123456',Sum(TotalDebt)) as Estratificacion&amp;nbsp; &lt;BR /&gt;resident table1&lt;/P&gt;&lt;P&gt;Groupby&lt;/P&gt;&lt;P&gt; TotalDebt , Num_Card_OP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 16:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340774#M125856</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-06T16:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340775#M125857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply: Works but drop many values with my expression I get just one total. Miss something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 16:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340775#M125857</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T16:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340776#M125858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Its calculate the value for DebtDays= '123456'.. and take value(TotalDebt) for that.What is your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 17:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340776#M125858</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-06T17:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340777#M125859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also flag records (in the script) that have DebtDays = '123456' and then use the flag in your set analysis. that way you'll have both DebtDays and non-DebtDays values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 17:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340777#M125859</guid>
      <dc:creator />
      <dc:date>2012-08-06T17:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340778#M125860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The requirement is get phases for debt days (Debt Days = DateDebt - endMonth).So&lt;/P&gt;&lt;P&gt;If debt days = 123456 1-30 days,&lt;/P&gt;&lt;P&gt;If debt days =123456789 31-60 and so on. I left a QlikView file for better comprehenssion. Finally I have to build a table with Stratos by Total debt for sectors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 17:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340778#M125860</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T17:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340779#M125861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Help please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 18:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340779#M125861</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T18:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340780#M125862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please put an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 18:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340780#M125862</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T18:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340781#M125863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DiasMora&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 41060, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Al Día',1),&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: #800000; font-size: 8pt;"&gt;DiasMora&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= 1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;And&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DiasMora&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;=30, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('1-30 Días',2))) &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;Estratificacion &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But QlikView drop a Aggregation Problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 19:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340781#M125863</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T19:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340782#M125864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Estratificacion:&lt;/P&gt;&lt;P&gt;Load Num_Tarjeta_OP,&lt;/P&gt;&lt;P&gt;if(DiasMora = 41060, sum(Deuda_Total)) as Estratificacion&lt;/P&gt;&lt;P&gt;//If(DiasMora = 41060, Dual('Al Día',1)) as Estratificacion&lt;/P&gt;&lt;P&gt;/*if(sum(DiasMora)&amp;gt;=1&amp;nbsp;&amp;nbsp; And&amp;nbsp; sum(DiasMora)&amp;lt;=30,&amp;nbsp; Dual('1-30&amp;nbsp; Días',2),&lt;/P&gt;&lt;P&gt;if(sum(DiasMora)&amp;gt;=31&amp;nbsp; And&amp;nbsp; sum(DiasMora)&amp;lt;=60, Dual('31-60 Días',3),&lt;/P&gt;&lt;P&gt;if(sum(DiasMora)&amp;gt;=61&amp;nbsp; And&amp;nbsp; sum(DiasMora)&amp;lt;=90,Dual('61-90 Días',4),&lt;/P&gt;&lt;P&gt;if(sum(DiasMora)&amp;gt;=91&amp;nbsp; And&amp;nbsp; sum(DiasMora)&amp;lt;=120,Dual('91-120 Días',5),&lt;/P&gt;&lt;P&gt;if(sum(DiasMora)&amp;gt;=121&amp;nbsp; And&amp;nbsp; sum(DiasMora)&amp;lt;=150, Dual('121-150 Días',6),&lt;/P&gt;&lt;P&gt;if(sum(DiasMora)&amp;gt;=151&amp;nbsp; And&amp;nbsp; sum(DiasMora)&amp;lt;=180, Dual('151-180 Días',7),&lt;/P&gt;&lt;P&gt;if(sum(DiasMora)&amp;gt;=181&amp;nbsp; And&amp;nbsp; sum(DiasMora)&amp;lt;=210,Dual('181-210 Días',8),&lt;/P&gt;&lt;P&gt;if(sum(DiasMora)&amp;gt;=211&amp;nbsp; And&amp;nbsp; sum(DiasMora)&amp;lt;41029, Dual('&amp;gt;211 Días',9)))))))))) as Estratificacion*/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;resident Cartera&lt;/P&gt;&lt;P&gt;Group By Deuda_Total,Num_Tarjeta_OP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(DiasMora) value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 19:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340782#M125864</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-06T19:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340783#M125865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are tries in the past. Now I tried to use just DiasMora. But QlikView Drops an aggregation problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 19:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340783#M125865</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T19:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340784#M125866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, The principal bases contains dates (DiasMora = Debtdate - EndMotnh) So If 20/07/2012 - 31/07/2012 = 11 Days. &lt;/P&gt;&lt;P&gt;So &lt;/P&gt;&lt;P&gt;If(DiasMora = 41060, Dual('Al Día',1), // 41060 its a wired date but means no debt&lt;/P&gt;&lt;P&gt;If(DiasMora &amp;gt;= 1 And DiasMora &amp;lt;=30, Dual('1-30 Días',2))) as Estratificacion // Here would go 20/07/2012-31/07/2012 = 11 Days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the final Table my dimmension it would be Estratificacion and my Expression Sum(Deuda_Total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final table Would be&lt;/P&gt;&lt;P&gt;estratificacion&amp;nbsp;&amp;nbsp;&amp;nbsp; DeudaTotal&lt;/P&gt;&lt;P&gt;Al Dia&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 356000&lt;/P&gt;&lt;P&gt;1-30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 875441&lt;/P&gt;&lt;P&gt;31-60&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 554545&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 19:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340784#M125866</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T19:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340785#M125867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use like this,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think , this is one of the way to achieve your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load if(DiasMora &amp;gt;= [minimumvalue of datefield]+1 and DiasMora &amp;lt;= [minimumvalue of datefield]+30, Dual('1-30&amp;nbsp; Días',2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[minimumvalue of datefield] for example, in textbox give expression like this, Num(min(DateField)) &lt;/P&gt;&lt;P&gt;Like wise you can get the value..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 19:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340785#M125867</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-06T19:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340786#M125868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im Sorry I didn't Understand the datafield value. Could You please put an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 19:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340786#M125868</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T19:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340787#M125869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DiasMora = 41060. is this dateField?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 19:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340787#M125869</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-06T19:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340788#M125870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is endmonth by databases. for example 41060 = 31/05/2012 Because de databases is for all may. and so on.&lt;/P&gt;&lt;P&gt;Look the jpg example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 19:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340788#M125870</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T19:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340789#M125871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ok..Do you know the starting date of your database? You can use like this, MonthStart(Lowest date in your database)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example 41060 = 31/05/2012&lt;/P&gt;&lt;P&gt;but starting date? MonthStart(date(41060) ) gives 01/05/2012 &lt;/P&gt;&lt;P&gt;Like this, which is the starting date? Something like 01/01/2010 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 20:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340789#M125871</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-06T20:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340790#M125872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont have Starting date I have just PeriodoMora(This field) PeriodoMora-EndMonth (41060)= Nº DaysMora (DebtDays)&lt;/P&gt;&lt;P&gt;PeriodoMora-EndMonth (41060) = 41060 means the client desn't have debt. So he is at day.&lt;/P&gt;&lt;P&gt;If debtdays for example is 50 I have to put in &amp;gt; 31 and &amp;lt; 60 and so on. After that I have to build the table with all differents days debt and thouse stratifications for month. because the databases is in Visual Fox pro extension dbf Im creating may.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 20:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340790#M125872</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T20:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340791#M125873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then you simply use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(DebtDays &amp;gt; 31 and DebtDays &amp;lt; 60, '31-60 days') like that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 20:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340791#M125873</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-06T20:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Works But not in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340792#M125874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't Work &lt;/P&gt;&lt;P&gt;If(DiasMora = 41060,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Al Día',1)) as Estratificacion&lt;/P&gt;&lt;P&gt;If(DiasMora&amp;gt;=31&amp;nbsp; And DiasMora &amp;lt;=60,&amp;nbsp;&amp;nbsp; Dual('31-60 Días',3),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=31&amp;nbsp; And&amp;nbsp; DiasMora&amp;lt;=60,&amp;nbsp;&amp;nbsp; Dual('31-60 Días',3),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=61&amp;nbsp; And&amp;nbsp; DiasMora&amp;lt;=90,&amp;nbsp;&amp;nbsp; Dual('61-90 Días',4),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=91&amp;nbsp; And&amp;nbsp; DiasMora&amp;lt;=120,&amp;nbsp; Dual('91-120 Días',5),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=121 And&amp;nbsp; DiasMora&amp;lt;=150,&amp;nbsp; Dual('121-150 Días',6),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=151 And&amp;nbsp; DiasMora&amp;lt;=180,&amp;nbsp; Dual('151-180 Días',7),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=181 And&amp;nbsp; DiasMora&amp;lt;=210,&amp;nbsp; Dual('181-210 Días',8),&lt;/P&gt;&lt;P&gt;if(DiasMora&amp;gt;=211 And&amp;nbsp; DiasMora&amp;lt;41029, Dual('&amp;gt;211 Días',9))))))))))) as Estratificacion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look Happen some rare When reload the QlikView Al dia = 1651913 (Toooo High)&lt;/P&gt;&lt;P&gt;But when I put in my Expression This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;DiasMora={'41060'}&amp;gt;}Deuda_Total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView bring me the real value 327347 (The same value that in Excel File). But I dont want the hiugh formula in my expression because QlikView its getting too slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look up the jpg file.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 21:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Works-But-not-in-the-script/m-p/340792#M125874</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-08-06T21:15:06Z</dc:date>
    </item>
  </channel>
</rss>

