<?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: Logic for a Column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576713#M442596</link>
    <description>&lt;P&gt;&lt;SPAN&gt;The blanks are for IDs that never have a booked status, and the zeroes are for IDs that have a booked status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Exactly as above...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 05:09:22 GMT</pubDate>
    <dc:creator>santhana</dc:creator>
    <dc:date>2019-05-06T05:09:22Z</dc:date>
    <item>
      <title>Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576665#M442590</link>
      <description>&lt;P&gt;&amp;nbsp;Hello Friends&lt;/P&gt;&lt;P&gt;I have 2 columns Status and ID.&lt;/P&gt;&lt;P&gt;ID is not unique , it repeats with different Status.&lt;/P&gt;&lt;P&gt;When Status is Booked , I need to put '1' in new column- Indicator&amp;nbsp; .&amp;nbsp; and 0 for all other status having the same ID.&lt;/P&gt;&lt;P&gt;If status is other then Booked , then Blank as Indicator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Basically it is like a V look Up of Excel.&amp;nbsp; &amp;nbsp; Keeping all the ID;s which are Booked in one column and searching for the same ID's in entire ID column for any matches.&amp;nbsp; But I am finding difficult to implement in QlikView)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached raw data and output in separate sheet in the excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Santhana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 04:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576665#M442590</guid>
      <dc:creator>santhana</dc:creator>
      <dc:date>2019-05-06T04:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576673#M442591</link>
      <description>&lt;P&gt;Did you attach the correct excel sample file? If not, then please explain your data. The ID /Ticket No seems unique and you have no Status column containing the value Booked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 311px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11442iEBE040746D73AAC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2019 19:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576673#M442591</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-05-05T19:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576710#M442593</link>
      <description>&lt;P&gt;Dear Vegar&lt;/P&gt;&lt;P&gt;Thanks for your revert and pointing out the error.&lt;/P&gt;&lt;P&gt;My bad. I had uploaded the wrong excel.&amp;nbsp; I have attached the correct one now named Test_new.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santana&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 04:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576710#M442593</guid>
      <dc:creator>santhana</dc:creator>
      <dc:date>2019-05-06T04:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576711#M442594</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;...&amp;nbsp;0 for all other status having the same ID.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;...&lt;SPAN&gt;If status is other then Booked , then Blank as Indicator.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am not quite sure what you mean. The blanks are for IDs that never have a booked status, and the zeroes are for IDs that have a booked status?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 05:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576711#M442594</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-05-06T05:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576712#M442595</link>
      <description>Try something like this:&lt;BR /&gt;Load&lt;BR /&gt;ID,&lt;BR /&gt;Status&lt;BR /&gt;1 as Indicator&lt;BR /&gt;From EXCEL&lt;BR /&gt;Where Status='Booked'&lt;BR /&gt;;&lt;BR /&gt;Load&lt;BR /&gt;ID,&lt;BR /&gt;Status&lt;BR /&gt;0 as Indicator&lt;BR /&gt;From EXCEL&lt;BR /&gt;Where EXISTS(ID) and&lt;BR /&gt;Status&amp;lt;&amp;gt;'Booked'&lt;BR /&gt;;&lt;BR /&gt;Load&lt;BR /&gt;ID,&lt;BR /&gt;Status&lt;BR /&gt;'blank' as Indicator&lt;BR /&gt;From EXCEL&lt;BR /&gt;Where not EXISTS(ID)&lt;BR /&gt;;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 May 2019 05:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576712#M442595</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-05-06T05:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576713#M442596</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The blanks are for IDs that never have a booked status, and the zeroes are for IDs that have a booked status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Exactly as above...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 05:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576713#M442596</guid>
      <dc:creator>santhana</dc:creator>
      <dc:date>2019-05-06T05:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576715#M442597</link>
      <description>&lt;P&gt;Like this perhaps:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAP_BOOKED:
Mapping Load ID, 0
From Test_new.xlsx
(ooxml, embedded labels, table is Raw)
Where Status = 'Booked';

RESULT:
LOAD ID, 
     Status, 
	 If(Status = 'Booked', 1, 
		ApplyMap('MAP_BOOKED', ID, null())
	) as Indicator
FROM Test_new.xlsx
(ooxml, embedded labels, table is Raw)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 May 2019 05:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576715#M442597</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-05-06T05:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576726#M442598</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/10441"&gt;@santhana&lt;/a&gt;&amp;nbsp;both mine and &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14931"&gt;@jonathandienst&lt;/a&gt;&amp;nbsp;solutions should give you the same output. If we understood your problem correctly please mark the question solved by marking one or both as a correct answer.&lt;/P&gt;&lt;P&gt;If we did no&lt;SPAN&gt;t understand correctly please make a comment and we'll try to adjust our suggestions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Vegar&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 06:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576726#M442598</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-05-06T06:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576729#M442599</link>
      <description>&lt;P&gt;Thanks Vegar and Jonty..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Really appreciate your quick help in understanding the required result and providing the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 06:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1576729#M442599</guid>
      <dc:creator>santhana</dc:creator>
      <dc:date>2019-05-06T06:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for a Column</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1583176#M443057</link>
      <description>&lt;P&gt;Hello Jonty/Vegar&lt;/P&gt;&lt;P&gt;I need to identify&amp;nbsp; Mobile numbers as Repeat if they were available upto end of previous quarter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: if mobile no in May is also available before 31st March (upto last Quarter)&amp;nbsp; then it is repeat. Else fresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am able to achieve the above , by using below code. However its not dynamic for previous selections. Is there any way around to get it for previous years as well. Eg:&amp;nbsp; if we select May 2018 , it should search upto Mar 31st ,2018&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;Mapp_Qtr:&lt;BR /&gt;Mapping&lt;BR /&gt;Load&lt;BR /&gt;Mobile_No,&lt;BR /&gt;'Repeat'&lt;BR /&gt;From&lt;BR /&gt;[C:\.......\QVD\Final\Final.qvd]&lt;BR /&gt;(qvd) where Date&amp;lt;=QuarterStart(today());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Lead,&lt;BR /&gt;Status,&lt;BR /&gt;Quarter,&lt;BR /&gt;Key,&lt;BR /&gt;Month,&lt;BR /&gt;if( Date&amp;gt;=QuarterStart(today()) and Date&amp;lt;=QuarterEnd(today()), ApplyMap('Mapp_Qtr',Mobile_No,'Fresh')) as Lead_Type,&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;From&lt;BR /&gt;[C:\.......\QVD\Final\Final.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhana&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 08:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-for-a-Column/m-p/1583176#M443057</guid>
      <dc:creator>santhana</dc:creator>
      <dc:date>2019-05-22T08:59:55Z</dc:date>
    </item>
  </channel>
</rss>

