<?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: Alternate Dimension- Three nested functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059640#M943346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the attached qvw, both the buttons are doing the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111175_Capture.PNG" style="height: 100px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Jan 2016 19:38:19 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-10T19:38:19Z</dc:date>
    <item>
      <title>Alternate Dimension- Three nested functions</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059633#M943339</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;Last week I started my first job IT job as trainee QV developer. My first task is to maintain a QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is button in the QVW that I know what is doing (show results by Continent and Country) but I could not get the logic of the expression competently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;Pick&lt;/STRONG&gt;(2 - &lt;STRONG&gt;Mod&lt;/STRONG&gt;(&lt;STRONG&gt;Match&lt;/STRONG&gt;(vLevel, 'Country', 'Continent') + 1, 2), 'Country', 'Continent')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already know what each of the 3 function do (when they are separated), but I am getting confused with that nested function between the mod and the match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please explain me what going on between the Mod and the Match?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 17:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059633#M943339</guid>
      <dc:creator>sasukeindra</dc:creator>
      <dc:date>2016-01-10T17:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate Dimension- Three nested functions</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059634#M943340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that when vLevel = Country, then the expression will output Continent. When vLevel =Continent, then the expression will output Country. This seems like a very complicated solution to a simple problem. Can you try if the below expression gives the same output as the one you have provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(Match(vLevel, 'Country', 'Continent'), 'Continent', 'Country')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 18:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059634#M943340</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-10T18:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate Dimension- Three nested functions</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059635#M943341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my interpretation of the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vLevel='Country', then pick 'Continent'.&lt;/P&gt;&lt;P&gt;If vlevel='Continent', then pick 'Country'&lt;/P&gt;&lt;P&gt;if vLevel &amp;lt;&amp;gt; 'Continent' OR 'Country', then pick 'Country'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand the meaning correctly, then I think it's more complex then necessary. I would have written it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Pick&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;(&lt;/SPAN&gt;Match&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;(vLevel, 'Country', 'Continent') + 1), 'Country', 'Continent',&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt; 'Country'&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 18:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059635#M943341</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-01-10T18:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate Dimension- Three nested functions</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059636#M943342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The match function returns an integer: 0, 1 or 2. The Mod function takes the modulus 2 of that number after 1 is added to it. So it returns 0 or 1. The pick function the picks the first (2 - 1) or second (2 - 0) value in the list of 'Country', 'Continent'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It's an unnecessarily complicated expression. I find this clearer: =If(vLevel='Country','Continent','Country')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 19:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059636#M943342</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-10T19:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate Dimension- Three nested functions</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059637#M943343</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;I had the same tough and I did the exact same thing. But the button didnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you put it in the text box it works, but not as an action.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 19:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059637#M943343</guid>
      <dc:creator>sasukeindra</dc:creator>
      <dc:date>2016-01-10T19:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate Dimension- Three nested functions</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059638#M943344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to try your solution to check the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 19:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059638#M943344</guid>
      <dc:creator>sasukeindra</dc:creator>
      <dc:date>2016-01-10T19:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate Dimension- Three nested functions</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059639#M943345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply and explanation, I am getting even closer to the logic of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will also try the alternative solution that you sent me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 19:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059639#M943345</guid>
      <dc:creator>sasukeindra</dc:creator>
      <dc:date>2016-01-10T19:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate Dimension- Three nested functions</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059640#M943346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the attached qvw, both the buttons are doing the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111175_Capture.PNG" style="height: 100px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 19:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059640#M943346</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-10T19:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate Dimension- Three nested functions</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059641#M943347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for those, I will check and compare with mine and find out why it didnt work (my one).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 19:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-Dimension-Three-nested-functions/m-p/1059641#M943347</guid>
      <dc:creator>sasukeindra</dc:creator>
      <dc:date>2016-01-10T19:44:08Z</dc:date>
    </item>
  </channel>
</rss>

