<?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: Expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697429#M251886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i choose month showing wrong. when i select 2014, april - showing 2014 - Sept.&lt;/P&gt;&lt;P&gt;Other years are OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/66745_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 11:08:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-15T11:08:10Z</dc:date>
    <item>
      <title>Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697426#M251883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Need help on expression:&lt;/P&gt;&lt;P&gt;I have a date calendar, I want to show Selected Month and Year in two text boxes. Conditions are as below:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;If there is no selection of Year, Month, Day (Default to Current year, Current month in the test boxes)&lt;/LI&gt;&lt;LI&gt;If Year only selected and that is Lessthan current year, show DEC month &amp;amp; Selected Year in boxes.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.g. 2013 selected, show DEC &amp;amp; 2013&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. If Year only selected and that is Current year default to Current month &amp;amp; current year in boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.g. 2014 selected, show Sept &amp;amp; 2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. If Year, Month selected – show as selected in boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. If Day only selected, show the current month and current year in boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. If month only selected, show current year and current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 10:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697426#M251883</guid>
      <dc:creator />
      <dc:date>2014-09-15T10:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697427#M251884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=IF(GetSelectedCount([Invoice Date]) &amp;gt; 0 ,Month([Invoice Date]) &amp;amp; ' ' &amp;amp; Year([Invoice Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetFieldSelections(Year)&amp;lt;Year(Today()),SubField('$(MonthNames)',';',Max(Month)) &amp;amp; ' ' &amp;amp; Year, Month(Today()) &amp;amp; ' ' &amp;amp; Year(Today())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chagne [Invoice Date] to your DateFieldName&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 10:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697427#M251884</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-15T10:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697428#M251885</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. = 'Year: ' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt;&amp;gt; 0 and getselectedcount(Year) = 0, Year(Today()), if(GetSelectedCount(Year) = 0, Year(Today()), Max(Year)) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;2. = 'Month: ' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt;&amp;gt; 0 and getselectedcount(Month) = 0, Month(Today()), if(Max(Year) = Year(Today()), Month(Today()), Max(Month)) ) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 10:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697428#M251885</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-09-15T10:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697429#M251886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i choose month showing wrong. when i select 2014, april - showing 2014 - Sept.&lt;/P&gt;&lt;P&gt;Other years are OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/66745_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697429#M251886</guid>
      <dc:creator />
      <dc:date>2014-09-15T11:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697430#M251887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I realised that you want two different text box ... use this...&lt;/P&gt;&lt;P&gt;=IF(GetSelectedCount([Invoice Date]) &amp;gt; 0 ,Month([Invoice Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetFieldSelections(Year)&amp;lt;Year(Today()),SubField('$(MonthNames)',';',Max(Month)), Month(Today())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(GetSelectedCount([Invoice Date]) &amp;gt; 0 ,Year([Invoice Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetFieldSelections(Year)&amp;lt;Year(Today()),Year,Year(Today())))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697430#M251887</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-15T11:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697431#M251888</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;Above combination u didn't mention &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ..&lt;/P&gt;&lt;P&gt;For that, month will display "Dec" ? If so,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt; = 'Month: ' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt;&amp;gt; 0 and getselectedcount(Month) = 0 and getselectedCount(Year) = 0, Month(Today()), if(Max(Year) = Year(Today()), Month(Today()), Max(Month)) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697431#M251888</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-09-15T11:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697432#M251889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish &amp;amp; Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help. both conditions are working except if i choose 2014 &amp;amp; Month. all time taking Sept - 2014.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/66761_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697432#M251889</guid>
      <dc:creator />
      <dc:date>2014-09-15T11:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697433#M251890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=IF(GetSelectedCount([Invoice Date]) &amp;gt; 0 ,Month([Invoice Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetFieldSelections(Month) &amp;lt;&amp;gt; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetFieldSelections(Year)&amp;lt;Year(Today()),SubField('$(MonthNames)',';',Max(Month)), Month), &lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Today())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(GetSelectedCount([Invoice Date]) &amp;gt; 0 ,Year([Invoice Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetFieldSelections(Year)&amp;lt;Year(Today()),Year,Year(Today())))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697433#M251890</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-15T11:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697434#M251891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish &amp;amp; Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help. both conditions are working except if i choose 2014 &amp;amp; Month. all time taking Sept - 2014.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697434#M251891</guid>
      <dc:creator />
      <dc:date>2014-09-15T11:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697435#M251892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i dont choose anything month is blank, else everything working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/66762_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697435#M251892</guid>
      <dc:creator />
      <dc:date>2014-09-15T11:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697436#M251893</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= 'Month: ' &amp;amp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;lt;&amp;gt; 0 and getselectedcount(Month) = 0 and getselectedCount(Year) = 0, Month(Today()), if(Max(Year) = Year(Today()) and getselectedcount(Month)=0, Month(Today()), Max(Month)) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697436#M251893</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-09-15T11:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697437#M251894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=IF(GetSelectedCount([Invoice Date]) &amp;gt; 0 ,Month([Invoice Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetSelectedCount(Year) = 0 and GetSelectedCount(Month) = 0, Month(Today()),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetSelectedCount(Year) &amp;gt; 0 and GetSelectedCount(Year) = Year(Today()), Month(Today()), &lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetSelectedCount(Year) &amp;gt; 0 and GetSelectedCount(Year) &amp;lt; Year(Today()), SubField('$(MonthNames)',';',Max(Month))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697437#M251894</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-15T11:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697438#M251895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;Thanks a million, it is working. Can I move these 2 values in to 2 variables? basically I needs get count of a field based on the 2 variables.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697438#M251895</guid>
      <dc:creator />
      <dc:date>2014-09-15T11:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697439#M251896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can... Kindly close this thread by selecting appropriate answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/697439#M251896</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-15T11:47:45Z</dc:date>
    </item>
  </channel>
</rss>

