<?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 Triming repeated data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Triming-repeated-data/m-p/159978#M34394</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 am importing some tables from a DAtabase.&lt;/P&gt;&lt;P&gt;In one of the tables there is attribute 'xyz'&lt;/P&gt;&lt;P&gt;Now, This Attribute has values as multiple numbers followed by comma(,) and some of them may have the data&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;235,235,235&lt;/P&gt;&lt;P&gt;211,222,275,&lt;/P&gt;&lt;P&gt;256,289&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the first row(235,235,235) IN a Pivot table I would like to view it only as '235' without affecting the value of other rows.&lt;/P&gt;&lt;P&gt;i.e row (211,222,275) should appear as it is.&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 &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 May 2010 06:08:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-21T06:08:05Z</dc:date>
    <item>
      <title>Triming repeated data</title>
      <link>https://community.qlik.com/t5/QlikView/Triming-repeated-data/m-p/159978#M34394</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 am importing some tables from a DAtabase.&lt;/P&gt;&lt;P&gt;In one of the tables there is attribute 'xyz'&lt;/P&gt;&lt;P&gt;Now, This Attribute has values as multiple numbers followed by comma(,) and some of them may have the data&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;235,235,235&lt;/P&gt;&lt;P&gt;211,222,275,&lt;/P&gt;&lt;P&gt;256,289&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the first row(235,235,235) IN a Pivot table I would like to view it only as '235' without affecting the value of other rows.&lt;/P&gt;&lt;P&gt;i.e row (211,222,275) should appear as it is.&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 &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 06:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triming-repeated-data/m-p/159978#M34394</guid>
      <dc:creator />
      <dc:date>2010-05-21T06:08:05Z</dc:date>
    </item>
    <item>
      <title>Triming repeated data</title>
      <link>https://community.qlik.com/t5/QlikView/Triming-repeated-data/m-p/159979#M34395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here you go.&lt;/P&gt;&lt;P&gt;Check the attached application.&lt;/P&gt;&lt;P&gt;Your code should be as follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt; Test:&lt;BR /&gt;Load Product,&lt;BR /&gt;subfield(Sales,',') as Sales_New,&lt;BR /&gt;Sales;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Product, Sales&lt;BR /&gt; a, "235,235,235"&lt;BR /&gt; b, "235,236,237"&lt;BR /&gt; c, "222,222,222"&lt;BR /&gt; d, "222,223,224"&lt;BR /&gt;];&lt;BR /&gt;Test1:&lt;BR /&gt;Load Product,&lt;BR /&gt;if(Peek(Product) = Product and peek(Sales_New) = Sales_New, Sales_New,Sales) as Sales_New1,&lt;BR /&gt;Len(if(Peek(Product) = Product and peek(Sales_New) = Sales_New, Sales_New,Sales)) as Length,&lt;BR /&gt;Sales,&lt;BR /&gt;Sales_New&lt;BR /&gt;Resident Test;&lt;BR /&gt;Drop Table Test;&lt;BR /&gt;Right Join(Test1)&lt;BR /&gt;Load Product,&lt;BR /&gt;Min(Length) as Length&lt;BR /&gt;Resident Test1 group by Product;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;-Peterson&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 06:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triming-repeated-data/m-p/159979#M34395</guid>
      <dc:creator />
      <dc:date>2010-05-21T06:53:45Z</dc:date>
    </item>
    <item>
      <title>Triming repeated data</title>
      <link>https://community.qlik.com/t5/QlikView/Triming-repeated-data/m-p/159980#M34396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;one solution use a if condition but it works for only one selected value as of now&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;assume ur field name is Value&lt;/P&gt;&lt;P&gt;in that write the if condition like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( Value= ' 235 , 235 , 235 ' , left(Value,3) , Value) as Value if u use this logic in script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else it will be like thiis if( Value= ' 235 , 235 , 235 ' , left(Value,3) , Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;check this i hope it is solved..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ajay&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 06:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triming-repeated-data/m-p/159980#M34396</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-05-21T06:54:29Z</dc:date>
    </item>
  </channel>
</rss>

