<?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: If expression current selection month &amp;lt; expression current selection month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-expression-current-selection-month-lt-expression-current/m-p/749136#M1033478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Gysbert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use 'Peil_datum' as the dimension where users can select a month in a listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Listbox.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75905_Listbox.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all I need to do is replace 'Month' with 'Peil_datum' in my situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sijmen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2015 11:50:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-22T11:50:20Z</dc:date>
    <item>
      <title>If expression current selection month &lt; expression current selection month</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-current-selection-month-lt-expression-current/m-p/749134#M1033476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having troubles with creating a formula when a expression based of the current selected Month is greater then the same expression based of the current selected Month - 1 (previous Month), the object shows a green icon or a red icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Icon with colors I can figure out, but Im stuck at the current month &amp;gt; previous month part.&lt;/P&gt;&lt;P&gt;This is what it approx. should look like, but cant seem to get the formula to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=I&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'A'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}Project_Days_waiting&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;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'A'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Project_date_start&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;BR /&gt; &amp;gt;&lt;BR /&gt;&lt;STRONG&gt; &lt;/STRONG&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;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'A'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}Project_Days_waiting&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;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'A'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Project_date_start&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) -previous month,'Green icon'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'Red icon')) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously the -previous month code part is wrong, but thats my question...what is the correct code in this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sijmen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 11:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-current-selection-month-lt-expression-current/m-p/749134#M1033476</guid>
      <dc:creator />
      <dc:date>2015-01-22T11:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: If expression current selection month &lt; expression current selection month</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-current-selection-month-lt-expression-current/m-p/749135#M1033477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on what kind of month field you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe &lt;/P&gt;&lt;P&gt;=If(Sum({&amp;lt;Type={'A'}&amp;gt;}Project_Days_waiting)/Sum({&amp;lt;Type={'A'}&amp;gt;}Project_date_start) &lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({&amp;lt;Type={'A'}&amp;gt;}Project_Days_waiting)/Sum({&amp;lt;Type={'A'}&amp;gt;}Project_date_start) &lt;/P&gt;&lt;P&gt;&amp;nbsp; - &lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({&amp;lt;Type={'A'}, Month={'$(=max(Month)-1)'}&amp;gt;}Project_Days_waiting)/Sum({&amp;lt;Type={'A'}, Month={'$(=max(Month)-1)'}&amp;gt;}Project_date_start),&lt;/P&gt;&lt;P&gt; 'Green icon',&lt;/P&gt;&lt;P&gt; 'Red icon'&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 11:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-current-selection-month-lt-expression-current/m-p/749135#M1033477</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-01-22T11:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: If expression current selection month &lt; expression current selection month</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-current-selection-month-lt-expression-current/m-p/749136#M1033478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Gysbert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use 'Peil_datum' as the dimension where users can select a month in a listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Listbox.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75905_Listbox.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all I need to do is replace 'Month' with 'Peil_datum' in my situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sijmen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 11:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-current-selection-month-lt-expression-current/m-p/749136#M1033478</guid>
      <dc:creator />
      <dc:date>2015-01-22T11:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: If expression current selection month &lt; expression current selection month</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-current-selection-month-lt-expression-current/m-p/749137#M1033479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved this by creating 2 variables in the document and using the 2 variables in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;vSelectedYearMonth&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Num&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: blue;"&gt;If&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: blue;"&gt;Max&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Peil_Jaar_Maand&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;) &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: blue;"&gt;Today&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;(), &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: blue;"&gt;Today&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;(), &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: blue;"&gt;Max&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Peil_Jaar_Maand&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;)))&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 7.5pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;vPrevSelectedYearMonth&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: blue;"&gt;num&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;((&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;SPAN style="color: gray; font-size: 12pt;"&gt;VSelectedYearMonth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;)-1)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 7.5pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Use this part in the expression.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: NL; color: #000000; font-size: 12pt; mso-ansi-language: NL; mso-fareast-theme-font: minor-latin; font-family: 'Times New Roman','serif'; mso-fareast-font-family: Calibri;"&gt;{&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Peil_Jaar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;SPAN style="color: gray; font-size: 12pt;"&gt;$(=Year(VPrevSelectedYearMonth))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;} , &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: maroon;"&gt;Peil_Maand&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;SPAN style="color: gray; font-size: 12pt;"&gt;$(=Month(VPrevSelectedYearMonth))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Sijmen&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 13:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-current-selection-month-lt-expression-current/m-p/749137#M1033479</guid>
      <dc:creator />
      <dc:date>2015-01-22T13:01:29Z</dc:date>
    </item>
  </channel>
</rss>

