<?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 Help with if Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525530#M196423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help with setting a "default" clear selection for an if statement. I have a variable called vWeek which is assigned the following value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Week = '' ,Week(Today()),Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Week" is a listbox populated with the weeks of the year currently running from week 31 - 46.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to display the selected week value in a textbox. The above formula shows the week value e.g. 43, in the textbox when week 43 was selected in the listbox, but how do I show the current week in the textbox if no week was selected in the listbox. I basically want to do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If nothing selected in the week listbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Week = "Nothing Selected", Show current week, else show week selected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Week = "Nothing Selected", Week(Today()), Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 11:33:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-14T11:33:29Z</dc:date>
    <item>
      <title>Help with if Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525530#M196423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help with setting a "default" clear selection for an if statement. I have a variable called vWeek which is assigned the following value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Week = '' ,Week(Today()),Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Week" is a listbox populated with the weeks of the year currently running from week 31 - 46.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to display the selected week value in a textbox. The above formula shows the week value e.g. 43, in the textbox when week 43 was selected in the listbox, but how do I show the current week in the textbox if no week was selected in the listbox. I basically want to do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If nothing selected in the week listbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Week = "Nothing Selected", Show current week, else show week selected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Week = "Nothing Selected", Week(Today()), Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 11:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525530#M196423</guid>
      <dc:creator />
      <dc:date>2013-11-14T11:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525531#M196424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if(GetSelectedCount( Week ) = 1, Week, Week(today()) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 11:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525531#M196424</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-14T11:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525532#M196425</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(GetfieldSelections(Week) = 0,Week(Today()),Maxstring(Week));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 11:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525532#M196425</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-11-14T11:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525533#M196426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works brilliantly. Exactly what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Cobus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 11:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525533#M196426</guid>
      <dc:creator />
      <dc:date>2013-11-14T11:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525534#M196427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi This will work&lt;/P&gt;&lt;P&gt;ListWeek=1,2,3,4,5,6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetfieldSelections(ListWeek) = 0,Week(Today()),Maxstring(ListWeek))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 11:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-Statement/m-p/525534#M196427</guid>
      <dc:creator />
      <dc:date>2013-11-14T11:47:18Z</dc:date>
    </item>
  </channel>
</rss>

