<?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: Alt function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805910#M1022694</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;Go through the below posts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikshare.com/using-alt-function-qlikview/"&gt;http://qlikshare.com/using-alt-function-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/04/25/which-conditional-functions-do-you-use"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/04/25/which-conditional-functions-do-you-use&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Av7eN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 05:34:05 GMT</pubDate>
    <dc:creator>aveeeeeee7en</dc:creator>
    <dc:date>2015-03-16T05:34:05Z</dc:date>
    <item>
      <title>Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805908#M1022692</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;What is the use of alt function? Give one example? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 05:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805908#M1022692</guid>
      <dc:creator>prabhas277</dc:creator>
      <dc:date>2015-03-16T05:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805909#M1022693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor409"&gt;&lt;/A&gt;&lt;A name="alt"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;Please refer this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&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;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;The &lt;SPAN class="Bold"&gt;alt&lt;/SPAN&gt; function returns the first of the parameters that has a valid number representation. If no such match is found, the last parameter will be returned. Any number of parameters can be used. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;alt( date#( dat , 'YYYY/MM/DD' ),&lt;/P&gt;&lt;P class="Code"&gt;date#( dat , 'MM/DD/YYYY' ),&lt;/P&gt;&lt;P class="Code"&gt;date#( dat , 'MM/DD/YY' ),&lt;/P&gt;&lt;P class="Code"&gt;'No valid date' )&lt;/P&gt;&lt;P&gt;Will test if the field date contains a date according to any of the three specified date formats. If so, it will return the original string and a valid number representation of a date. If no match is found, the text 'No valid date' will be returned (without any valid number representation). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 05:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805909#M1022693</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-03-16T05:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805910#M1022694</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;Go through the below posts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikshare.com/using-alt-function-qlikview/"&gt;http://qlikshare.com/using-alt-function-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/04/25/which-conditional-functions-do-you-use"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/04/25/which-conditional-functions-do-you-use&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Av7eN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 05:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805910#M1022694</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2015-03-16T05:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805911#M1022695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alt belongs to Conditional function (like extended IF function) returning first numerical value.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;In this case 1 is returned&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80790" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80790_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this 2&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80791" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/80791_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;and so on..&lt;/P&gt;&lt;P&gt;If no number is found the last value is returned:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80798" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/80798_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 05:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805911#M1022695</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-03-16T05:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805912#M1022696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @prabhas v&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this THREAD below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3713"&gt;Which conditional functions do you use?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this Thread Use of ALT Function is Explained in detail check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;NK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 10:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805912#M1022696</guid>
      <dc:creator />
      <dc:date>2015-03-16T10:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805913#M1022697</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;It is similar to NVL() in Oracle, &lt;SPAN style="color: #444444; font-family: Consolas, 'courier new'; font-size: 14px; background-color: #f1f1f1;"&gt;ISNULL() in SQL Server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the first parameter returns null then the second parameter value is assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alt(Sum(Sales), 0)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Sum(Sales) is null then 0 is returned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alt(Only(Year), Year(Today())) - If Only(Year) returned null then Current year is assigned to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can multiple levels in this which is similar If-elseif-else or Case statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;alt( date#( dat , 'YYYY/MM/DD' ),&lt;/P&gt;&lt;P class="Code" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;date#( dat , 'MM/DD/YYYY' ),&lt;/P&gt;&lt;P class="Code" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;date#( dat , 'MM/DD/YY' ),&lt;/P&gt;&lt;P class="Code" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'No valid date' )&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>Mon, 16 Mar 2015 10:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805913#M1022697</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-03-16T10:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805914#M1022698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario that i need to convert the if condition expression into Alt finction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(IF(GetFieldSelections(Earlypayment) = 'NEFT' AND Payment_Discount&amp;lt;&amp;gt;0 ,1,0)=1, Discountperday * PaymentFunds&amp;nbsp; ,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried like this,&lt;/P&gt;&lt;P&gt;=Alt(IF(GetFieldSelections(&lt;SPAN style="font-size: 13.3333px;"&gt;Earlypayment&lt;/SPAN&gt;) = 'NEFT' AND &lt;SPAN style="font-size: 13.3333px;"&gt;Payment_Discount&lt;/SPAN&gt;&amp;lt;&amp;gt;0 ,1,0)=1, &lt;SPAN style="font-size: 13.3333px;"&gt;Discountperday &lt;/SPAN&gt;* &lt;SPAN style="font-size: 13.3333px;"&gt;PaymentFunds&amp;nbsp; &lt;/SPAN&gt;,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 12:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805914#M1022698</guid>
      <dc:creator />
      <dc:date>2016-02-29T12:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805915#M1022699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk dis&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/881855"&gt;Alt Function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 12:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805915#M1022699</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-02-29T12:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805916#M1022700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice Explanation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 08:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/805916#M1022700</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-06-24T08:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/1682008#M1022701</link>
      <description>&lt;P&gt;Very Nice Explanation.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/1682008#M1022701</guid>
      <dc:creator>chiranjeevialapati</dc:creator>
      <dc:date>2020-03-05T10:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/1752286#M1022702</link>
      <description>&lt;P&gt;Hi Jagan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My idea is to assign a 0 when there is a null, when we group it,&lt;BR /&gt;so this can be achieved just simply using Sum(Sales) as Sales&amp;nbsp;&lt;BR /&gt;When we use Sum(Sales) the null values are treated as 0 right. then why are we using alt(sum(sales),0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this alt function affects performance of the load when dealing with 25 millions of records&amp;nbsp;&lt;BR /&gt;Test:&lt;BR /&gt;Load,&lt;BR /&gt;ID,&lt;BR /&gt;Alt(sum(sales), 0) as Sales&amp;nbsp;&lt;BR /&gt;resident abc group by ID;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Renjith&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 09:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/1752286#M1022702</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2020-10-14T09:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function/m-p/1752292#M1022703</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have created one doc regarding al function please have a look.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents/Multiple-Dates-Using-Alt/ta-p/1493744" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Documents/Multiple-Dates-Using-Alt/ta-p/1493744&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 09:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function/m-p/1752292#M1022703</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2020-10-14T09:43:05Z</dc:date>
    </item>
  </channel>
</rss>

