<?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: how to remove commas in data of variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252160#M95596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is working but i need small favour from you..&lt;/P&gt;&lt;P&gt;Can you plz write above code for 9 fields. like G1,G2,G3,G4,G5,G6,G7,G8,G9.&lt;/P&gt;&lt;P&gt;B'coz i'm not able to implement your code for 9 fields...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jul 2011 11:20:49 GMT</pubDate>
    <dc:creator>jagannalla</dc:creator>
    <dc:date>2011-07-04T11:20:49Z</dc:date>
    <item>
      <title>how to remove commas in data of variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252155#M95591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;- I had stored all selections of different listboxes in one variable with seperating each selection with comma.&lt;/P&gt;&lt;P&gt;- if i not selecting any one listbox i'm getting the comma but i want to remove this comma if i not selected that listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In button action i return for variable&amp;nbsp; like this: =GetFieldSelections(F1,',',50)&amp;amp;','&amp;amp;GetFieldSelections(Group,',',50)&amp;amp;','&amp;amp;GetFieldSelections(Group1,',',50)&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;I have three fields F1,Group,Group1 and taken in different listboxes. And i'm taken one variable for storing the seleted data of those listboxes with seperating comma. If i'm not selecting Group,Group1 . I'm getting the output of variable like : &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;G,, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here i want to remove &lt;STRONG style="font-size: 14pt;"&gt;,,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm attaching my qvw file also for your reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 08:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252155#M95591</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2011-07-04T08:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove commas in data of variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252156#M95592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jacq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those are result of the concatenation (the &amp;amp;',,'&amp;amp; part between GetFieldSelections). You will need to add more conditionals so if the GetFieldSelections(Group, ',', 50) length is greater than zero, then use it, othwerwise null, or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=GetFieldSelections(F1,',',50)&amp;amp;If(Len(GetFieldSelections(Group,',',50)) &amp;gt; 0, ','&amp;amp;GetFieldSelections(Group,',',50)&amp;amp;If(Len(GetFieldSelections(Group1,',',50)) &amp;gt; 0, ','&amp;amp;GetFieldSelections(Group1,',',50)))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 09:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252156#M95592</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-04T09:03:52Z</dc:date>
    </item>
    <item>
      <title>how to remove commas in data of variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252157#M95593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But if i not select Group listbox it is not storing Group1 data also..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 09:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252157#M95593</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2011-07-04T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove commas in data of variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252158#M95594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will have to add more conditionals to control all possibilities or use a different function to get different values and concatentate them, using Concat() for example, and in your macro, depending on the length of the three concats() (one per each F1, Group and Group1) create the variable in accordance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 09:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252158#M95594</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-04T09:51:11Z</dc:date>
    </item>
    <item>
      <title>how to remove commas in data of variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252159#M95595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Try this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =GetFieldSelections(F1,',',50)&amp;amp;&lt;/P&gt;&lt;P&gt; if(GetSelectedCount(F1) &amp;gt; 0 and (GetSelectedCount(Group) &amp;gt; 0 or GetSelectedCount(Group1)) ,',')&amp;amp;&lt;/P&gt;&lt;P&gt; GetFieldSelections(Group,',',50)&amp;amp;&lt;/P&gt;&lt;P&gt; if(GetSelectedCount(Group1) &amp;gt; 0 and GetSelectedCount(Group) &amp;gt; 0,',')&amp;amp;&lt;/P&gt;&lt;P&gt;GetFieldSelections(Group1,',',50)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 09:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252159#M95595</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-04T09:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove commas in data of variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252160#M95596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is working but i need small favour from you..&lt;/P&gt;&lt;P&gt;Can you plz write above code for 9 fields. like G1,G2,G3,G4,G5,G6,G7,G8,G9.&lt;/P&gt;&lt;P&gt;B'coz i'm not able to implement your code for 9 fields...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 11:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252160#M95596</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2011-07-04T11:20:49Z</dc:date>
    </item>
    <item>
      <title>how to remove commas in data of variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252161#M95597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Let me tell you the logic this will help you to make it done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Look at the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After 1st get selection of F1 i gave 3 condition in if statement. and then as we go down it decreases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So same you have to do for 9 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =GetFieldSelections(G1,',',50)&amp;amp;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(G1) &amp;gt; 0 and (GetSelectedCount(G2) &amp;gt; 0 or GetSelectedCount(G3)) &amp;gt;0 ......... or GetSelectedCount(G9) &amp;gt;0 ,',')&amp;amp;&lt;/P&gt;&lt;P&gt;GetFieldSelections(G2,',',50)&amp;amp;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(G2) &amp;gt; 0 and GetSelectedCount(G3) &amp;gt; 0...........GetSelectedCount(G9) &amp;gt;0',')&amp;amp;&lt;/P&gt;&lt;P&gt;GetFieldSelections(G3,',',50).............................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetFieldSelections(G9,',',50)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Try you will for sure can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 11:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252161#M95597</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-04T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove commas in data of variable?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252162#M95598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot kaushik..I implemented your logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 12:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-remove-commas-in-data-of-variable/m-p/252162#M95598</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2011-07-04T12:24:55Z</dc:date>
    </item>
  </channel>
</rss>

