<?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: Sorting with Help of a Button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414734#M815802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that using a sort expression within your chart and a variable...&lt;SPAN style="font-size: 10pt;"&gt;Basically, based on a variable value, you can change the sort expression like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(vVar = 1, Sum(Measure), -Sum(Measure))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Sep 2017 08:22:43 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-09-14T08:22:43Z</dc:date>
    <item>
      <title>Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414733#M815801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts - I have a chart... Am trying to figure out whether we have an option like.. On click of an button, My dimension (which is sorted based on my expression) should change from Asc to Desc and vice versa...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bharani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414733#M815801</guid>
      <dc:creator>bharani8</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414734#M815802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that using a sort expression within your chart and a variable...&lt;SPAN style="font-size: 10pt;"&gt;Basically, based on a variable value, you can change the sort expression like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(vVar = 1, Sum(Measure), -Sum(Measure))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 08:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414734#M815802</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-14T08:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414735#M815803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 08:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414735#M815803</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-14T08:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414736#M815804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wowwwww!! U r an Star!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; TY so much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 08:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414736#M815804</guid>
      <dc:creator>bharani8</dc:creator>
      <dc:date>2017-09-14T08:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414737#M815805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will try to incorporate in my DB and let u know how it goes ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 08:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414737#M815805</guid>
      <dc:creator>bharani8</dc:creator>
      <dc:date>2017-09-14T08:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414738#M815806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharani,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'd like to contribute something which works along with Sunny's solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a button with text : =if($(vVar) = 1,'Asc','Desc')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and give it the action to change the variable vVar to: =1-$(vVar)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clicking this button will toggle the value of the variable between 1 and 0 and change the sort order in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 09:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414738#M815806</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-09-14T09:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414739#M815807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TY Walker for taking your time to post this!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not able click on that "Mark as Helpful" as it keeps on loading.. Any ways Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Mark as Helpful.PNG" class="jive-image image-1" src="/legacyfs/online/176543_Mark as Helpful.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 10:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414739#M815807</guid>
      <dc:creator>bharani8</dc:creator>
      <dc:date>2017-09-14T10:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414740#M815808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Andrew - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where exactly do we add this expression? Can you update my sample to show how it would work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414740#M815808</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-14T11:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414741#M815809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as action on click:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176559_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;You only need to set vVar initially to either 0 or -1 ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414741#M815809</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-14T11:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414742#M815810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where will this go?&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;=if($(vVar) = 1,'Asc','Desc')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414742#M815810</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-14T11:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414743#M815811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may use it for the description of the button:&lt;/P&gt;&lt;P&gt;IF ($(vVar), 'Asc', 'Desc')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similar then in the sort-property of the listbox&lt;/P&gt;&lt;P&gt;IF ($(vVar), 'SUM(Sales)', '-SUM(Sales)')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414743#M815811</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-14T11:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414744#M815812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sense, I seem to be having hallucinations &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/people/prieper"&gt;prieper&lt;/A&gt;‌‌!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1414744#M815812</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-14T11:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting with Help of a Button</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1819745#M1213345</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I am trying to achieve this in bar chart, qliksense where I am not able to sort using expression:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sorting Options Available" style="width: 238px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57988iE1CDA682A2F88F1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sorting.PNG" alt="Sorting Options Available" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Sorting Options Available&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have passed this condition(If(vVar=1,Sum(Measure),-Sum(Measure))) as measure, but When I am sorting in ascending mode it is showing negative values. See below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sorting2.PNG" style="width: 335px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57990i8FBBFD8FAAC127B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sorting2.PNG" alt="Sorting2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please Suggest&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 10:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-with-Help-of-a-Button/m-p/1819745#M1213345</guid>
      <dc:creator>PoojaYadav</dc:creator>
      <dc:date>2021-07-05T10:52:05Z</dc:date>
    </item>
  </channel>
</rss>

