<?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 Sort a table using expressions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1875854#M72203</link>
    <description>&lt;P&gt;I want to use a Button to change the sorting of a table (no pivot-table).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's assume that I have 2 columns in the table: Col1 and Col2. If the Button is clicked, I want to change the value of a local variable 'vTableSort' from 'Col1' to 'Col2' and vice-versa. If 'vTableSort' has the value 'Col1', the table should be sorted ascending based on 'Col1'. If 'vTableSort' has the value 'Col2', the table should be sorted descending based on 'Col2'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would appreciate if anyone could help me out with this!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 16:52:30 GMT</pubDate>
    <dc:creator>Luca1</dc:creator>
    <dc:date>2024-11-16T16:52:30Z</dc:date>
    <item>
      <title>Sort a table using expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1875854#M72203</link>
      <description>&lt;P&gt;I want to use a Button to change the sorting of a table (no pivot-table).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's assume that I have 2 columns in the table: Col1 and Col2. If the Button is clicked, I want to change the value of a local variable 'vTableSort' from 'Col1' to 'Col2' and vice-versa. If 'vTableSort' has the value 'Col1', the table should be sorted ascending based on 'Col1'. If 'vTableSort' has the value 'Col2', the table should be sorted descending based on 'Col2'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would appreciate if anyone could help me out with this!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 16:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1875854#M72203</guid>
      <dc:creator>Luca1</dc:creator>
      <dc:date>2024-11-16T16:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a table using expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1875999#M72212</link>
      <description>&lt;P&gt;Can u try like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If( variable='col1', 'col2', 'col1')&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 05:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1875999#M72212</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2021-12-30T05:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a table using expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1876040#M72214</link>
      <description>&lt;P&gt;Where am I supposed to write that? There is no "Sort by Expression" field for a table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 08:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1876040#M72214</guid>
      <dc:creator>Luca1</dc:creator>
      <dc:date>2021-12-30T08:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a table using expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1876093#M72219</link>
      <description>&lt;P&gt;In expression of Sort tab, use below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If( variable='col1', 'col2', 'col1')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;another approach :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Custom-Sort/td-p/1666109" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Custom-Sort/td-p/1666109&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;another approach :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Custom-sorting-of-Dimentions/td-p/1285062" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Custom-sorting-of-Dimentions/td-p/1285062&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Sort-by-expression-filter-box/m-p/1866419#M71527" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Sort-by-expression-filter-box/m-p/1866419#M71527&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;hope this will help&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Vikas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 11:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1876093#M72219</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2021-12-30T11:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a table using expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1876109#M72222</link>
      <description>&lt;P&gt;Hey, thank you for your reply! I think that this is exactly what I want. However, I can't find an expression field in the sorting tab. Attached you find a screenshot of how it looks like for me. Maybe I misunderstood, where I have to make these changes.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-12-30 at 12.45.17.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69383i60C529BFDC7B3648/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-12-30 at 12.45.17.png" alt="Screen Shot 2021-12-30 at 12.45.17.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 11:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1876109#M72222</guid>
      <dc:creator>Luca1</dc:creator>
      <dc:date>2021-12-30T11:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a table using expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1876122#M72223</link>
      <description>&lt;P&gt;You'll need to drag up this column so it's the first in the sort tab, uncheck sort auto and check 'sort by expression' can use this expression:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If( variable='col1', 'col2', 'col1')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;not sure for button but in pivot report you can do the same.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Vikas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 12:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-a-table-using-expressions/m-p/1876122#M72223</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2021-12-30T12:20:35Z</dc:date>
    </item>
  </channel>
</rss>

