<?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 compare 2 fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5833#M462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If SnapshotQuarter and CurrentQuarter both are numeric fields, the following might work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;SnapshotQuarter = {"=SnapshotQuarter&amp;lt;Min(CurrentQuarter)"}&amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2018 16:03:04 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2018-01-24T16:03:04Z</dc:date>
    <item>
      <title>Set analysis compare 2 fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5831#M460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How can i compare values in 2 fields in a set analysis.&lt;/P&gt;&lt;P&gt;Something like below but i am not able to get the syntax correctly.&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;SnapshotQuarter = {&amp;lt;$(=CurrentQuarter)}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want is Sum of Sales for all the SnapshotQtr which are previous to CurrentQtr. And i am specifically looking for a set analysis syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 22:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5831#M460</guid>
      <dc:creator>prasadmundewadi</dc:creator>
      <dc:date>2018-01-23T22:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis compare 2 fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5832#M461</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; font-size: 13px;"&gt;Is CurrentQuarter really a field? It seems more natural that it is a variable. But then again I dont know much about the context for this expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This might work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({&amp;lt;SnapshotQuarter = {"&amp;lt;$(CurrentQuarter)"}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The double quotes denotes a search.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I presume that both SnapshotQuarter and CurrentQuarter also contains the year they belong to so the search will be including the right quarters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;They could be like 2018Q1 and 2017Q4 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or 201801 and 201704...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 00:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5832#M461</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-24T00:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis compare 2 fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5833#M462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If SnapshotQuarter and CurrentQuarter both are numeric fields, the following might work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;SnapshotQuarter = {"=SnapshotQuarter&amp;lt;Min(CurrentQuarter)"}&amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 16:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5833#M462</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2018-01-24T16:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis compare 2 fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5834#M463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the 2 fields are numeric. I assigned unique numbers in sending order to each quarter. This worked but I removed Min. Did not need that.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Sum ({$&amp;lt;SnapshotQuarter = {"=SnapshotQuarter&amp;lt;Min(CurrentQuarter)"}&amp;gt;} Sales )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Thank you &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 17:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5834#M463</guid>
      <dc:creator>prasadmundewadi</dc:creator>
      <dc:date>2018-01-24T17:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis compare 2 fields</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5835#M464</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; font-size: 12px; background-color: #f2f2f2;"&gt;I used this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Sum ({$&amp;lt;SnapshotQuarter = {"=SnapshotQuarter&amp;lt;(CurrentQuarter)"}&amp;gt;} Sales )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 17:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-compare-2-fields/m-p/5835#M464</guid>
      <dc:creator>prasadmundewadi</dc:creator>
      <dc:date>2018-01-24T17:26:12Z</dc:date>
    </item>
  </channel>
</rss>

