<?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: to compare fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574358#M213935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls could elaborate more on what is the agent field &amp;amp; where do you want to display ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 11:57:50 GMT</pubDate>
    <dc:creator>manojkulkarni</dc:creator>
    <dc:date>2014-03-28T11:57:50Z</dc:date>
    <item>
      <title>to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574356#M213933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to display the agent field for transactions for this year and previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 11:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574356#M213933</guid>
      <dc:creator />
      <dc:date>2014-03-28T11:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574357#M213934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is agent field? Please provide some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 11:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574357#M213934</guid>
      <dc:creator />
      <dc:date>2014-03-28T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574358#M213935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls could elaborate more on what is the agent field &amp;amp; where do you want to display ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 11:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574358#M213935</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2014-03-28T11:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574359#M213936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Arial;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-size: 12pt; font-family: Arial;"&gt;&lt;STRONG&gt;Current year&amp;nbsp; &amp;lt;Year = &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Arial;"&gt;{&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Courier;"&gt;"$(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Arial;"&gt;=max(Year))&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Courier;"&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Arial;"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Arial;"&gt;&lt;SPAN style="; font-size: 12pt; font-family: Arial;"&gt;&lt;STRONG&gt;Previous year&amp;nbsp; &amp;lt;Year = &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Arial;"&gt;{&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Courier;"&gt;"$(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Arial;"&gt;=max(Year)-1)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Courier;"&gt;"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Arial;"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 12:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574359#M213936</guid>
      <dc:creator />
      <dc:date>2014-03-28T12:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574360#M213937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the agent field contains the agent of that particular transaction and i want to display of this year and of the last year to check whether it changed or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 12:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574360#M213937</guid>
      <dc:creator />
      <dc:date>2014-03-28T12:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574361#M213938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;the agent field contains the agent of that particular transaction and i want to display of this year and of the last year to check whether it changed or not&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 12:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574361#M213938</guid>
      <dc:creator />
      <dc:date>2014-03-28T12:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574362#M213939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;the agent field contains the agent of that particular transaction and i want to display of this year and of the last year to check whether it changed or not&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 12:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574362#M213939</guid>
      <dc:creator />
      <dc:date>2014-03-28T12:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574363#M213940</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;Please see below might be helpful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Load&amp;nbsp; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[yr,sale&lt;BR /&gt; 2010,200&lt;BR /&gt;2011,100&lt;BR /&gt;2013,50&lt;BR /&gt;2014,40&lt;BR /&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&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;IMG alt="comparefield.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56116_comparefield.PNG.png" style="width: 620px; height: 173px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Current year expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;yr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'$(=year(Today()))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Previous month expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;yr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'$(=year(Today())-1)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Vinay&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>Fri, 28 Mar 2014 12:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574363#M213940</guid>
      <dc:creator />
      <dc:date>2014-03-28T12:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574364#M213941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we need to understand your data model. From your description above it reads like a transaction last for many years and can have many agents over that time. I suspect that is not the case. Is there a customer/account in the model as well that links the transactions together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 12:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574364#M213941</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-03-28T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574365#M213942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a table that have transactions throughout the years and each transaction is associated with a particular agent .. so i want to make a table&amp;nbsp; so that when i choose a particular year a table that contains the client details and the agent of this year and the agent of the previous year for each transaction is displayed.&amp;nbsp; So that i can identify those records that changed agent &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 13:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574365#M213942</guid>
      <dc:creator />
      <dc:date>2014-03-28T13:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574366#M213943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes a bit more sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your table would have the columns &lt;/P&gt;&lt;P&gt;CLIENT&lt;/P&gt;&lt;P&gt;AGENT&lt;/P&gt;&lt;P&gt;AGENT LAST YEAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the only connection in your data from CLIENT to AGENT is through transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are going to have to make the assumption that the AGENT field is the most common agent from transactions in the current year selected and the AGENT LAST YEAR field is the most common agent from transactions in the previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like (I have not tested these):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGENT = firstsortedvalue(AGENT, COUNT(AGENT))&lt;/P&gt;&lt;P&gt;AGENT LAST YEAR = firstsortedvalue({&amp;lt;YEAR={"YEAR-1"}&amp;gt;} AGENT, COUNT(AGENT)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 13:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574366#M213943</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-03-28T13:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574367#M213944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 13:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574367#M213944</guid>
      <dc:creator>mangalsk</dc:creator>
      <dc:date>2014-03-28T13:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574368#M213945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but te year is according to my selection so i cannot use yearnow &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574368#M213945</guid>
      <dc:creator />
      <dc:date>2014-03-28T15:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574369#M213946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this for agent acc to year selction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create variable vCur=max(year1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In list box write expression==if(year1=$(vCur),agent)&lt;/P&gt;&lt;P&gt;By default it will show current year agent but acc to year selection it changes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 05:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574369#M213946</guid>
      <dc:creator>mangalsk</dc:creator>
      <dc:date>2014-03-29T05:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574370#M213947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have updated qvw acc to your requirement.&lt;/P&gt;&lt;P&gt;Please check it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 05:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574370#M213947</guid>
      <dc:creator>mangalsk</dc:creator>
      <dc:date>2014-03-29T05:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574371#M213948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still no result as when i choose a particular agent , the agent of that year is filled but that of the previous year is left null if it is different&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 06:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574371#M213948</guid>
      <dc:creator />
      <dc:date>2014-04-04T06:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: to compare fields</title>
      <link>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574372#M213949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can use alternate state.&lt;/P&gt;&lt;P&gt;Create two alternate states in Document properties and use in list box&lt;/P&gt;&lt;P&gt;&lt;IMG alt="alt.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56597_alt.png" style="width: 620px; height: 540px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="alter.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56592_alter.png" /&gt;&lt;IMG alt="alt1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56593_alt1.png" style="width: 620px; height: 523px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 10:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-compare-fields/m-p/574372#M213949</guid>
      <dc:creator>mangalsk</dc:creator>
      <dc:date>2014-04-04T10:31:25Z</dc:date>
    </item>
  </channel>
</rss>

