<?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 STRING in a expression.... how to transform it? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313511#M115713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has to be done as en expression of a graph... I cannot use that in a load instruction &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2011 08:33:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-20T08:33:52Z</dc:date>
    <item>
      <title>STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313508#M115710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a string made in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"14|13|5"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to convert this string by using a condition.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&amp;nbsp; If one of the value is &amp;gt; 10 then transorm it in A else in B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have as a result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"A|A|B"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 08:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313508#M115710</guid>
      <dc:creator />
      <dc:date>2011-12-20T08:14:34Z</dc:date>
    </item>
    <item>
      <title>STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313509#M115711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this string have fixed number of&amp;nbsp; "|" ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 08:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313509#M115711</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2011-12-20T08:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313510#M115712</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;Assuming the following script:&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;LOAD Concat(ValueCheck, '|') AS ValueCheck2;&lt;/P&gt;&lt;P&gt;LOAD If(SubField(Value, '|') &amp;gt; 10, 'A', 'B') AS ValueCheck INLINE [&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;15|14|3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field ValueCheck2 will store as you want. SubField() will return each part separated by "|", the If() will return "A" or "B", the Concat() in the preceding load will concatenate values "A" and "B" using "|" as separator and store them into a new field called ValueCheck2.&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 08:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313510#M115712</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-20T08:26:04Z</dc:date>
    </item>
    <item>
      <title>STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313511#M115713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has to be done as en expression of a graph... I cannot use that in a load instruction &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 08:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313511#M115713</guid>
      <dc:creator />
      <dc:date>2011-12-20T08:33:52Z</dc:date>
    </item>
    <item>
      <title>STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313512#M115714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Indeed this the expression made for generating the string: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat(distinct&amp;nbsp; round(AGGR(SUM(W_FT_VALORE_NETTO),C_PROVINCIA_FATT)), '|',fieldIndex('C_PROVINCIA_FATT', C_PROVINCIA_FATT))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 08:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313512#M115714</guid>
      <dc:creator />
      <dc:date>2011-12-20T08:37:04Z</dc:date>
    </item>
    <item>
      <title>STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313513#M115715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If&amp;nbsp; number of | is fixed (2) then you can use expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Subfield(Field,'|',1)&amp;gt;10,A,B) &amp;amp;'|'&amp;amp;If(Subfield(Field,'|',2)&amp;gt;10,A,B)&amp;amp;'|&amp;amp;'If(Subfield(Field,'|',3)&amp;gt;10,A,B)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 08:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313513#M115715</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2011-12-20T08:39:43Z</dc:date>
    </item>
    <item>
      <title>STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313514#M115716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I am sorry but I don't know the exact number .... I am very unlucky ... I know is a very complicated problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 08:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313514#M115716</guid>
      <dc:creator />
      <dc:date>2011-12-20T08:43:30Z</dc:date>
    </item>
    <item>
      <title>STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313515#M115717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; What do you think, Macro is the only way to cope with this problem ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 09:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313515#M115717</guid>
      <dc:creator />
      <dc:date>2011-12-20T09:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313516#M115718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Did you try to use the same expression, but using the conditional instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive-pre notranslate" style="font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; padding-left: 10px; color: #636363;"&gt;&lt;CODE class="jive-code"&gt;=concat(distinct If(round(AGGR(SUM(W_FT_VALORE_NETTO),C_PROVINCIA_FATT)) &amp;gt; 10, 'A', 'B'), '|',fieldIndex('C_PROVINCIA_FATT', C_PROVINCIA_FATT))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 10:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313516#M115718</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-20T10:22:56Z</dc:date>
    </item>
    <item>
      <title>STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313517#M115719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes that was my first try .... but the concat function makes all difficult:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add a if .... it's going to show me a string made up of a number equal to my C_PROVINCIA .... and not just the aggregation made up with the sum. I cannot get why... really. The main problem is the concat function. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 10:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313517#M115719</guid>
      <dc:creator />
      <dc:date>2011-12-20T10:31:34Z</dc:date>
    </item>
    <item>
      <title>STRING in a expression.... how to transform it?</title>
      <link>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313518#M115720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; All this stuff ... is to show ... the Amount of sales (or whatever) for each region by using the google api chart ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show a gradient geo-chart .... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's going to be ...very difficult &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 10:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STRING-in-a-expression-how-to-transform-it/m-p/313518#M115720</guid>
      <dc:creator />
      <dc:date>2011-12-20T10:44:45Z</dc:date>
    </item>
  </channel>
</rss>

