<?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: Question Expression  Syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495108#M480402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum({$&amp;lt;First_Bkg_Dt = {"&amp;gt;=$(=MakeDate(Bkg_Yr, min(Bkg_Mo),1)"}&amp;gt;} Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should produce a month of "1" if no month is selected (since all values are between 1 and 12) and a value of the selected month if month is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not going to return anything if a year isn't selected, however.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 19:10:28 GMT</pubDate>
    <dc:creator>greg-anderson</dc:creator>
    <dc:date>2013-11-26T19:10:28Z</dc:date>
    <item>
      <title>Question Expression  Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495105#M480399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two Data Elements - Bkg_Yr, Bkg_Mth which User can select on.&amp;nbsp; I have a third field First_Bkg_Dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I create an expression&amp;nbsp; with this definition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if user has not selected Bkg_Mo then&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;First_Bkg_Dt = {"&amp;gt;=$(=MakeDate(Bkg_Yr,1,1)"}&amp;gt;} Revenue)&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;First_Bkg_Dt = {"&amp;gt;=$(=MakeDate(Bkg_Yr,Bkg_Mo,1)"}&amp;gt;} Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In English this is what I want to achieve:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If User has selected Bkg_Yr as 2012 and Bkg_Mo as 5 then sum(Revenue) of records with the First_Bkg_Dt &amp;gt; 2012-05-01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If User has selected Bkg_Yr as 2012 and Bkg_Mo not selected then sum(Revenue) of records with the First_Bkg_Dt &amp;gt; 2012-01-01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 19:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495105#M480399</guid>
      <dc:creator />
      <dc:date>2013-11-26T19:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question Expression  Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495106#M480400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Bkg_Mo&lt;/SPAN&gt;), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({$&amp;lt;First_Bkg_Dt = {"&amp;gt;=$(=MakeDate(Bkg_Yr,Bkg_Mo,1)"}&amp;gt;} Revenue)&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({$&amp;lt;First_Bkg_Dt = {"&amp;gt;=$(=MakeDate(Bkg_Yr,1,1)"}&amp;gt;} Revenue)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 19:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495106#M480400</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2013-11-26T19:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Question Expression  Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495107#M480401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({$&amp;lt;First_Bkg_Dt = {"&amp;gt;=$(=MakeDate(Bkg_Yr,min(Bkg_Mo),1)"}&amp;gt;} Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 19:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495107#M480401</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-26T19:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Question Expression  Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495108#M480402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum({$&amp;lt;First_Bkg_Dt = {"&amp;gt;=$(=MakeDate(Bkg_Yr, min(Bkg_Mo),1)"}&amp;gt;} Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should produce a month of "1" if no month is selected (since all values are between 1 and 12) and a value of the selected month if month is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not going to return anything if a year isn't selected, however.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 19:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495108#M480402</guid>
      <dc:creator>greg-anderson</dc:creator>
      <dc:date>2013-11-26T19:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Question Expression  Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495109#M480403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 21:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-Expression-Syntax/m-p/495109#M480403</guid>
      <dc:creator />
      <dc:date>2013-11-26T21:10:52Z</dc:date>
    </item>
  </channel>
</rss>

