<?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: Re: Determine multiple fields from a single field based on condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753357#M268453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to load like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw:&lt;/P&gt;&lt;P&gt;LOAD Value,&lt;/P&gt;&lt;P&gt;Date(Date#(Week1,'MM/DD/YYYY'),'MM/DD/YYYY') AS Week1Date,&lt;/P&gt;&lt;P&gt;Date(Date#(Week2,'MM/DD/YYYY'),'MM/DD/YYYY') AS Week2Date,&lt;/P&gt;&lt;P&gt;Week(Date(Date#(Week1,'MM/DD/YYYY'),'MM/DD/YYYY')) AS Week1,&lt;/P&gt;&lt;P&gt;Week(Date(Date#(Week2,'MM/DD/YYYY'),'MM/DD/YYYY')) AS Week2;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Value, Week1, Week2&lt;/P&gt;&lt;P&gt;-21141.5, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-19016.3, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-16038.1, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-15103, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;-12471.5, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;-11572, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-11454.9, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-10400.5, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-10331.9, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;-10136.9, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;-9894.09, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-9787.82, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-9787.82, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-9148.38, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;-8858.29, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-8178.99, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-7805.58, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-7507.92, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-7301.05, 10/27/2014 ,10/6/2014&lt;/P&gt;&lt;P&gt;-6702.96, 11/02/2014, 11/30/2014&lt;/P&gt;&lt;P&gt;-6566.11, 11/02/2014, 11/30/2014&lt;/P&gt;&lt;P&gt;-5860.31, 11/02/2014, 11/30/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Value, Week1, Week2, Week1Date, Week2Date,&lt;/P&gt;&lt;P&gt;if( (Week1 = Week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-1 ),Value) as 'Field1',&lt;/P&gt;&lt;P&gt;if( (Week1 = week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-2 ),Value) as 'Field2',&lt;/P&gt;&lt;P&gt;if( (Week1 = week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-3 ),Value) as 'Field3',&lt;/P&gt;&lt;P&gt;if( (Week1 = week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-4 ),Value) as 'Field4',&lt;/P&gt;&lt;P&gt;if( (Week1 = week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-5 ),Value) as 'Field5'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Raw;&lt;/P&gt;&lt;P&gt;DROP Table Raw;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="70354" alt="FeieldExtrs.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70354_FeieldExtrs.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 12:20:59 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-11-03T12:20:59Z</dc:date>
    <item>
      <title>Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753349#M268445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a table with 3 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="233"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Value&lt;/TD&gt;&lt;TD width="75"&gt;Week1&lt;/TD&gt;&lt;TD width="94"&gt;Week2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-21141.5&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-19016.3&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/20/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-16038.1&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/13/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-15103&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/6/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-12471.5&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9/29/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-11572&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-11454.9&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/20/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-10400.5&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/13/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-10331.9&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/6/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-10136.9&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9/29/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-9894.09&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-9787.82&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/20/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-9787.82&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/13/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-9148.38&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/6/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-8858.29&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/20/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-8178.99&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-7805.58&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/20/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-7507.92&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/13/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-7301.05&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/6/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-6702.96&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9/29/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-6566.11&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-5860.31&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/27/2014&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10/20/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to determine the field value in to 5 different fields based on below condition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; width: 488px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG style=": ; color: #339966; font-size: 8pt;"&gt;Field1 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8pt; color: #339966;"&gt;&lt;STRONG&gt;Field2 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8pt; color: #339966;"&gt;&lt;STRONG&gt;Field3 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8pt; color: #339966;"&gt;&lt;STRONG&gt;Field4 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style=": ; color: #339966; font-size: 8pt;"&gt;Field5 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style=": ; color: #339966; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style=": ; color: #339966; font-size: 8pt;"&gt;And my current week is 11/3/2014 but i have to maintain dynamic.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Please help me to create the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Varun&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 10:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753349#M268445</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2014-11-03T10:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753350#M268446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Date(Week1) = Date(Today()-1) and Date(Week2) = Date(Today()-1),'Field1',&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Date(Week1) = Date(Today()-1) and Date(Week2) = Date(Today()-2),'Field2',&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Date(Week1) = Date(Today()-1) and Date(Week2) = Date(Today()-3),'Field3',&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Date(Week1) = Date(Today()-1) and Date(Week2) = Date(Today()-4),'Field4',&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Date(Week1) = Date(Today()-1) and Date(Week2) = Date(Today()-5),'Field5'))))) as Field;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(Week1,'MM/DD/YYYY')) as Week1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(Week2,'MM/DD/YYYY')) as Week2&lt;/P&gt;&lt;P&gt;From TableName;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 10:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753350#M268446</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-03T10:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753351#M268447</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;Try to load table like this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw:&lt;/P&gt;&lt;P&gt;LOAD Value,&lt;/P&gt;&lt;P&gt;Date(Date#(Week1,'MM/DD/YYYY'),'MM/DD/YYYY') AS Week1,&lt;/P&gt;&lt;P&gt;Date(Date#(Week2,'MM/DD/YYYY'),'MM/DD/YYYY') AS Week2;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Value, Week1, Week2&lt;/P&gt;&lt;P&gt;-21141.5, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-19016.3, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-16038.1, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-15103, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;-12471.5, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;-11572, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-11454.9, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-10400.5, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-10331.9, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;-10136.9, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;-9894.09, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-9787.82, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-9787.82, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-9148.38, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;-8858.29, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-8178.99, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-7805.58, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-7507.92, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-7301.05, 10/27/2014 ,10/6/2014&lt;/P&gt;&lt;P&gt;-6702.96, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;-6566.11, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-5860.31, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Value, Week1, Week2,&lt;/P&gt;&lt;P&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-1) ),'Field1',&lt;/P&gt;&lt;P&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-2) ),'Field2',&lt;/P&gt;&lt;P&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-3) ),'Field3',&lt;/P&gt;&lt;P&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-4) ),'Field4',&lt;/P&gt;&lt;P&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-5) ),'Field5'&lt;/P&gt;&lt;P&gt;))))) as NewFlag&lt;/P&gt;&lt;P&gt;Resident Raw;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Raw;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the data you provide it is for previous month check this in current month data in your system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 10:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753351#M268447</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-03T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753352#M268448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand and Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks for ur super fast reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I need the result like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="20" width="64"&gt;-21141.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-11572&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-9894.09&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-8178.99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-6566.11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;Field1 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="20" width="64"&gt;-19016.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-11454.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-9787.82&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-8858.29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-7805.58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-5860.31&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Field2 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="20" width="64"&gt;-16038.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-10400.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-9787.82&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-7507.92&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Field3 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="20" width="64"&gt;-15103&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-10331.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-9148.38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-7301.05&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Field4 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="64"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="20" width="64"&gt;-12471.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-10136.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;-6702.96&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;Field5 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;Varun&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 11:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753352#M268448</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2014-11-03T11:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753353#M268449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The resultant fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 1&lt;/P&gt;&lt;P&gt;Field 2&lt;/P&gt;&lt;P&gt;Field 3&lt;/P&gt;&lt;P&gt;Field 4&lt;/P&gt;&lt;P&gt;Field 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should be the Field &lt;STRONG&gt;Value based on the above conditions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 11:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753353#M268449</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2014-11-03T11:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753354#M268450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Week1 = Week(Today())-1 and Week2 = Week(Today())-1, 'Field1',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Week1 = Week(Today())-1 and Week2 = Week(Today())-2, 'Field2',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Week1 = Week(Today())-1 and Week2 = Week(Today())-3, 'Field3',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Week1 = Week(Today())-1 and Week2 = Week(Today())-4, 'Field4',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Week1 = Week(Today())-1 and Week2 = Week(Today())-4, 'Field4', 'Field5'))))) as Field;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(Week1,'MM/DD/YYYY')) as Date1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(Date(Date#(Week1,'MM/DD/YYYY'))) as Week1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Date#(Week2,'MM/DD/YYYY')) as Date2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(Date(Date#(Week2,'MM/DD/YYYY'))) as Week2&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Value, Week1, Week2&lt;/P&gt;&lt;P&gt;&amp;nbsp; -21141.5, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -19016.3, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -16038.1, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -15103,&amp;nbsp;&amp;nbsp; 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -12471.5, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -11572,&amp;nbsp;&amp;nbsp; 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -11454.9, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -10400.5, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -10331.9, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -10136.9, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -9894.09, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -9787.82, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -9787.82, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -9148.38, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -8858.29, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -8178.99, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -7805.58, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -7507.92, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -7301.05, 10/27/2014 ,10/6/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -6702.96, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -6566.11, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; -5860.31, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 11:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753354#M268450</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-03T11:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753355#M268451</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;Ok then in place of&amp;nbsp; 'Field1' use Value field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Final:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Value, Week1, Week2,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-1) ),Value,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-2) ),Value,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-3) ),Value,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-4) ),Value,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if( (Week1 = Date( WeekStart(&amp;nbsp; Today() )-1) and Week2 = Date( WeekStart(&amp;nbsp; Today() )-5) ),Value&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))))) as NewFlag&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Raw;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Can you fill this formulas with Current Week values for all -1,-2,-3,-4, and -5 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #339966; font-size: 8pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Field1 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #339966; font-size: 8pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Field2 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #339966; font-size: 8pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Field3 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #339966; font-size: 8pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Field4 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 0px solid black; font-style: inherit; font-family: inherit;" valign="bottom" width="488"&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;&lt;STRONG&gt;Field5 = Select where WEEK1 = Current Week -1 &amp;amp;&amp;nbsp; WEEK2 = Current Week - 5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #339966;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 11:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753355#M268451</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-03T11:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753356#M268452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a result table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="320"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Field 1&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Field 2&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Field3&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Field4&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Field 5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="64"&gt;-21141.5&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-19016.3&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-16038.1&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-15103&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-12471.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" style="font-style: inherit;" width="64"&gt;-11572&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;-11454.9&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-10400.5&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-10331.9&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-10136.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" style="font-style: inherit;" width="64"&gt;-9894.09&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;-9787.82&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-9787.82&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-9148.38&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-6702.96&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" style="font-style: inherit;" width="64"&gt;-8178.99&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;-8858.29&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-7507.92&lt;/TD&gt;&lt;TD class="xl66" style="font-style: inherit;" width="64"&gt;-7301.05&lt;/TD&gt;&lt;TD style="font-style: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="20" style="font-style: inherit;" width="64"&gt;-6566.11&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;-7805.58&lt;/TD&gt;&lt;TD style="font-style: inherit;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;-5860.31&lt;/TD&gt;&lt;TD style="font-style: inherit;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use field1.....Field 5 in some computations&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 12:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753356#M268452</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2014-11-03T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753357#M268453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to load like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw:&lt;/P&gt;&lt;P&gt;LOAD Value,&lt;/P&gt;&lt;P&gt;Date(Date#(Week1,'MM/DD/YYYY'),'MM/DD/YYYY') AS Week1Date,&lt;/P&gt;&lt;P&gt;Date(Date#(Week2,'MM/DD/YYYY'),'MM/DD/YYYY') AS Week2Date,&lt;/P&gt;&lt;P&gt;Week(Date(Date#(Week1,'MM/DD/YYYY'),'MM/DD/YYYY')) AS Week1,&lt;/P&gt;&lt;P&gt;Week(Date(Date#(Week2,'MM/DD/YYYY'),'MM/DD/YYYY')) AS Week2;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Value, Week1, Week2&lt;/P&gt;&lt;P&gt;-21141.5, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-19016.3, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-16038.1, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-15103, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;-12471.5, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;-11572, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-11454.9, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-10400.5, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-10331.9, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;-10136.9, 10/27/2014, 9/29/2014&lt;/P&gt;&lt;P&gt;-9894.09, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-9787.82, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-9787.82, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-9148.38, 10/27/2014, 10/6/2014&lt;/P&gt;&lt;P&gt;-8858.29, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-8178.99, 10/27/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;-7805.58, 10/27/2014, 10/20/2014&lt;/P&gt;&lt;P&gt;-7507.92, 10/27/2014, 10/13/2014&lt;/P&gt;&lt;P&gt;-7301.05, 10/27/2014 ,10/6/2014&lt;/P&gt;&lt;P&gt;-6702.96, 11/02/2014, 11/30/2014&lt;/P&gt;&lt;P&gt;-6566.11, 11/02/2014, 11/30/2014&lt;/P&gt;&lt;P&gt;-5860.31, 11/02/2014, 11/30/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Value, Week1, Week2, Week1Date, Week2Date,&lt;/P&gt;&lt;P&gt;if( (Week1 = Week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-1 ),Value) as 'Field1',&lt;/P&gt;&lt;P&gt;if( (Week1 = week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-2 ),Value) as 'Field2',&lt;/P&gt;&lt;P&gt;if( (Week1 = week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-3 ),Value) as 'Field3',&lt;/P&gt;&lt;P&gt;if( (Week1 = week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-4 ),Value) as 'Field4',&lt;/P&gt;&lt;P&gt;if( (Week1 = week(Date( (&amp;nbsp; Today() )-1)) and Week2 = Week(Date( (&amp;nbsp; Today() )))-5 ),Value) as 'Field5'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Raw;&lt;/P&gt;&lt;P&gt;DROP Table Raw;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="70354" alt="FeieldExtrs.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70354_FeieldExtrs.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 12:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753357#M268453</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-03T12:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753358#M268454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand and Manish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What if my week1 and Week2 is in yyyymm format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201444&amp;nbsp; 44th month of 2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201455 55th month of 2015 etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; where to edit the above script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 12:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753358#M268454</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2014-11-04T12:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Determine multiple fields from a single field based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753359#M268455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;Date(Date#(Week1,'YYYYMM'),'MM/DD/YYYY') AS Week1Date,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;Date(Date#(Week2,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;YYYYMM&lt;/SPAN&gt;'),'MM/DD/YYYY') AS Week2Date,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;Week(Date(Date#(Week1,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;YYYYMM&lt;/SPAN&gt;'),'MM/DD/YYYY')) AS Week1,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;Week(Date(Date#(Week2,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;YYYYMM&lt;/SPAN&gt;'),'MM/DD/YYYY')) AS Week2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 12:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-multiple-fields-from-a-single-field-based-on-condition/m-p/753359#M268455</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-04T12:16:11Z</dc:date>
    </item>
  </channel>
</rss>

