<?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 comparing data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179104#M46071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;As you suggest, I believe it is best to create another field to select the comparison value. I did a few changes to your example, see attached.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There is a separate table for the second version field, version_2.&lt;/LI&gt;&lt;LI&gt;The chart uses set analysis to ignore the version selection in the second column, and use version_2 instead.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Hellmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2009 21:27:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-08T21:27:54Z</dc:date>
    <item>
      <title>comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179102#M46069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;I've looked over the forum but didnt find the exact example for what I want,although that I found something similar&lt;/P&gt;&lt;P&gt;I coudn't manage to perform it... [:^)]&lt;/P&gt;&lt;P&gt;Pls look at the file. many user are comparing data between 2 or more periods/versions but what I'm looking for is that:&lt;/P&gt;&lt;P&gt;for example the user is selecting "version=1" and then the column data in the chart is changing according to his selections&lt;/P&gt;&lt;P&gt;BUT I need that the near by column (called 'to compare' ) will not change...well thats easy-set analysis...BUT the user want to select ANOTHER&lt;/P&gt;&lt;P&gt;period / version lets (say version=3) and that his selection will &lt;STRONG&gt;not&lt;/STRONG&gt; effect column data but only effects the column 'to compare'.&lt;/P&gt;&lt;P&gt;Again,two selection -one is for the data and the other selection influence on the column 'to compare' only.&lt;/P&gt;&lt;P&gt;(the need is for comparing to the data that has selected before hope its clear..)&lt;/P&gt;&lt;P&gt;* I think that I need to add another column with the same values of version,but I'm not sure......&lt;/P&gt;&lt;P&gt;thants is advance&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 20:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179102#M46069</guid>
      <dc:creator />
      <dc:date>2009-09-08T20:34:38Z</dc:date>
    </item>
    <item>
      <title>comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179103#M46070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, you can use Set Analysis to ignore the selection. On your second expressions, use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({1} sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That will keep the second column the same regardless of your selection in version. Test that out and see how that works in your situation.&lt;/P&gt;&lt;P&gt;As for the second selection, you may have a few options. You may want to pull in the selection choices for the second selection, but make sure they are not linked to the rest of your data. Then when you make a selection for that second option, you could use a variable along with Set Analysis to filter the data.&lt;/P&gt;&lt;P&gt;Set your variable up as:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=GetFieldSelections(Selection2Field)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then your Set Analysis on the second expression would become something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({1&amp;lt;Field = {$(=vVariable)}&amp;gt;} sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That Set Analysis function may need to be altered depending on what type of data you have (for example putting quotes around the dollar sign expansion for string values).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 21:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179103#M46070</guid>
      <dc:creator />
      <dc:date>2009-09-08T21:21:04Z</dc:date>
    </item>
    <item>
      <title>comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179104#M46071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;As you suggest, I believe it is best to create another field to select the comparison value. I did a few changes to your example, see attached.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There is a separate table for the second version field, version_2.&lt;/LI&gt;&lt;LI&gt;The chart uses set analysis to ignore the version selection in the second column, and use version_2 instead.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Hellmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 21:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179104#M46071</guid>
      <dc:creator />
      <dc:date>2009-09-08T21:27:54Z</dc:date>
    </item>
    <item>
      <title>comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179105#M46072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your actual case is as simple as the example, with just a version field that you want to be different between the columns, then I'd probably do what Hellmar suggests and have a version_2 field and use set analysis on it for the second column.&lt;/P&gt;&lt;P&gt;But I'm guessing that in the general case, where you instead want to compare a complicated selection of multiple values in multiple fields, this could be done most easily with one or more bookmarks. Using bookmarks, you can easily prepare two different sets to compare. Make selections for the first set and click a button to bookmark. Make selections for the second set, and you can easily compare to the bookmarked set using set analysis. If you want two different sets being compared, and yet a third set of selections for the rest of the reports, then two bookmarks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 06:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179105#M46072</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-09-09T06:06:31Z</dc:date>
    </item>
    <item>
      <title>comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179106#M46073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first-thanx everyone&lt;/P&gt;&lt;P&gt;Hellmar you got me right and your solution is great and working. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;John,your comment is logical and I will appreciate if you could add an example for it&lt;/P&gt;&lt;P&gt;in the file (version)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 19:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179106#M46073</guid>
      <dc:creator />
      <dc:date>2009-09-09T19:23:32Z</dc:date>
    </item>
    <item>
      <title>comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179107#M46074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gah, I figured you might ask for that. &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;P&gt;See, I never touch bookmarks myself. I've never dealt with bookmarks in macros or in set analysis. So far, I can't seem to make the idea work, even if it seems sound to me.&lt;/P&gt;&lt;P&gt;I do seem to be able to save a bookmark:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sub AddToCompareBookmark&lt;BR /&gt; ActiveDocument.RemoveUserBookmark "ToCompare"&lt;BR /&gt; ActiveDocument.CreateUserBookmark "ToCompare"&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;But this doesn't seem to be making a user bookmark, but rather a server bookmark. I suppose that's fine, since supposedly server bookmarks are the replacement for user bookmarks. However, I can't seem to see server bookmarks, so it isn't doing me much good. I can manually create a user bookmark and name it the same thing. I can verify that the bookmark is there and working by simply clicking on it. But when I use it in a set analysis expression:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({BM01} sales)&lt;BR /&gt;sum({ToCompare} sales)&lt;/P&gt;&lt;P&gt;It doesn't return anything different than sum(sales). I assume I'm just doing something wrong, but that's about all the help I'm getting out of the help text for set analysis.&lt;/P&gt;&lt;P&gt;Anyone want to take a crack at this? It SHOULD be a trivial problem to solve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 05:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179107#M46074</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-09-10T05:50:05Z</dc:date>
    </item>
    <item>
      <title>comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179108#M46075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it turns out I'm not the only one having problems getting user bookmarks to work with set analysis. So for now, I've changed the example to use document bookmarks. It now demonstrates what I was suggesting. I do see one minor problem, which is that the chart doesn't refresh - QlikView apparently doesn't check for charts using bookmarks when a bookmark changes. I consider that a bug, but there's probably some easy workaround, some macro command to tell it to rebuild the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 23:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179108#M46075</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-09-10T23:53:31Z</dc:date>
    </item>
    <item>
      <title>comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179109#M46076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;BR /&gt;just tested and for me this works, provided you include your bookmark in "".&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 03:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179109#M46076</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-09-11T03:41:51Z</dc:date>
    </item>
    <item>
      <title>comparing data</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179110#M46077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you modified the user bookmark one to add double quotes, and it worked for you? Is this the change you made?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({"ToCompare"} sales)&lt;/P&gt;&lt;P&gt;Because that's not working for me either. &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 03:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-data/m-p/179110#M46077</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-09-11T03:51:53Z</dc:date>
    </item>
  </channel>
</rss>

