<?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 Via a Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-Via-a-Variable/m-p/1163674#M379080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is create two dimension or expression and set one in ascending order and other in descending order.&lt;/P&gt;&lt;P&gt;Now put conditional show on both dimension or expression and show only one at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this trick will fulfill your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 07:47:56 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2016-07-28T07:47:56Z</dc:date>
    <item>
      <title>Sorting Via a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Via-a-Variable/m-p/1163671#M379077</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;&lt;/P&gt;&lt;P&gt;I have a variable vTB, its either on or off (0/1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the button is clicked, the variable is updated to the alternative, i want the order of my table then be sorted in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pseudocode:&lt;/P&gt;&lt;P&gt;if vTB=1 then sort based on [Total Volume] ascending else sort on [Total Volume] descending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone???&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 06:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Via-a-Variable/m-p/1163671#M379077</guid>
      <dc:creator />
      <dc:date>2016-07-28T06:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Via a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Via-a-Variable/m-p/1163672#M379078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below link might be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/161620"&gt;Sorting a straight table based on expression via a button&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Via-a-Variable/m-p/1163672#M379078</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-28T07:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Via a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Via-a-Variable/m-p/1163673#M379079</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;As far as I know there is no function to do the sorting based on condition.&lt;/P&gt;&lt;P&gt;The only workaround I can think of is, you keep 2 charts sorted as per your requirement.&lt;/P&gt;&lt;P&gt;When your Variable is ON you show one chart and second will be hidden and same way when your variable is OFF you show the hidden chart and Hide the shown chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get that idea from below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4317"&gt;QlikView App: Show and Hide Windows Dynamically&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Via-a-Variable/m-p/1163673#M379079</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-07-28T07:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Via a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Via-a-Variable/m-p/1163674#M379080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is create two dimension or expression and set one in ascending order and other in descending order.&lt;/P&gt;&lt;P&gt;Now put conditional show on both dimension or expression and show only one at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this trick will fulfill your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Via-a-Variable/m-p/1163674#M379080</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-07-28T07:47:56Z</dc:date>
    </item>
  </channel>
</rss>

