<?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 the value in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417210#M95325</link>
    <description>&lt;P&gt;Or perhaps this, calling the sorting option of the concat() function with an expression. Not sure about this one either.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Aggr(
    Concat(DISTINCT {&amp;lt;start_date={"&amp;lt;=$(vMaxpvm)"}, end_date={"&amp;gt;=$(vMinpvm)"}&amp;gt;} M_FOKO, ', ', if(right(M_FOKO,1)='S', 0, M_FOKO)),
    GTIN
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 13:17:09 GMT</pubDate>
    <dc:creator>henrikalmen</dc:creator>
    <dc:date>2024-02-09T13:17:09Z</dc:date>
    <item>
      <title>Sorting the value in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417014#M95279</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Aggr(
    Concat(DISTINCT {&amp;lt;start_date={"&amp;lt;=$(vMaxpvm)"}, end_date={"&amp;gt;=$(vMinpvm)"}&amp;gt;} M_FOKO, ', '),
    GTIN
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I have an expression that yields results in the format of &lt;STRONG&gt;"FOKO A , FOKO S"&lt;/STRONG&gt;. I need to sort these results so that any value ending with 'S' appears first, while the others are sorted alphabetically &lt;STRONG&gt;"FOKO S, FOKO A"&lt;/STRONG&gt;. Is This possible to do within the set analysis?&lt;/P&gt;
&lt;P&gt;I appreciate any assistance you can provide. Thank you for your time and help.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 08:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417014#M95279</guid>
      <dc:creator>famoka</dc:creator>
      <dc:date>2024-02-09T08:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the value in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417058#M95300</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/286287"&gt;@famoka&lt;/a&gt;&amp;nbsp;Perhaps this in your sort expression. This will look based on String order (A to Z)&lt;/P&gt;
&lt;P&gt;=concat( mid(Aggr(&lt;BR /&gt;Concat(DISTINCT {&amp;lt;start_date={"&amp;lt;=$(vMaxpvm)"}, end_date={"&amp;gt;=$(vMinpvm)"}&amp;gt;} M_FOKO, ', '),&lt;BR /&gt;GTIN&lt;BR /&gt;), ValueLoop(1, len(Aggr(&lt;BR /&gt;Concat(DISTINCT {&amp;lt;start_date={"&amp;lt;=$(vMaxpvm)"}, end_date={"&amp;gt;=$(vMinpvm)"}&amp;gt;} M_FOKO, ', '),&lt;BR /&gt;GTIN&lt;BR /&gt;))),1),'',mid(Aggr(&lt;BR /&gt;Concat(DISTINCT {&amp;lt;start_date={"&amp;lt;=$(vMaxpvm)"}, end_date={"&amp;gt;=$(vMinpvm)"}&amp;gt;} M_FOKO, ', '),&lt;BR /&gt;GTIN&lt;BR /&gt;), ValueLoop(1, len(Aggr(&lt;BR /&gt;Concat(DISTINCT {&amp;lt;start_date={"&amp;lt;=$(vMaxpvm)"}, end_date={"&amp;gt;=$(vMinpvm)"}&amp;gt;} M_FOKO, ', '),&lt;BR /&gt;GTIN&lt;BR /&gt;))),1))&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 08:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417058#M95300</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-02-09T08:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the value in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417175#M95318</link>
      <description>&lt;P&gt;Hi thanks for thus, but this dosen't work for me. We neet to somehow try to sortit within the the set analysis i provided. This expression is within vizlib pivot table and is a measure not a dimension so we cant sortit in sort expression.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 11:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417175#M95318</guid>
      <dc:creator>famoka</dc:creator>
      <dc:date>2024-02-09T11:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the value in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417204#M95323</link>
      <description>&lt;P&gt;Set analysis {the part of the expression that is enclosed with curly brackets} is only for filtering, you can't do sorting through set expressions. The &lt;A href="https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/aggr.htm" target="_self"&gt;Aggr()&lt;/A&gt; function has the possibility to add a sorting parameter, but I don't believe it can sort based on the last character in the text value.&lt;/P&gt;
&lt;P&gt;I'm not sure, but maybe the Dual() function can be used inside your expression. Try this as start, but I'm not sure it will work:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Aggr(
    Concat(DISTINCT {&amp;lt;start_date={"&amp;lt;=$(vMaxpvm)"}, end_date={"&amp;gt;=$(vMinpvm)"}&amp;gt;} dual(M_FOKO, if(right(M_FOKO,1)='S', 0, 1))), ', '),
    GTIN
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 13:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417204#M95323</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2024-02-09T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the value in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417210#M95325</link>
      <description>&lt;P&gt;Or perhaps this, calling the sorting option of the concat() function with an expression. Not sure about this one either.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Aggr(
    Concat(DISTINCT {&amp;lt;start_date={"&amp;lt;=$(vMaxpvm)"}, end_date={"&amp;gt;=$(vMinpvm)"}&amp;gt;} M_FOKO, ', ', if(right(M_FOKO,1)='S', 0, M_FOKO)),
    GTIN
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 13:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417210#M95325</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2024-02-09T13:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting the value in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417256#M95328</link>
      <description>&lt;P&gt;You may try it by defining your foko-field as a dual() value and in the numeric part you applies your wanted sorting. Then you add this field as the third parameter to the concat() - sorting the aggr() won't help because at this point the aggregated string exists already.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 14:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-the-value-in-set-analysis/m-p/2417256#M95328</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-02-09T14:50:22Z</dc:date>
    </item>
  </channel>
</rss>

