<?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 multiple string value in a field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821465#M67343</link>
    <description>&lt;P&gt;That´s because your have a comma here in your script&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'"India&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;","&lt;/STRONG&gt;&lt;/FONT&gt;UK";"America";"Japan"'&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2021 14:24:26 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2021-07-12T14:24:26Z</dc:date>
    <item>
      <title>Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821420#M67335</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have been trying to perform a sort inside a value based on ascending order.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I have a field name Country and it values are.&lt;/P&gt;&lt;P&gt;Country&lt;/P&gt;&lt;P&gt;"UK";"India";"Australia";"USA"&lt;/P&gt;&lt;P&gt;Expected output is:&lt;/P&gt;&lt;P&gt;"Australia";"India";"UK";"USA"&lt;/P&gt;&lt;P&gt;I have to sort the fields based on A-Z in ascending order. Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 12:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821420#M67335</guid>
      <dc:creator>bhanukoppera7491</dc:creator>
      <dc:date>2021-07-12T12:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821442#M67336</link>
      <description>&lt;P&gt;&lt;EM&gt;You could do it easily in the chart properties &amp;gt;sort&amp;gt; Text&amp;gt;A-Z&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="avinashelite_0-1626096938231.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58421iFDC4C408181305FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="avinashelite_0-1626096938231.png" alt="avinashelite_0-1626096938231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 13:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821442#M67336</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2021-07-12T13:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821443#M67337</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"UK";"India";"Australia";"USA"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is single value in a field.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 13:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821443#M67337</guid>
      <dc:creator>bhanukoppera7491</dc:creator>
      <dc:date>2021-07-12T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821448#M67338</link>
      <description>&lt;P&gt;&lt;EM&gt;This you can't do it directly , first you need to split this field into single values&amp;nbsp; using the subfield() function&amp;nbsp; and again you&amp;nbsp; concatenate the fields after sorting .&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Whats the data size , please provide the sample data will help you with the solution&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 13:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821448#M67338</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2021-07-12T13:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821449#M67339</link>
      <description>&lt;P&gt;It has thousands of records. I have tried subfield and concat , but the problem I was facing is the country names are repeating multiple times after the concat. Here is the sample data.&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Country&lt;BR /&gt;'"India";"America";"Japan";"UK"'&lt;BR /&gt;'"Japan";"UK"'&lt;BR /&gt;'"India","UK";"America";"Japan"'&lt;BR /&gt;'"America";"Japan";"UK"'&lt;BR /&gt;'"Japan";"UK";"America"'&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 13:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821449#M67339</guid>
      <dc:creator>bhanukoppera7491</dc:creator>
      <dc:date>2021-07-12T13:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821452#M67340</link>
      <description>&lt;P&gt;Could you try this?&lt;/P&gt;&lt;P&gt;Load Concat(Country,';',Country) Group by row;&lt;BR /&gt;Load recno() as row, SubField(Country,';') as Country;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Country&lt;BR /&gt;'"India";"America";"Japan";"UK"'&lt;BR /&gt;'"Japan";"UK"'&lt;BR /&gt;'"India","UK";"America";"Japan"'&lt;BR /&gt;'"America";"Japan";"UK"'&lt;BR /&gt;'"Japan";"UK";"America"'&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 13:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821452#M67340</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2021-07-12T13:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821459#M67342</link>
      <description>&lt;P&gt;Thanks for the reply. Below is the screenshot of the output. If you see the first value in the field "UK" is coming before "Japan". But UK should be last as per the order.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhanukoppera7491_0-1626099009746.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58424iDC6DC8AC2530DC20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhanukoppera7491_0-1626099009746.png" alt="bhanukoppera7491_0-1626099009746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 14:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821459#M67342</guid>
      <dc:creator>bhanukoppera7491</dc:creator>
      <dc:date>2021-07-12T14:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821465#M67343</link>
      <description>&lt;P&gt;That´s because your have a comma here in your script&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'"India&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;","&lt;/STRONG&gt;&lt;/FONT&gt;UK";"America";"Japan"'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 14:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821465#M67343</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2021-07-12T14:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821468#M67344</link>
      <description>&lt;P&gt;I have tried using the same script to load an excel. But unable to get the desired result. Here is the sample input file&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 06:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821468#M67344</guid>
      <dc:creator>bhanukoppera7491</dc:creator>
      <dc:date>2021-07-13T06:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821486#M67346</link>
      <description>&lt;P&gt;Your country fields seems to be ok with atomic values&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 15:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821486#M67346</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2021-07-12T15:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821487#M67347</link>
      <description>&lt;P&gt;Apologies. In the excel I am referring to the field &lt;STRONG&gt;"Active Substance(s)".&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 15:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821487#M67347</guid>
      <dc:creator>bhanukoppera7491</dc:creator>
      <dc:date>2021-07-12T15:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting multiple string value in a field</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821546#M67353</link>
      <description>&lt;P&gt;Please check if this makes sense to you:&lt;/P&gt;&lt;P&gt;SortedMap:&lt;BR /&gt;mapping&lt;BR /&gt;Load distinct&lt;BR /&gt;[RegPointID],&lt;BR /&gt;Concat(distinct [Active Substance],';',[RegPointID]&amp;amp;[Active Substance]) as [Sorted Active Substance(s)]&lt;BR /&gt;group by [RegPointID];&lt;BR /&gt;load * where len([Active Substance]);&lt;BR /&gt;Load&lt;BR /&gt;[RegPointID],&lt;BR /&gt;trim(SubField([Active Substance(s)],';')) as [Active Substance]&lt;BR /&gt;FROM [lib://DataFiles/All Drug in the World (3).xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [All Drug in the World]);&lt;/P&gt;&lt;P&gt;[All Drug in the World]:&lt;BR /&gt;LOAD&lt;BR /&gt;[RegPointID],&lt;BR /&gt;[Country Group(s)],&lt;BR /&gt;[Country],&lt;BR /&gt;[Product Name (English)],&lt;BR /&gt;[Regulatory Status],&lt;BR /&gt;[Marketing Status],&lt;BR /&gt;[Authorization Number],&lt;BR /&gt;[Active Substance(s)],&lt;BR /&gt;ApplyMap('SortedMap',[RegPointID]) as [Sorted Active Substance(s)],&lt;BR /&gt;[Excipient(s)],&lt;BR /&gt;[Active Strength(s)],&lt;BR /&gt;[Auth Pharmaceutical Form],&lt;BR /&gt;[Route of Administration],&lt;BR /&gt;[Marketing Authorisation Holder],&lt;BR /&gt;[Application Submitted Date],&lt;BR /&gt;Date([Approval Date] ) AS [Approval Date],&lt;BR /&gt;Date([Marketed Date] ) AS [Marketed Date],&lt;BR /&gt;[No Longer Marketed Date],&lt;BR /&gt;Date([End Of Life Date] ) AS [End Of Life Date],&lt;BR /&gt;[End of Life Reason],&lt;BR /&gt;[Renewal Submitted Date],&lt;BR /&gt;[Renewal Approved Date],&lt;BR /&gt;[Renewal Required],&lt;BR /&gt;[Renewal Due Date],&lt;BR /&gt;[Renewal Expiration Date],&lt;BR /&gt;[Medicinal Product Type],&lt;BR /&gt;[Authorisation Procedure],&lt;BR /&gt;[Procedure Number],&lt;BR /&gt;[Global Product Category],&lt;BR /&gt;[Local Product Category],&lt;BR /&gt;[Local Dispensing Class],&lt;BR /&gt;[Product Owner],&lt;BR /&gt;[Brand Name],&lt;BR /&gt;[Formula Number],&lt;BR /&gt;[Formula Reference Number]&lt;BR /&gt;FROM [lib://DataFiles/All Drug in the World (3).xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [All Drug in the World]);&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 18:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-multiple-string-value-in-a-field/m-p/1821546#M67353</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2021-07-12T18:35:39Z</dc:date>
    </item>
  </channel>
</rss>

