<?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: Trying to create expression for If..then..elseif..else..end if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461472#M563869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Donald.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very Helpful and Informative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Small Obstacle:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am geting this script error mesage:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;SeriesCode&amp;gt;&lt;/P&gt;&lt;P&gt;SQL SELECT ExtAmt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemUserFld3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipToAddrState,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipTOCommPlanID&lt;/P&gt;&lt;P&gt;FROM "whs_mas500_app".dbo.vdvInvoiceLineSadlier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think it could have something to do with the fact that I am trying to pull from 2 diffrnt locations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SeriesCode&lt;/P&gt;&lt;P&gt;FROM MAS500Custom.dbo."WHS_SeriesTen_2012"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;ExtAmt,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;﻿&lt;/SPAN&gt;&lt;/SPAN&gt;ItemUserFld3,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;ShipToAddrState,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;ShipTOCommPlanID&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;FROM MAS500Custom.dbo."WHS_SeriesTen_2012";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Drew&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2013 21:11:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-26T21:11:29Z</dc:date>
    <item>
      <title>Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461463#M563860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to Qlik. I am trying to create this chart expression, and I am having difficulty.&lt;/P&gt;&lt;P&gt;I am trying to apply formulas to the total if these conditions are met. I am pretty inexperienced with syntax for sql, qlik.&lt;/P&gt;&lt;P&gt;Can anyone lend a hand?&lt;/P&gt;&lt;P&gt;Thanks- DM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if {SeriesCode} = "S" and {ShipToAddrState} = "CA" and ({ShipTOCommPlanID} &amp;lt;&amp;gt; "1726" and {ShipTOCommPlanID} &amp;lt;&amp;gt; "1727")&lt;/P&gt;&lt;P&gt;then {ExtAmt} * (.94)&lt;/P&gt;&lt;P&gt;else if {SeriesCode} = "I" then {ExtAmt}* (.42) &lt;/P&gt;&lt;P&gt;else if { MajLink} = "YK" then {ExtAmt} * (.39)&lt;/P&gt;&lt;P&gt;else if {SeriesCode} = "Y" then {ExtAmt} * (.42)&lt;/P&gt;&lt;P&gt;else if {SeriesCode} = "Z" then {ExtAmt} * (0)&lt;/P&gt;&lt;P&gt;else {ExtAmt}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 22:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461463#M563860</guid>
      <dc:creator />
      <dc:date>2013-02-21T22:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461464#M563861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(SeriesCode='S' and ShipToAddrState='CA' and ShipTOCommPlanID&amp;lt;&amp;gt;'1726' and ShipTOCommPlanID&amp;lt;&amp;gt;'1727',&lt;BR /&gt;&lt;BR /&gt;ExtAmt*.94,&lt;BR /&gt;&lt;BR /&gt;if(SeriesCode='I',ExtAmt*.42,&lt;BR /&gt;&lt;BR /&gt;if(MajLink='YK',ExtAmt*.39,&lt;BR /&gt;&lt;BR /&gt;if(SeriesCode='Y',ExtAmt*0,&lt;BR /&gt;&lt;BR /&gt;if(SeriesCode='Z',ExtAmt*0,ExtAmt))))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 22:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461464#M563861</guid>
      <dc:creator />
      <dc:date>2013-02-21T22:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461465#M563862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression Rebecca posted will work nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With such a complex (or just long) expression, you may want to consider some options to simplify things for your chart expression.&amp;nbsp; You could perhaps put some of this logic in the load script.&amp;nbsp; Or for this expression, since the multiplication factor seems tied to the [SeriesCode], you could load a table in the model that includes an assoication (i.e., a Series table), or you could combine these approaches using ApplyMap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 00:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461465#M563862</guid>
      <dc:creator />
      <dc:date>2013-02-22T00:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461466#M563863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Donald, Rebecca's expression does work nicely.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I am working with it to try how and where to apply it correctly. &lt;/P&gt;&lt;P&gt;I would love to put this logic into the load script or,&lt;/P&gt;&lt;P&gt;load a table in the model that includes an assiciation (i.e., a Series table),&lt;/P&gt;&lt;P&gt;or combine the approaches using an ApplyMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will continue to research these 3 options,&amp;nbsp; Could you further assist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 14:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461466#M563863</guid>
      <dc:creator />
      <dc:date>2013-02-22T14:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461467#M563864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Rebecca- The expression did work well.&amp;nbsp; &lt;/P&gt;&lt;P&gt;It leads me to a larger issue, though.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 14:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461467#M563864</guid>
      <dc:creator />
      <dc:date>2013-02-22T14:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461468#M563865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Drew, I'm happy to try to help.&amp;nbsp; Any way you could post your app or data model so that I can see what you're working with?&amp;nbsp; I can guess at what you have and offer some ideas, but obviously it would be easier (and more meaningful) to work with your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 20:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461468#M563865</guid>
      <dc:creator />
      <dc:date>2013-02-22T20:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461469#M563866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks. Will Post on Monday morning !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2013 19:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461469#M563866</guid>
      <dc:creator />
      <dc:date>2013-02-23T19:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461470#M563867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donald-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a copy of script. &lt;/P&gt;&lt;P&gt;Im grateful for any ideas to incorporate the expressions into my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 13:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461470#M563867</guid>
      <dc:creator />
      <dc:date>2013-02-25T13:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461471#M563868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While it is always a judgment call as to whether you include logic like this as expressions in your charts or in the load script, sometimes you may find it useful to put some of the complexity in the load script, thus simplifying your charts.&amp;nbsp; In any case, just some food for thought.&amp;nbsp; In your expression, the logic is a bit complex, but even so it may be a bit simplified if you setup a mapping table to handle Series Code I, Y, and Z, then you could add an expression to your load table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13618399002254881" jivemacro_uid="_13618399002254881"&gt;&lt;P&gt;SeriesMap:&lt;/P&gt;&lt;P&gt;Mapping Load * Inline [&lt;/P&gt;&lt;P&gt;Code, Factor&lt;/P&gt;&lt;P&gt;I, 0.42&lt;/P&gt;&lt;P&gt;Y, 0.42&lt;/P&gt;&lt;P&gt;Z, 0&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IF(SeriesCode='S' And ShipToCommPlanID &amp;lt;&amp;gt; '1726' And ShipToCommPlanID &amp;lt;&amp;gt; '1727' And ShipToAddrState = 'CA', ExtAmt * 0.94,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IF( MajLink = 'YK', ExtAmt * 0.39, &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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ExtAmt * ApplyMap( 'SeriesMap', SeriesCode, 1 )&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;) As CustomCalc;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SeriesCode, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipToAddrState, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipToCommPlanID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MajLink, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc....&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;(your data source);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I've just used a preceding load for illustration, but you could add such an expression in your main LOAD as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've modified the inline IF so that we can leverage a mapping lookup table, and in the event the Series Code is not found in the map, then the factor used will simply be 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps to give you some ideas, in any case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 00:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461471#M563868</guid>
      <dc:creator />
      <dc:date>2013-02-26T00:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461472#M563869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Donald.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very Helpful and Informative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Small Obstacle:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am geting this script error mesage:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;SeriesCode&amp;gt;&lt;/P&gt;&lt;P&gt;SQL SELECT ExtAmt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemUserFld3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipToAddrState,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipTOCommPlanID&lt;/P&gt;&lt;P&gt;FROM "whs_mas500_app".dbo.vdvInvoiceLineSadlier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think it could have something to do with the fact that I am trying to pull from 2 diffrnt locations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SeriesCode&lt;/P&gt;&lt;P&gt;FROM MAS500Custom.dbo."WHS_SeriesTen_2012"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;ExtAmt,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;﻿&lt;/SPAN&gt;&lt;/SPAN&gt;ItemUserFld3,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;ShipToAddrState,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;ShipTOCommPlanID&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;FROM MAS500Custom.dbo."WHS_SeriesTen_2012";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Drew&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 21:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461472#M563869</guid>
      <dc:creator />
      <dc:date>2013-02-26T21:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461473#M563870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Drew, you have a few issues here that are going to prevent a successful load.&amp;nbsp; You are getting the error because of the reference to SeriesCode under "Fact:" but that field is not avaialble in the LOAD/SELECT you do just under.&amp;nbsp; But beyond that, there are other problems here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help you, I need to understand how these two tables (or views) that you are loading relate to each other.&amp;nbsp; In your custom calculation, you are referencing fields from both of the loads here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"whs_mas500_app".dbo.vdvInvoiceLineSadlier&lt;/STRONG&gt; (contains ShipToAddrState, ShipToCommPlanID, ExtAmt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAS500Custom.dbo."WHS_SeriesTen_2012" &lt;/STRONG&gt;(contains SeriesCode, MajLink)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how do you relate those two entities?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 22:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461473#M563870</guid>
      <dc:creator />
      <dc:date>2013-02-26T22:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461474#M563871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"whs_mas500_app".dbo.vdvInvoiceLineSadlier is related to&amp;nbsp; MAS500Custom.dbo."WHS_SeriesTen_2012" &lt;/P&gt;&lt;P&gt;by the field which I aliased as MajLink. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vdvInvoiceLineSadlier.ItemUserFld3 as MajLink, =&amp;nbsp; "WHS_SeriesTen_2012".Major as MajLink,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats how I linked the 2 tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 22:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461474#M563871</guid>
      <dc:creator />
      <dc:date>2013-02-26T22:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461475#M563872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Drew,&lt;/P&gt;&lt;P&gt;I am a bit in the blind without seeing your actual data, but &lt;STRONG&gt;MajLink &lt;/STRONG&gt;&lt;EM&gt;seems &lt;/EM&gt;an unlikely key to associate here.&amp;nbsp; It is in fact one of the fields used in your formula, and it appears to be some sort of short code (i.e., 'YK').&amp;nbsp; In any case, you know your data so you can apply the concept here as it fits.&amp;nbsp; There are many ways to do this, but one way follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. load your primary table of data&lt;/P&gt;&lt;P&gt;2. left join to this your second table&lt;/P&gt;&lt;P&gt;3. noconcatenate load from this resident table to create your final table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the last step (3) you can do your calculations as needed.&amp;nbsp; I've attached a sample to give you the idea.&amp;nbsp; Be aware that this is just the concept.&amp;nbsp; You will have to consider your data, the keys you use to associate tables, and which table is primary (order of Joins).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 00:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461475#M563872</guid>
      <dc:creator />
      <dc:date>2013-02-27T00:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461476#M563873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donald-&lt;/P&gt;&lt;P&gt;You have gone above and beyond, in helping me.&lt;/P&gt;&lt;P&gt;Your info and suggestions have been really great.&lt;/P&gt;&lt;P&gt;I hope I can repay the favor some day.&lt;/P&gt;&lt;P&gt;Let me know if business brings you to NY so I can buy you a drink.&lt;/P&gt;&lt;P&gt;Best-&lt;/P&gt;&lt;P&gt;Drew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 01:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461476#M563873</guid>
      <dc:creator />
      <dc:date>2013-02-27T01:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create expression for If..then..elseif..else..end if</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461477#M563874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Donald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a inline statement where i need to load expresion value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MetricsDims:&lt;/P&gt;&lt;P&gt;LOAD Metrics , Replace(Datavalue, '@','$') INLINE [ &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Metrics&amp;nbsp; , Datavalue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invitations , @(vProg_Last_Campaign_Completion_Count)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivered ,&amp;nbsp; @(vParlege_Last_Campaign_Completion_Count)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Currently i am getting like this &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; Invitations , &lt;SPAN style="font-size: 13.3333px;"&gt;@(vProg_Last_Campaign_Completion_Count)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivered , &lt;SPAN style="font-size: 13.3333px;"&gt; @(vParlege_Last_Campaign_Completion_Count)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;but i need actual values for variables&lt;/P&gt;&lt;P&gt;so that in table i get like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invitations , 3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivered ,&amp;nbsp; 4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I know using above code in script to inline statement doesnot work,i have to use pick and match by refering this &lt;A href="https://community.qlik.com/thread/67420"&gt;Expressions in Fields&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But there i didnt get what is column1: Name. please help me on this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 10:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-create-expression-for-If-then-elseif-else-end-if/m-p/461477#M563874</guid>
      <dc:creator>berryandcherry6</dc:creator>
      <dc:date>2016-10-19T10:46:24Z</dc:date>
    </item>
  </channel>
</rss>

