<?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 Place the value of a field based on its month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102827#M765110</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 need to perform the following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Key&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Months&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Target&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Hired in Current Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Adv Hired in Last Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Adv Hired in Current Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jan&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Feb&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="; color: #99cc00;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Year=2018, Month = Feb, Target=8, if the number of candidates are hired in the same month (Feb), then my count(ID) will be calculated in 'Hired in Current Month' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the candidates join before Feb (if they join in Jan), then i will calculate the count(ID) in 'Adv Hired in Last Month'. And the same Count(ID) value should be reflected in Jan month for 'Adv Hired in Current Month'. If the candidates join in Dec then the value of Feb month 'Adv Hired in Last Month' should be reflected in Dec month 'Advanced Hired in Current Month' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Place the value of a field based on its month</title>
      <link>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102827#M765110</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 need to perform the following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Key&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Months&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Target&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Hired in Current Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Adv Hired in Last Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Adv Hired in Current Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jan&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Feb&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="; color: #99cc00;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Year=2018, Month = Feb, Target=8, if the number of candidates are hired in the same month (Feb), then my count(ID) will be calculated in 'Hired in Current Month' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the candidates join before Feb (if they join in Jan), then i will calculate the count(ID) in 'Adv Hired in Last Month'. And the same Count(ID) value should be reflected in Jan month for 'Adv Hired in Current Month'. If the candidates join in Dec then the value of Feb month 'Adv Hired in Last Month' should be reflected in Dec month 'Advanced Hired in Current Month' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102827#M765110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Place the value of a field based on its month</title>
      <link>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102828#M765111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aravind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, that should not be a great issue - you do have one line per month and you have the "hiring date" in every line, do you? Then you can, depending on that, generate either the one or the other field.&lt;/P&gt;&lt;P&gt;If you sort the table in a RESIDENT LOAD (using the ORDER BY clause), you can use PEEK() to "look up" the record above to see how what figure is in the field "hired in current month" and put that in the field "hired in prior month".&lt;/P&gt;&lt;P&gt;(use a tablebox on the surface and set the sorting to "LOAD order (original)" on the GUI to check that your sorting is correct and the figures are really calculated as they are supposed to be)&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 06:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102828#M765111</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2018-07-03T06:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Place the value of a field based on its month</title>
      <link>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102829#M765112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Friedrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry i couldn't understand your statement. Can you explain me with an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 07:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102829#M765112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-03T07:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Place the value of a field based on its month</title>
      <link>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102830#M765113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some more sample data and expected results? It is not clear what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 09:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102830#M765113</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2018-07-03T09:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Place the value of a field based on its month</title>
      <link>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102831#M765114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arjun,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I need to create an expression for 'Adv Hired from from current month' field. It is calculated based on 'adv hired from last month'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This is the logic for 'adv hired from last month' field:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If Candidates ( Candidate refers to the IDs) who need to join by the month of Feb 2018 join before the month of Feb (say Jan according to the below output), then the count of candidates will be calculated for this condition. This whole logic refers to 'Adv hired from Last month'. In terms of expression: (if Month([Joining date])&amp;lt;Month([Transaction_Date]),Sum(Aggr(Count(ID),Key))). Here we calculate the candidates who join before the Transaction date based on a particular key. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value for '&lt;STRONG&gt;Adv hired from current month&lt;/STRONG&gt;' is obtained based on the &lt;STRONG&gt;Adv hired from last month&lt;/STRONG&gt; field. Candidates who joined on Jan instead of Feb according to the transaction date are fallen under the &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Adv hired from current month &lt;/STRONG&gt;&lt;/SPAN&gt;field. As you can see the sample output, The Feb month &lt;STRONG style="font-size: 13.3333px;"&gt;Adv hired from last month&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; field value and Jan month &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Adv hired from current month &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;field value are equal (Since 10 candidates who should join on Feb have joined on Jan)&lt;/SPAN&gt; &lt;/SPAN&gt; I need help to create an expression for this field. I have attached the dataset and also the sample output below. Please provide a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="206798" alt="Capture.PNG" class="jive-image image-1" height="56" src="https://community.qlik.com/legacyfs/online/206798_Capture.PNG" style="height: 55.7812px; width: 787px;" width="787" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 09:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102831#M765114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-03T09:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Place the value of a field based on its month</title>
      <link>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102832#M765115</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 guess you can try with first sorted value function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 14:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Place-the-value-of-a-field-based-on-its-month/m-p/102832#M765115</guid>
      <dc:creator>imhappiee</dc:creator>
      <dc:date>2018-07-03T14:57:16Z</dc:date>
    </item>
  </channel>
</rss>

