<?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 Variable values and print in text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673129#M728850</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628" target="_blank"&gt;@sunny_talwar&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached a sample. Data, with 4 columns, id, sex, race, ethnicity.&lt;/P&gt;&lt;P&gt;Text box shows count, and I have triggers set up for each field.&lt;/P&gt;&lt;P&gt;Need to sort said text box in descending order.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 19:29:04 GMT</pubDate>
    <dc:creator>padmanabhv</dc:creator>
    <dc:date>2020-02-06T19:29:04Z</dc:date>
    <item>
      <title>Sort Variable values and print in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673103#M728843</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Lets say I have a bunch of variables:&lt;BR /&gt;v1, v2, v3 - which are text GetFieldSelections based on selected filters,&lt;/P&gt;&lt;P&gt;and v1c,v2c,v3c - which are count of distinct values for corresponding variables.&lt;/P&gt;&lt;P&gt;Totally 6 variables, which get their values populated from their corresponding triggers.&lt;/P&gt;&lt;P&gt;First step would be to link variable v1 with v1c, and so on. (Not sure how I do that), but more importantly&lt;/P&gt;&lt;P&gt;Is there a way to sort the variables v1c,v2c,v3c based on their. count and then have a text box output them in this format: (assuming v2c&amp;gt;v1c&amp;gt;v3c)&lt;BR /&gt;OUTPUT:&lt;BR /&gt;v2 : v2c&lt;BR /&gt;v1 : v1c&lt;BR /&gt;v3 : v3c&lt;/P&gt;&lt;P&gt;ie, sort the variables and have an output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. I know reload or dynamic update works, but I cannot use that because of issues in their web version / published doc. Is there a formula- based approach to do this ?&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673103#M728843</guid>
      <dc:creator>padmanabhv</dc:creator>
      <dc:date>2024-11-16T19:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Variable values and print in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673106#M728846</link>
      <description>&lt;P&gt;I think this is doable, but it is difficult to know what you have right now... are you able to share a sample where we can see what you have an suggest changes?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 18:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673106#M728846</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-06T18:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Variable values and print in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673129#M728850</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628" target="_blank"&gt;@sunny_talwar&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached a sample. Data, with 4 columns, id, sex, race, ethnicity.&lt;/P&gt;&lt;P&gt;Text box shows count, and I have triggers set up for each field.&lt;/P&gt;&lt;P&gt;Need to sort said text box in descending order.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 19:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673129#M728850</guid>
      <dc:creator>padmanabhv</dc:creator>
      <dc:date>2020-02-06T19:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Variable values and print in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673135#M728851</link>
      <description>&lt;P&gt;When I select F in sex, I get this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.png" style="width: 168px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28077i5BC1F606F34F3357/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.png" alt="Capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What would be the sort order you would need?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 19:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673135#M728851</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-06T19:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Variable values and print in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673141#M728852</link>
      <description>&lt;P&gt;&lt;EM&gt;The text box (just for display) has sex, race and ethnicity in that order,&lt;BR /&gt;&lt;/EM&gt;But say the user chose Race, eth then sex, then the counts would be (for example), black = 4, no = 3, F = 3&lt;BR /&gt;IN that case I want it to display it in descending order:&lt;/P&gt;&lt;P&gt;black = 4,&lt;BR /&gt;no = 3,&lt;BR /&gt;F = 3&lt;/P&gt;&lt;P&gt;(I originally wanted it in order of user selection, but given it will always be in descending order, I can live with just sorting said variables)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 19:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673141#M728852</guid>
      <dc:creator>padmanabhv</dc:creator>
      <dc:date>2020-02-06T19:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Variable values and print in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673153#M728853</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=If(vSexCount &amp;gt;= vRaceCount and vSexCount &amp;gt;= vEthCount, vSex &amp;amp; ' = ' &amp;amp; vSexCount,
	If(vRaceCount &amp;gt;= vSexCount and vRaceCount &amp;gt;= vEthCount, vRace &amp;amp; ' = ' &amp;amp; vRaceCount, vEth &amp;amp; ' = ' &amp;amp; vEthCount))
&amp;amp; Chr(10) &amp;amp;
If(vSexCount &amp;gt;= vRaceCount and vSexCount &amp;gt;= vEthCount and vRaceCount &amp;gt; vEthCount, vRace &amp;amp; ' = ' &amp;amp; vRaceCount,
	If(vRaceCount &amp;gt;= vSexCount and vRaceCount &amp;gt;= vEthCount and vSexCount &amp;gt; vEthCount, vSex &amp;amp; ' = ' &amp;amp; vSexCount, vEth &amp;amp; ' = ' &amp;amp; vEthCount))
&amp;amp; Chr(10) &amp;amp;
If(vSexCount &amp;lt;= vRaceCount and vSexCount &amp;lt;= vEthCount, vSex &amp;amp; ' = ' &amp;amp; vSexCount,
	If(vRaceCount &amp;lt;= vSexCount and vRaceCount &amp;lt;= vEthCount, vRace &amp;amp; ' = ' &amp;amp; vRaceCount, vEth &amp;amp; ' = ' &amp;amp; vEthCount))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Feb 2020 20:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673153#M728853</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-06T20:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Variable values and print in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673157#M728854</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;Appreciate the help, but in my actual case I have atleast 10 such fields (possibly could go up in the future). These conditions would get super messy.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I had a method to reload the script and add these variables into a table with fields as rows and the field value and count being the columns.&lt;BR /&gt;But I have issues with reload not working in a published qlikview document, and do not want to go down that path.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 20:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Variable-values-and-print-in-text-box/m-p/1673157#M728854</guid>
      <dc:creator>padmanabhv</dc:creator>
      <dc:date>2020-02-06T20:29:12Z</dc:date>
    </item>
  </channel>
</rss>

