<?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: Sort by with an if clause in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sort-by-with-an-if-clause/m-p/2006903#M83314</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;thanks, for your response!&lt;/P&gt;
&lt;P&gt;&lt;BUTTON class="lmt__translations_as_text__text_btn" lang="en-US" aria-description="Klicken, um Alternative zu verwenden"&gt;After applying the code&lt;/BUTTON&gt; Qlik no longer displays quantity. I don't know why.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the sorting does not work. It is still the old wrong order. Is it correct to put it into the tab "sorting"?&lt;/P&gt;
&lt;P&gt;BR, Kerstin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 09:39:21 GMT</pubDate>
    <dc:creator>KerstinP</dc:creator>
    <dc:date>2022-11-21T09:39:21Z</dc:date>
    <item>
      <title>Sort by with an if clause</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-by-with-an-if-clause/m-p/2006389#M83284</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a dimension (Product) and a value (Orders). I created a variable to switch between the value of the orders itself and the amount of the orders.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=if((vDefaultAmount)='Value',&lt;BR /&gt;Sum(Orders)/1000,&lt;BR /&gt;Sum(Amount_Orders))&lt;/P&gt;
&lt;P&gt;How can I sort the data. I always want to see the sorting by the value of the orders - even my variable is shwoing Amount.&lt;/P&gt;
&lt;P&gt;And how can I change the format. My values should look like 0'000 and my amount like 0.000?&lt;/P&gt;
&lt;P&gt;Thanks for your help!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR Kerstin&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 11:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-by-with-an-if-clause/m-p/2006389#M83284</guid>
      <dc:creator>KerstinP</dc:creator>
      <dc:date>2022-11-18T11:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by with an if clause</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-by-with-an-if-clause/m-p/2006455#M83288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;may be to format number&amp;nbsp;&lt;/P&gt;
&lt;P&gt;replace(num(Sum(Orders),'#,###'),',',chr(39))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=if((vDefaultAmount)='Value',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;num(Sum(Orders),'#,###') ,&lt;/SPAN&gt;&lt;BR /&gt;replace(num(Sum(&lt;SPAN&gt;Amount_Orders&lt;/SPAN&gt;),'#,###'),',',chr(39))&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for sorting order&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Use the rank function&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;rank(Sum(Orders))&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 14:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-by-with-an-if-clause/m-p/2006455#M83288</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-11-18T14:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by with an if clause</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-by-with-an-if-clause/m-p/2006903#M83314</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;thanks, for your response!&lt;/P&gt;
&lt;P&gt;&lt;BUTTON class="lmt__translations_as_text__text_btn" lang="en-US" aria-description="Klicken, um Alternative zu verwenden"&gt;After applying the code&lt;/BUTTON&gt; Qlik no longer displays quantity. I don't know why.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the sorting does not work. It is still the old wrong order. Is it correct to put it into the tab "sorting"?&lt;/P&gt;
&lt;P&gt;BR, Kerstin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-by-with-an-if-clause/m-p/2006903#M83314</guid>
      <dc:creator>KerstinP</dc:creator>
      <dc:date>2022-11-21T09:39:21Z</dc:date>
    </item>
  </channel>
</rss>

