<?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 alt() uses? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946486#M949440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;alt(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;case1[ , case2 , case3 , ...] , else&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;) alt function can returns the first of the&amp;nbsp; parameter that has valid number presentation its ok. i have doubt ,it is&amp;nbsp; use for&amp;nbsp; only date or any other number&amp;nbsp; give me one scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Madhu&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2015 07:49:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-17T07:49:08Z</dc:date>
    <item>
      <title>alt() uses?</title>
      <link>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946486#M949440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;alt(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;case1[ , case2 , case3 , ...] , else&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;) alt function can returns the first of the&amp;nbsp; parameter that has valid number presentation its ok. i have doubt ,it is&amp;nbsp; use for&amp;nbsp; only date or any other number&amp;nbsp; give me one scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Madhu&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 07:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946486#M949440</guid>
      <dc:creator />
      <dc:date>2015-12-17T07:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: alt() uses?</title>
      <link>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946487#M949442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's for all cases where you mandatory needs a valid result from an expression - for this is the else-part where you could determine your default-value. For example if you need a division like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(value1) / alt(sum(value2), 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then if sum(value2) is 0 or NULL the whole expression will be NULL unless you caught some unwanted and invalid results with alt() or in other cases with a range-function. It avoids to catch such things with if-loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 07:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946487#M949442</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-17T07:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: alt() uses?</title>
      <link>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946488#M949443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for date here pag 7&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other I sometimes use: when I want to change a null() to a default or 0&lt;/P&gt;&lt;P&gt;alt ($(var), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;useful link&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/819881"&gt;What are the Peek() and Alt() functions used for?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/732083"&gt;Alt function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 08:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946488#M949443</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-17T08:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: alt() uses?</title>
      <link>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946489#M949445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The best example is, suppose is you have a date field with multiple formats then Alt() comes handy to convert it into a common format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;1/1/2015&lt;/P&gt;&lt;P&gt;1-Jan-2015&lt;/P&gt;&lt;P&gt;2015-Jan-1];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now using Alt() we can convert to a common format like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date(Alt(Date#(Date, 'D-MMM-YYYY'), Date#(Date, 'YYYY-MMM-D'), Date#(Date, 'M/D/YYYY'))) AS Date_Formatted&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;1/1/2015&lt;/P&gt;&lt;P&gt;1-Dec-2015&lt;/P&gt;&lt;P&gt;2015-Sep-1];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 08:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946489#M949445</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-12-17T08:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: alt() uses?</title>
      <link>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946490#M949446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to issue: Alt () function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is important to insure that the Default value that you want is the second value in the function, otherwise that will become the first value and will override the value that you want. When using this in script, you should be sure that the value is definitely numeric or it may always be the Default value. if it is numbers that are expressed as text, you can use the num# function to make sure that they are seen as numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to have an example to this issue, let me know, then i send you my example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly&lt;/P&gt;&lt;P&gt;Beck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 08:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/alt-uses/m-p/946490#M949446</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2015-12-17T08:53:17Z</dc:date>
    </item>
  </channel>
</rss>

