<?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 A field equal to another field? (Avoiding GetFieldSelections) Challenging! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160629#M34838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rodrigo for your answer,&lt;/P&gt;&lt;P&gt;Here you have a Table Box with the two fields : AsOfYear (of Rolling Calendar Table) and Year (Regular Calendar Table).&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2845.Years.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2845.Years.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried your expression : &lt;B&gt;max({$&amp;lt;Year={$(variable_year)}&amp;gt;}Month&lt;/B&gt;). Where &lt;B&gt;$(vAsOfYear)&lt;/B&gt; is equal to the field &lt;B&gt;AsOfYear&lt;/B&gt;&lt;/P&gt;&lt;P&gt;And I found no results.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Any idea how can I achieve my desired result ?&lt;/P&gt;&lt;P&gt;Many thanks in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2011 09:36:25 GMT</pubDate>
    <dc:creator>marcel_olmo</dc:creator>
    <dc:date>2011-03-15T09:36:25Z</dc:date>
    <item>
      <title>A field equal to another field? (Avoiding GetFieldSelections) Challenging!</title>
      <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160627#M34836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys!!&lt;/P&gt;&lt;P&gt;Here's my situation :&lt;/P&gt;&lt;P&gt;1- I have two calendar Table types : &lt;B&gt;Regular Calendar Table&lt;/B&gt; and &lt;B&gt;Rolling Months Calendar Table&lt;/B&gt;. (To calculate earnings of the last 12 months).&lt;/P&gt;&lt;P&gt;And I have to mix them to get my desired result in a table.&lt;/P&gt;&lt;P&gt;I mean, if I want to know which is the last sales month I need to click on &lt;B&gt;AsOfYear = '2010'&lt;/B&gt; ( Year field of the Rolling Months Table) and &lt;B&gt;Year ='2010'&lt;/B&gt; (Year Field of Regular Calendar Table).&lt;/P&gt;&lt;P&gt;I get that the last month is September, as you can see :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3794_sourceID:3794" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't select anything, my result is :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3795_sourceID:3795" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my desired result would be :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3796_sourceID:3796" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My point is that I don't know how to make &lt;I&gt;&lt;B&gt;AsOfYear = Year&lt;/B&gt;&lt;/I&gt; in set analysis avoiding to use &lt;B&gt;getfieldselections&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;By now I'm using this expression :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;='max({$&amp;lt;Year={$(=if(getfieldselections(AsOfYear),getfieldselections(AsOfYear),'*'))} &amp;gt;} total &amp;lt;Year&amp;gt; Month)'&lt;/P&gt;&lt;P&gt;It means, if I have AsOfYear Selected, I get the maximum month of this year, and If I don't have any AsOfYear selected, I get the last month of all the years (&lt;I&gt;so, it means 12&lt;/I&gt;). And I would need to get the12th month for every year except the last one (&lt;B&gt;which I need to be the 9th month&lt;/B&gt;).&lt;/P&gt;&lt;P&gt;I hope my explanation was understandable.&lt;/P&gt;&lt;P&gt;Many thanks in advance!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 18:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160627#M34836</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2011-03-14T18:31:33Z</dc:date>
    </item>
    <item>
      <title>A field equal to another field? (Avoiding GetFieldSelections) Challenging!</title>
      <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160628#M34837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if create an variable , exemple : 'variable_year' , with value the field , 'Year'. You can use the variable in field, AsOfYear , in ' set analysis'... ( or the opposite )&lt;/P&gt;&lt;P&gt;would be something like:&lt;/P&gt;&lt;P&gt;max({$&amp;lt;AsOfYear={$(variable_year)}&amp;gt;}Month)&lt;/P&gt;&lt;P&gt;solves 'AsOfYear = Year ' ?&lt;/P&gt;&lt;P&gt;sorry my english, I'm from Brazil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 19:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160628#M34837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-14T19:42:59Z</dc:date>
    </item>
    <item>
      <title>A field equal to another field? (Avoiding GetFieldSelections) Challenging!</title>
      <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160629#M34838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rodrigo for your answer,&lt;/P&gt;&lt;P&gt;Here you have a Table Box with the two fields : AsOfYear (of Rolling Calendar Table) and Year (Regular Calendar Table).&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2845.Years.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2845.Years.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried your expression : &lt;B&gt;max({$&amp;lt;Year={$(variable_year)}&amp;gt;}Month&lt;/B&gt;). Where &lt;B&gt;$(vAsOfYear)&lt;/B&gt; is equal to the field &lt;B&gt;AsOfYear&lt;/B&gt;&lt;/P&gt;&lt;P&gt;And I found no results.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Any idea how can I achieve my desired result ?&lt;/P&gt;&lt;P&gt;Many thanks in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 09:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160629#M34838</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2011-03-15T09:36:25Z</dc:date>
    </item>
    <item>
      <title>A field equal to another field? (Avoiding GetFieldSelections) Challenging!</title>
      <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160630#M34839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcel,&lt;/P&gt;&lt;P&gt;You may try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Max({&amp;lt; Year = &lt;B&gt;P(&lt;/B&gt;AsOfYear&lt;B&gt;)&lt;/B&gt;&amp;gt;} Month)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;P() returns all possible values (sensitive to the selections done) for year AsOfYear. It can use set analysis.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 10:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160630#M34839</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-15T10:32:20Z</dc:date>
    </item>
    <item>
      <title>A field equal to another field? (Avoiding GetFieldSelections) Challenging!</title>
      <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160631#M34840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Miguel Angel for your quick answer,&lt;/P&gt;&lt;P&gt;As you can see in my first post (which explains my whole problem).&lt;/P&gt;&lt;P&gt;I have closed years (2005,2006,2007,2008,2009) with the maximum month = 12.&lt;/P&gt;&lt;P&gt;And I have an opened year (2010), with the maximum month = 9.&lt;/P&gt;&lt;P&gt;If I use you expression (selecting AsOfYear = 2010), I can get the maximum month = 9 (which is correct), but I need to calculate over all the years.&lt;/P&gt;&lt;P&gt;This is the result with your expression :&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8233.yearMiguel.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8233.yearMiguel.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this ismy desired result :&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8637.deseado.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8637.deseado.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 11:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160631#M34840</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2011-03-15T11:11:18Z</dc:date>
    </item>
    <item>
      <title>A field equal to another field? (Avoiding GetFieldSelections) Challenging!</title>
      <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160632#M34841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcel,&lt;/P&gt;&lt;P&gt;I'd create a new dimension that has bot year and month for every date, and use MaxString() instead of Max()&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 11:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160632#M34841</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-15T11:49:57Z</dc:date>
    </item>
    <item>
      <title>A field equal to another field? (Avoiding GetFieldSelections) Challenging!</title>
      <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160633#M34842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks again for worrying about my issues Miguel Angel,&lt;/P&gt;&lt;P&gt;I have to beg your perdon because I can't understand why I have to do that.&lt;/P&gt;&lt;P&gt;My problem is that I need to "force" &lt;B&gt;Year = AsOfYear&lt;/B&gt; always to get my desired result "as I understand".&lt;/P&gt;&lt;P&gt;If I use your function is useful for the year selected, but not for all the years. I need to calculate this without using functions which means select Calendar stuff.&lt;/P&gt;&lt;P&gt;I see you're from Zaragoza, so I'd prefer to explain myself in our language to make me understand better :&lt;/P&gt;&lt;P&gt;Hola Miguel Angel de nuevo.&lt;/P&gt;&lt;P&gt;El tema es que tengo que mezclar los dos tipos de calendario para calcular ciertos ratios. El calendario con Años y Meses naturales, y el calendario con Años y meses "de arrastre", es decir, unas ventas de julio 2010, se calcularian desde septiembre 2009 hasta julio 2010. El concepto esta bien explicado en el foro como &lt;B&gt;"Rolling Months"&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;Por set analysis, si clico el año que quiero, es facil igualar los dos años, para obtener su maximo mes. EL problema es controlar cuando "no hay ningun año seleccionado". Hasta ahora tenia que si no seleccionabas ningun año, el maximo mes era igual a 12. Pero esto es incorrecto, ya que en mi caso el año 2010 no lo tengo cerrado, y deberia ser &lt;B&gt;igual a 9.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Es un gran quebradero de cabeza que no se me ocurre como solucionar.&lt;/P&gt;&lt;P&gt;Muchisimas gracias de antemano por tu ayuda desinteresada, y si algun dia requieres de la mia, no dudes en pedirmela.&lt;/P&gt;&lt;P&gt;Saludos!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 23:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160633#M34842</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2011-03-15T23:03:33Z</dc:date>
    </item>
    <item>
      <title>A field equal to another field? (Avoiding GetFieldSelections) Challenging!</title>
      <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160634#M34843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found the solution!!! Thanks anyway!!!&lt;/P&gt;&lt;P&gt;My solution was to recalculate (on the loading script) the &lt;B&gt;maximum value of the month&lt;/B&gt; grouping by year and company in a resident table.&lt;/P&gt;&lt;P&gt;My problem is I've to reload all the data (thousands of rows), but it was worth it.&lt;/P&gt;&lt;P&gt;Best regards!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 16:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160634#M34843</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2011-03-16T16:47:12Z</dc:date>
    </item>
    <item>
      <title>A field equal to another field? (Avoiding GetFieldSelections) Challenging!</title>
      <link>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160635#M34844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Miguel thanks again for your useful help.&lt;/P&gt;&lt;P&gt;Finally I got a fully desirable solution, here's what I've done :&lt;/P&gt;&lt;P&gt;If you want to compare one field to another field is completely impossible doing set analysis, so what I've done is an auxiliar table that matches the two fields I want to compare doing joins between the two tables.&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Field1, Field2, IsMatched&lt;/P&gt;&lt;P style="font-weight: bold"&gt;'Hello', 'Hello', 1&lt;/P&gt;&lt;P style="font-weight: bold"&gt;'Hello', 'Bye', 0&lt;/P&gt;&lt;P&gt;I know is a quite stupid thing, but at the end is very useful.&lt;/P&gt;&lt;P&gt;Thanks again Miguel! Cheers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 15:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-field-equal-to-another-field-Avoiding-GetFieldSelections/m-p/160635#M34844</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2011-04-01T15:16:48Z</dc:date>
    </item>
  </channel>
</rss>

