<?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: Set Analysis in Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160232#M21015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FirstSortedValue(Value, &lt;/STRONG&gt;&lt;SPAN 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;AssessmentDate&lt;SPAN style="color: #ff0000;"&gt;, 2&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FirstSortedValue(Value, -&lt;/STRONG&gt;&lt;SPAN 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;AssessmentDate&lt;SPAN style="color: #ff0000;"&gt;, 2&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2016 15:55:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-14T15:55:47Z</dc:date>
    <item>
      <title>Set Analysis in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160229#M21012</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;I am trying to create a pivot table with 2 dates and 2 values that correspond with each test date.&amp;nbsp; I have two dimensions, Performance Items &amp;amp; Name, name is a row and performance item is a column. I have 4 measures. Initial Test, Initial Value, Latest Test, Latest Value. For the Initial and Latest test it is pulling a date from a field AssessmentDate. The Initial and Latest values are pulling from a field called value. The set analysis I am using for the date fields is: Min({$}AssessmentDate) As Initial and Max({$}AssessmentDate) As latest. This seems to be working correctly when comparing to the database. When I tried to do my set analysis for the value the values that are being pulled are not correct. The code I am using is Min({$&amp;lt;[Initial Test]={}&amp;gt;}Value) for initial and Max({$&amp;lt;[Initial Test]={}&amp;gt;}Value). I am not sure if that is correct but I am trying to pull the value that corresponds with the test date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2016-07-14 at 10.28.06 AM.png" class="jive-image image-1" src="/legacyfs/online/131303_Screen Shot 2016-07-14 at 10.28.06 AM.png" style="height: 106px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 14:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160229#M21012</guid>
      <dc:creator>philip_radovich</dc:creator>
      <dc:date>2016-07-14T14:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160230#M21013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Min&lt;/SPAN&gt;({$&amp;lt;[Initial Test]={}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(Value, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;AssessmentDate)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Instead of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Max&lt;/SPAN&gt;({$&amp;lt;[Initial Test]={}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;FirstSortedValue(Value, &lt;SPAN style="color: #ff0000;"&gt;-&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;AssessmentDate)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Note the negative sign in front of AssessmentDate when we are replacing Max expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 14:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160230#M21013</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T14:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160231#M21014</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;That appears to have worked!! As a side question if I were to need to pull in another&amp;nbsp; 2 measures for Previous Test and Previous Value how would I go about doing that using the first sorted value? Would I do something like &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FirstSortedValue(Value, &lt;/STRONG&gt;&lt;SPAN 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;AssessmentDate) -1 &lt;/STRONG&gt;to get the previous test and value? When I tried Max({$}AssessmentDate)-1 It took that max date and just subtracted 1 day. I was confused how to pull the date from the previous test. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 15:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160231#M21014</guid>
      <dc:creator>philip_radovich</dc:creator>
      <dc:date>2016-07-14T15:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160232#M21015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FirstSortedValue(Value, &lt;/STRONG&gt;&lt;SPAN 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;AssessmentDate&lt;SPAN style="color: #ff0000;"&gt;, 2&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FirstSortedValue(Value, -&lt;/STRONG&gt;&lt;SPAN 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;AssessmentDate&lt;SPAN style="color: #ff0000;"&gt;, 2&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 15:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160232#M21015</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T15:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160233#M21016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My years are displaying from the&amp;nbsp; 1900's . Not sure why that is. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 17:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160233#M21016</guid>
      <dc:creator>philip_radovich</dc:creator>
      <dc:date>2016-07-14T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160234#M21017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Years are displaying 1900s? I don't understand the relation to the current discussion? Can you may be elaborate Philip?&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>Thu, 14 Jul 2016 17:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Pivot-Table/m-p/1160234#M21017</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T17:18:12Z</dc:date>
    </item>
  </channel>
</rss>

