<?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: Alphabetical Sorting on Click Event in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973756#M526494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can not use macro in our app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 12:27:54 GMT</pubDate>
    <dc:creator>neetu_singh</dc:creator>
    <dc:date>2015-11-24T12:27:54Z</dc:date>
    <item>
      <title>Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973754#M526492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two button one is for "ASC" &amp;amp; another is for "DESC". What I need is when I click on ASC button then in my bar chart data should be sorted into Alphabetical Order from A&amp;gt;B&amp;gt;.............Z &amp;amp; when I click "DESC" then it should be Z&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;Y.........................A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need the same in a single chart. Right now am achieving the same by using "wild match" function with in Sort Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other best way to achieve the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 12:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973754#M526492</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2015-11-24T12:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973755#M526493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be MACRO..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 12:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973755#M526493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-24T12:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973756#M526494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can not use macro in our app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 12:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973756#M526494</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2015-11-24T12:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973757#M526495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your sample data so that we can see any workaround??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 12:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973757#M526495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-24T12:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973758#M526496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By creating two charts; one ASC sorted and one DESC. Apply a conditional show one both graphs, triggered by your ASC and DESC buttons. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 12:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973758#M526496</guid>
      <dc:creator>mvanlutterveld</dc:creator>
      <dc:date>2015-11-24T12:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973759#M526497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetu,&lt;/P&gt;&lt;P&gt;Yes, you could do this with an expression and a variable in your button.&lt;/P&gt;&lt;P&gt;The basic construct would need something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A variable that was set to 1 or 0 by your buttons.&lt;/LI&gt;&lt;LI&gt;An IF statement within the sort expression eg, IF(Variable,SortOrder1,SortOrder2)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fun bit will be deciding how to control the sort.&amp;nbsp; That will depend on your data.&amp;nbsp; The first thought that comes to mind is using a Dual() function.&amp;nbsp; The second, would be using a pick(match()) array.&amp;nbsp; Both of these should be set up in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that will get you started.&amp;nbsp; If you get stuck, post here again and I'll go into more detail.&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 12:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973759#M526497</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2015-11-24T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973760#M526498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like cheating, possible maintenance issues if there are a lot of these, but sometimes the simplest solutions are the best!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 12:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973760#M526498</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2015-11-24T12:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973761#M526499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you can create a variabel vSortFactor. When you press DESC, set the variable to 1, when you press ASC, set the variabel to -1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then sort by the same expression as your main expression multiplied with the $(vSortFactor) and select order Descending. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 12:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973761#M526499</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-11-24T12:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973762#M526500</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;Hopefully this will help you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7220"&gt;Perfectly Sorting Pivot Table (by A-Z. y-Value set for each dim-level)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973762#M526500</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2015-11-24T13:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetical Sorting on Click Event</title>
      <link>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973763#M526501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Neetu,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Make a variable, vSortOrder and set it to 1 initially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Make a button with text&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if($(vSortOrder)=1,'ASC','DESC')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and with an action to set the variable &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vSortOrder &lt;/SPAN&gt;= -$(vSortOrder).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Make a variable vAscending&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Match(Field, $(=Chr(39) &amp;amp; concat({1} Distinct Field,chr(39) &amp;amp; ',' &amp;amp; Chr(39),Field) &amp;amp; Chr(39)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but replace the word Field with the name of the field you are sorting on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In your chart sort your field by the expression&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=$(vSortOrder) * $(vAscending)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 14:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alphabetical-Sorting-on-Click-Event/m-p/973763#M526501</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-11-24T14:26:21Z</dc:date>
    </item>
  </channel>
</rss>

