<?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: Comparing expression values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682288#M1086071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach your qvw please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2014 06:16:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-16T06:16:14Z</dc:date>
    <item>
      <title>Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682281#M1086064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been using QlikView off and on over the months/years, I'm essentially a one trick pony.&amp;nbsp; Note how I don't call myself an old dog, because you know what they say about them and new tricks, and I'm in need of one!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my case.&amp;nbsp; Raw data is an Excel sheet:&lt;/P&gt;&lt;P&gt;ColA is a date field, specifically of the time a report is run.&lt;/P&gt;&lt;P&gt;ColB is a code from that report&lt;/P&gt;&lt;P&gt;ColC is a computer name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table set up in QV like this:&lt;/P&gt;&lt;P&gt;Dimensions: ColB, ColA&lt;/P&gt;&lt;P&gt;Expression: count(ColC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me the total number of times a computer reported each code on each report date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to be able to do is to compare the results of those counts across reports.&amp;nbsp; Did CodeX show up fewer times on Date1 than Date2?&amp;nbsp; Did CodeY disappear on Date2?&amp;nbsp; Is CodeZ a new code to appear?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd settle for the first scenario if that is the easiest/most feasible to get going, but the other two would also be sweet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried tinkering with putting the data in Pivot Tables, and I also tried experimenting with the Aggr() function, but I was mostly flailing (and failing).&amp;nbsp; There's no real pressure to get this done, as I basically use Qlikview for myself (I work for an NGO, so big expenditures are few and far between) and what I want this new trick of mine to do IS technically doable manually.&amp;nbsp; But, like I said, if I can double the number of tricks I have in this program, that much the better!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 04:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682281#M1086064</guid>
      <dc:creator />
      <dc:date>2014-06-16T04:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682282#M1086065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Drew, Answered your first question using Alternate States and Set Analysis. Please try the other 2 yourself. If you still need help, let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 04:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682282#M1086065</guid>
      <dc:creator />
      <dc:date>2014-06-16T04:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682283#M1086066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your rapid reply, Ram.&amp;nbsp; I neglected to mention, though, that I am using the Free/Personal edition of QV.&amp;nbsp; That means I am unable to open your file.&amp;nbsp; My apologies for not making this clear initially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please post the code/expressions/etc. that you used?&amp;nbsp; Again, my appreciation for your quick response, and my apologies for not being clear in my initial question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 04:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682283#M1086066</guid>
      <dc:creator />
      <dc:date>2014-06-16T04:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682284#M1086067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="expression.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60620_expression.PNG.png" style="width: 620px; height: 172px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;too many steps involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto Document properties, Alternate States, create 2 alternate States. Compare1 and Compare2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 list boxes for your date column and assign the respective alternate states.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create 2 variables. Date1 and Date2 with the following expressions respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({Compare1}ColA}&lt;/P&gt;&lt;P&gt;=only({Compare2}ColA}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a list box for your ColB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have a text box with the expression in the picture attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 04:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682284#M1086067</guid>
      <dc:creator />
      <dc:date>2014-06-16T04:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682285#M1086068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="AnswertoQuestion1.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60621_AnswertoQuestion1.PNG.png" style="width: 620px; height: 333px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 04:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682285#M1086068</guid>
      <dc:creator />
      <dc:date>2014-06-16T04:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682286#M1086069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="SampleData.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/60622_SampleData.PNG.png" /&gt;Used this sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 04:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682286#M1086069</guid>
      <dc:creator />
      <dc:date>2014-06-16T04:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682287#M1086070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again for laying all of this out!&amp;nbsp; I appreciate all of the effort you are putting forth to assist me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, in my text box, I get an error when trying to use the Alternate States.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(count({&amp;lt;RepDate={'$(Date1)'}&amp;gt;} DISTINCT [RepCode] &amp;lt; count({&amp;lt;RepDate={'$(Date2)'}&amp;gt;} DISTINCT [RepCode]),'Yes','No')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the value for text (Alternate State is 'inherited'), but when I click OK I get:&lt;/P&gt;&lt;P&gt;Error: Error in expression: Nested aggregation not allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 06:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682287#M1086070</guid>
      <dc:creator />
      <dc:date>2014-06-16T06:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682288#M1086071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach your qvw please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 06:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682288#M1086071</guid>
      <dc:creator />
      <dc:date>2014-06-16T06:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682289#M1086074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are missing a bracket ')' after Distinct [RepCode]. Please correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(count({&amp;lt;RepDate={'$(Date1)'}&amp;gt;} Distinct [RepCode]&lt;STRONG style="text-decoration: underline;"&gt;),,,,,,,,,,,,,,,,,,,,,,,,,,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 06:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682289#M1086074</guid>
      <dc:creator />
      <dc:date>2014-06-16T06:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing expression values</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682290#M1086076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very astute, that corrected it.&amp;nbsp; Thank you very much for all of your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 06:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-expression-values/m-p/682290#M1086076</guid>
      <dc:creator />
      <dc:date>2014-06-16T06:24:26Z</dc:date>
    </item>
  </channel>
</rss>

