<?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: Static expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239566#M857860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount([Selector Anual]) = 1 and Len(Trim([Selector Anual])) &amp;gt; 4,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}&amp;gt;} SOLI_ID_SOLICITUD),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount([Selector Anual]) = 2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only(Aggr(If(RowNo() = NoOfRows(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}&amp;gt;} SOLI_ID_SOLICITUD)), Mes, ([Selector Anual], (TEXT)))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;[Selector Anual]&amp;gt;}Aggr(If(RowNo() = NoOfRows(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}, [Selector Anual]&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}, [Selector Anual]&amp;gt;} SOLI_ID_SOLICITUD)), Mes, ([Selector Anual], (TEXT))))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will only work if you have QV12, if you don't then you have to sort the &lt;STRONG style="font-size: 13.3333px;"&gt;Selector Anual&lt;/STRONG&gt; field in the script for this to work properly. I can help you with that if you don't have QV12, but if you do then check out the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2017 16:39:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-26T16:39:18Z</dc:date>
    <item>
      <title>Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239559#M857853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need modify a expression of bar char, but not look the path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this char, that works with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/150941_1.PNG" style="height: 148px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/P&gt;&lt;P&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}&amp;gt;} SOLI_ID_SOLICITUD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results depending of filters, are these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/150936_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The numbers in red are that I need change. The results I want are these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/150937_3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explain with a example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filter -&amp;gt; "Rev0,Rev1,Rev2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static values for Rev0 in Ene and Feb, static values for Rev1 in Mar and Abr, and since May to Dic., values of Rev2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conclusion: static values for Revs checked and rest of values of the last Rev checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&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/Static-expressions/m-p/1239559#M857853</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239560#M857854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgot explain each Rev corresponds to two months, in order: Rev0 (Ene, Feb), Rev1 (Mar, Abr).........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 09:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239560#M857854</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-01-26T09:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239561#M857855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also forgot show the dates that I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150942_4.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 09:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239561#M857855</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-01-26T09:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239562#M857856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post a sample, it'll be easier to assist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 11:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239562#M857856</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-26T11:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239563#M857857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a sample is difiicult (need three tables, many data...) , and can´t share the .qw, confidentially policy with client. Sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 12:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239563#M857857</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-01-26T12:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239564#M857858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this can help you create a sample&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 13:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239564#M857858</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-26T13:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239565#M857859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, share the .qw scrambled and reduced. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Wait your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239565#M857859</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-01-26T15:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239566#M857860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount([Selector Anual]) = 1 and Len(Trim([Selector Anual])) &amp;gt; 4,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}&amp;gt;} SOLI_ID_SOLICITUD),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount([Selector Anual]) = 2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only(Aggr(If(RowNo() = NoOfRows(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}&amp;gt;} SOLI_ID_SOLICITUD)), Mes, ([Selector Anual], (TEXT)))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;[Selector Anual]&amp;gt;}Aggr(If(RowNo() = NoOfRows(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}, [Selector Anual]&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}, [Selector Anual]&amp;gt;} SOLI_ID_SOLICITUD)), Mes, ([Selector Anual], (TEXT))))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will only work if you have QV12, if you don't then you have to sort the &lt;STRONG style="font-size: 13.3333px;"&gt;Selector Anual&lt;/STRONG&gt; field in the script for this to work properly. I can help you with that if you don't have QV12, but if you do then check out the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239566#M857860</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-26T16:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239567#M857861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My version is 11.20. Sorry, I´m beginner in Qlik, don´t know that you say with "sort the Selector Anual field in the script".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression show errors and not works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151016_1.PNG" style="height: 159px; width: 620px;" /&gt; &lt;/P&gt;&lt;P&gt;I proved in local with Qlik 12, and not show errors in expression, and works, but not completely good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/151017_4.PNG" style="height: 21px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/151018_2.PNG" style="height: 179px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression is difficult for a beginner -_-''&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, 27 Jan 2017 07:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239567#M857861</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-01-27T07:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239568#M857862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is fixed, but there might be another combination which might not fixed. Since there are so many combinations, it tends to get tricky. But since you have a better idea, can you check....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151030_Capture.PNG" style="height: 211px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 10:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239568#M857862</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-27T10:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239569#M857863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now works! But only in local. The version of server is 11.20, here not works; "allocated memory exceeded":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151054_1.PNG" style="height: 156px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don´t know why not recognize keywords after error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 12:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239569#M857863</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-01-27T12:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239570#M857864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because of this new functionality which was introduced in QlikView 12.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to help you better here, I would need you to tell me about how you create Selector Anual field? Is it created like CurrentYear and CurrentYear-1 and Rev0 to Rev5 for both years? Or is there more to this then what I just described?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 12:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239570#M857864</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-27T12:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239571#M857865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Selector Anual field is equal to AñoMesSelectorAnual or left(&lt;SPAN style="font-size: 13.3333px;"&gt;AñoMesSelectorAnual &lt;/SPAN&gt;,4), and &lt;SPAN style="font-size: 13.3333px;"&gt;AñoMesSelectorAnual &lt;/SPAN&gt;is &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SOIN_ANO&amp;amp; '@' &amp;amp; 'Rev'&amp;amp;ceil((SOIN_MES-1)/2)&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>Fri, 27 Jan 2017 12:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239571#M857865</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-01-27T12:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239572#M857866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I don't have access to your data source, I will give your something which may or may not work.... but at least we can try. Add this table to your script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SortSelectorAnual:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Selector Anual],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; RowNo() as Sort&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident SelectorAnual&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By [Selector Anual];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and change your expression to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount([Selector Anual]) = 1 and Len(Trim([Selector Anual])) &amp;gt; 4,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}&amp;gt;} SOLI_ID_SOLICITUD),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim([Selector Anual])) = 4,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;[Selector Anual]&amp;gt;}Aggr(If(RowNo() = NoOfRows(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}, [Selector Anual]&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}, [Selector Anual]&amp;gt;} SOLI_ID_SOLICITUD)), Mes, &lt;SPAN style="color: #ff0000;"&gt;Sort&lt;/SPAN&gt;)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only(Aggr(If(RowNo() = NoOfRows(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}&amp;gt;} SOLI_ID_SOLICITUD) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}&amp;gt;} SOLI_ID_SOLICITUD)), Mes, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Sort&lt;/STRONG&gt;))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I don't know if this will work or not, but worth giving a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 13:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239572#M857866</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-27T13:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239573#M857867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now works perfectly, but not understand the logic of Only(Aggr...). What returns the only function? Can you explain me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very thanks, Correct answer for you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 11:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239573#M857867</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-01-30T11:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239574#M857868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its been few days... I can't even remember why I did what I did.... I will take a look at this in the evening and get back to you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 11:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239574#M857868</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T11:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239575#M857869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, very thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 15:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239575#M857869</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-01-30T15:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239576#M857870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remember explain me, please!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 07:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239576#M857870</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-02-01T07:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239577#M857871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I used it at two places... I think one of the places we can avoid using Only, but the other one still needs it. Let me put both those options here and explain them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Only({&amp;lt;[Selector Anual]&amp;gt;}Aggr(If(RowNo() = NoOfRows(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}, [Selector Anual]&amp;gt;} SOLI_ID_SOLICITUD) +&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}, [Selector Anual]&amp;gt;} SOLI_ID_SOLICITUD)), Mes, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Sort&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Only function is equivalent of not having any function, but it can only display something if there is one and only one thing to display. For instance, if you have a fieldname ABC which can display 1 or 2 when nothing is selected, only(ABC) will display null, whereas lets say after selections there is only one possible value. Now Only(ABC) will display that value. This is the same thing which will happen if you don't use the Only function. So, just ABC will work the same exact way also.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The reason I used Only here was because I wanted to ignore selection in Selector Anual field. Set analysis only works within a function. So I can use Only({Set Analysis} ABC), but I cannot do {Set Analysis} ABC. There is another level of complexity here which required us to use Aggr() function. If that was not required, we might have not needed to use Only. Long story short, Only is used to ignore selection in Selector Anual field for the above part of the expression&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Only(Aggr(If(RowNo() = NoOfRows(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}&amp;gt;} SOLI_ID_SOLICITUD) +&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}&amp;gt;} SOLI_ID_SOLICITUD)), Mes, &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;Sort&lt;/STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;There is no set analysis used here and hence you can get rid of only function. So, this should work the same way&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Aggr(If(RowNo() = NoOfRows(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'Rev0'}&amp;gt;} SOLI_ID_SOLICITUD) +&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; count(DISTINCT {&amp;lt;[Tipo Fecha]={$(vTipoFecha)}, Foto={'Publicación anual'}, [Revisión plan anual] = {'*'} - {'Rev0'}, ESSO_ID_ESTADO_BLOQ={1}&amp;gt;} SOLI_ID_SOLICITUD)), Mes, &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;Sort&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But I usually like to leave that in, just in case I need to add some sort of set analysis. People tend to forget to add it to outer aggregation functions when it is not there. As soon as I seen Only, I know that I might have to add it to the outer aggregation (Only function in our case) also.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I don't know how helpful this was.... but I am not sure if I can do a better job of explaining this. I really hope that this helps.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 03:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239577#M857871</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-02T03:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Static expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239578#M857872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Sunny, now I understand. You do a perfect job explaining me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 07:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-expressions/m-p/1239578#M857872</guid>
      <dc:creator>mromrod22</dc:creator>
      <dc:date>2017-02-02T07:57:32Z</dc:date>
    </item>
  </channel>
</rss>

