<?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: set analysis with 2 different data types in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375228#M419873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if the data would have looked like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10.6667px; font-family: inherit;"&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[&lt;BR /&gt;F1, F2.F3&lt;BR /&gt;abc, 9*,50&lt;BR /&gt;def, 10,2&lt;BR /&gt;ab, 100,2&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it would be 450* for abc? If that is true... may be you need this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KeepChar(F2, '0123456789') * F3 &amp;amp; PurgeChar(F2, '0123456789')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2017 11:22:59 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-30T11:22:59Z</dc:date>
    <item>
      <title>set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375210#M419855</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'm having a set analysis with alternate sates where I have show data of 2 different data types, Both number and string&lt;/P&gt;&lt;P&gt;Here is what i'm using,&lt;BR /&gt; MaxString({[state1]&amp;lt;field1={1}&amp;gt;}value)+sum({[state1]&amp;lt;field1={2}&amp;gt;}value)&lt;BR /&gt;since data is of 2 different data types set analysis is not performing OR operation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Other way i'm trying is using if condition but not sure how to use alternate states in if condtion.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375210#M419855</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2017-10-30T09:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375211#M419856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding a string to a number? ! What are you really trying to achieve? Could you explain with an example may be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375211#M419856</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-10-30T09:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375212#M419857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Share the sample app so that we could understand problem better &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375212#M419857</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-10-30T09:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375213#M419858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give a little more details, It is hard to give advise when we don't know exactly what it is you are doing and what you are trying to achieve. A real world example would be a good start, some example data and with explanation of what you are trying to do and your expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375213#M419858</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2017-10-30T09:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375214#M419859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my value field has a special character some times, which cannot be displayed if I Used SUM, so would need a string function to display the special character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Value field has both number and string&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375214#M419859</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2017-10-30T09:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375215#M419860</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;I would look at the purgechar() function to remove the special char, then wrap in a num function if needed.&lt;/P&gt;&lt;P&gt;NUM(Purgechar(Value,'!'))&amp;nbsp; - Replace ! with the special char you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you are adding two numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375215#M419860</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2017-10-30T09:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375216#M419861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;This is the example below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; F1, F2.F3&lt;BR /&gt; abc, 9*,1&lt;BR /&gt; def, 10,2&lt;BR /&gt; ab, 100,2&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Since F2 has special character I cant directly sum, I've to use something like this &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1)='*',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;maxstring&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But the problem now is alternate states, how to put the above logic with alternate statues, In if clause we cannot use alternate states directly so I used something like this &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;MaxString({[state1]&amp;lt;F3={1}&amp;gt;}value)+sum(F3={2}&amp;gt;}value). This doesn't work as + wouldn't work with 2 different types&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375216#M419861</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2017-10-30T09:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375217#M419862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;If that is the case , create a new column without the special character and use that column for sum etc and while displaying use the other column that should resolve your issue &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375217#M419862</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-10-30T09:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375218#M419863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wanted to display with special character&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375218#M419863</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2017-10-30T09:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375219#M419864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like you say you aren't going to be able to some a num and string.&lt;/P&gt;&lt;P&gt;I would still look at using numbers and maybe make some changes in the load script. Something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DATA:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; F1, F2.F3&lt;BR /&gt; abc, 9*,1&lt;BR /&gt; def, 10,2&lt;BR /&gt; ab, 100,2&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; Ordered:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;PurgeChar&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'*')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2_SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RIGHT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1)='*',1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Special&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; DATA;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Drop&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; DATA; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will just be dealing with numbers and no if's, but you are still aware when you have special characters with the Special flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 10:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375219#M419864</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2017-10-30T10:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375220#M419865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that mark, But you cannot concatenate in front end right? that ends up again as two different data types&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 10:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375220#M419865</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2017-10-30T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375221#M419866</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;IF you do your calculation as normal with the numbers and ignore the special char, once you are happy with the result you can add an if to your set analysis like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;'Your Set analysis'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Special)= 1,'*') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or even have a different way to visualise it, with a coloured text or field. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 10:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375221#M419866</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2017-10-30T10:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375222#M419867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried even concatenating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(sum({[state1]&amp;lt;F3={1}&amp;gt;}value1)&amp;amp;'*')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum(F3={2}&amp;gt;}value).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Even this is not working &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 10:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375222#M419867</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2017-10-30T10:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375223#M419868</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;You won't be able to sum a string and num. The only way it will work is to do you calculation first and then add the special character on afterwards. So above would be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(sum({[state1]&amp;lt;F3={1}&amp;gt;}value1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum(F3={2}&amp;gt;}value)&amp;amp;'*')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375223#M419868</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2017-10-30T11:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375224#M419869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The one you have written will append for entire expression. * has to come up only when F3 is 1. I cannot append * for entire expression. Would need only for this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({[state1]&amp;lt;F3={1}&amp;gt;}value1)&amp;amp;'*'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375224#M419869</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2017-10-30T11:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375225#M419870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this data that you have provided&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10.6667px; font-family: inherit;"&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[&lt;BR /&gt;F1, F2.F3&lt;BR /&gt;abc, 9*,1&lt;BR /&gt;def, 10,2&lt;BR /&gt;ab, 100,2&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What should the final output look like?&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375225#M419870</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-30T11:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375226#M419871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it would I was just using your example, but as I was trying to explained in the pervious post, if you flag the fields in the data that have a special character you can then us an if statement to add the * back in where need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(sum({[state1]&amp;lt;F3={1}&amp;gt;}value1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum(F3={2}&amp;gt;}value)&amp;amp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Special= 1,'*')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;you may need something like &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(ONLY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Special)= 1,'*') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375226#M419871</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2017-10-30T11:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375227#M419872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Something like this. Final output filed will have both number and strings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181441_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375227#M419872</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2017-10-30T11:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375228#M419873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if the data would have looked like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10.6667px; font-family: inherit;"&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[&lt;BR /&gt;F1, F2.F3&lt;BR /&gt;abc, 9*,50&lt;BR /&gt;def, 10,2&lt;BR /&gt;ab, 100,2&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it would be 450* for abc? If that is true... may be you need this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KeepChar(F2, '0123456789') * F3 &amp;amp; PurgeChar(F2, '0123456789')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375228#M419873</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-30T11:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with 2 different data types</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375229#M419874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are alternate states too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;&lt;STRONG style="font-family: inherit; font-size: 10.66px; font-style: inherit;"&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;[&lt;BR /&gt;F1, F2.F3,F4,&lt;BR /&gt;abc, 9*,1,9&lt;BR /&gt;def, 10,2,10&lt;BR /&gt;ab, 100,2,100&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F3 field tells if there is a special character and F4 is removing the special character&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there are alternate states I cannot use if condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum({[state1]&amp;lt;F3={1}&amp;gt;}F4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum(({[state2]&amp;lt;F3={2}&amp;gt;}F2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Now till hear i'm able to display without * by converting to number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Now if i have to concatenate * to the above expression, is it feasible?I have to concatenate to the first statement. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Which means &lt;SPAN style="font-size: 8pt;"&gt;sum({[state1]&amp;lt;F3={1}&amp;gt;}F4)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-2-different-data-types/m-p/1375229#M419874</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2017-10-30T11:30:15Z</dc:date>
    </item>
  </channel>
</rss>

