<?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: How can I convert this IF Formula into a Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803391#M1039032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please look at the attached file. The calculation that you are doing on the Front-end, I just put in on the back-end and did a straight forward Sum(Exp) in the Straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Dec 2014 17:29:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-31T17:29:07Z</dc:date>
    <item>
      <title>How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803386#M1039027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am struggling to create a variable of this IF statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Doc Type]&amp;amp;Function='Credit MemoMultiply',sum(Quantity*ConvFactor)*-1,if(Function='Multiply',sum(Quantity * ConvFactor), if([Doc Type]&amp;amp;Function='Credit MemoDiv',sum(Quantity/ConvFactor)*-1,if(Function='Div',sum(Quantity / ConvFactor),if([Doc Type]='Credit Memo',Quantity*-1,Sum((Quantity)))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my app to run faster and also to use the variable to show the result by Responsible, write now I can only obtain the result by SKU, but as soon as I take out that dimension my result change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thought.&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>Tue, 30 Dec 2014 17:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803386#M1039027</guid>
      <dc:creator />
      <dc:date>2014-12-30T17:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803387#M1039028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can do it in the back-end (script) then I would recommend going that route. That would be the most optimized approach. Maybe can you attach a sample file for review?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 21:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803387#M1039028</guid>
      <dc:creator />
      <dc:date>2014-12-30T21:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803388#M1039029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You wouldn't be able to create one variable out of that nested if statement, but you could create a PICK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PickClassification:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ClassificationID, ClassificationDesc&lt;/P&gt;&lt;P&gt;1, 'CreditMemoMultiply'&lt;/P&gt;&lt;P&gt;2, 'Multiple'&lt;/P&gt;&lt;P&gt;3, 'DocType'&lt;/P&gt;&lt;P&gt;4, 'Div'&lt;/P&gt;&lt;P&gt;5, 'CreditMemo'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your expression would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PICK(ClassificationID,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(Quantity*ConvFactor)*-1&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(Quantity * ConvFactor),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(Quantity/ConvFactor)*-1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(Quantity / ConvFactor),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Quantity*-1,Sum((Quantity))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From there you could create an Inline table with each PICK description, and then use a pick statement calling each statement on that Inline table.&amp;nbsp; As shown above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 22:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803388#M1039029</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2014-12-30T22:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803389#M1039030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ajay, thank you very much for your prompt reply.&lt;/P&gt;&lt;P&gt;I've tried to put together a new app, since the one that I am working on it is big.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that on the column Qty Conv I can get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Invoices:&lt;/P&gt;&lt;P&gt;Functions: (Multiply and Division)&lt;/P&gt;&lt;P&gt;a) Qty Conv= Qty * ConvFactor&lt;/P&gt;&lt;P&gt;b) Qty Conv= &lt;SPAN style="font-size: 13.63636302948px;"&gt;Qty / ConvFactor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;c) Blank= The same amount in the QTY column&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;For Credit Memos:&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;Functions: (Multiply and Division)&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;a) Qty Conv= (Qty * ConvFactor)*-1&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;b) Qty Conv= (&lt;SPAN style="font-size: 13.63636302948px;"&gt;Qty / ConvFactor)*-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;c) Blank= The same amount in the QTY column&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;And a Chart by responsible with the Qty Conv&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px;"&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;&lt;IMG class="image-1 jive-image" height="345" src="https://community.qlik.com/legacyfs/online/74434_pastedImage_4.png" style="width: 748.350877192983px; height: 344px;" width="748" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 01:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803389#M1039030</guid>
      <dc:creator />
      <dc:date>2014-12-31T01:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803390#M1039031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nick thank you very much for your help, I've tried to used the Pick approach that you recommended, nevertheless I am getting&amp;nbsp; NET 0, maybe I am doing something wrong.... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the Inline Table in the Script and then created an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/74436_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Here is the result&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74435_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 01:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803390#M1039031</guid>
      <dc:creator />
      <dc:date>2014-12-31T01:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803391#M1039032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please look at the attached file. The calculation that you are doing on the Front-end, I just put in on the back-end and did a straight forward Sum(Exp) in the Straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 17:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803391#M1039032</guid>
      <dc:creator />
      <dc:date>2014-12-31T17:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803392#M1039033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you have 5 different statements in your pick, but only 4 in your inline.&amp;nbsp;&amp;nbsp; The order they are displayed in the INLINE is the order they will be calculated in your PICK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 17:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803392#M1039033</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2014-12-31T17:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803393#M1039034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ajay it works smoothly and Perfect &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;, thank you very much, but now when I am trying to included in my original application (with link and Inline tables) I am getting an error Field Not found &amp;lt;Doc Type&amp;gt; &lt;/P&gt;&lt;P&gt;Help pleaseeee &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am attaching part of my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Link Table]:&lt;/P&gt;&lt;P&gt;// Load Distinct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; %Key as [%TEMP Key Field],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Posting Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Doc Type],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Document No_], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Bill-to Customer No_], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; County, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Item, &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([Doc Type]='Credit Memo',Amount*-1,Amount)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As Amount, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Doc Type]='Credit Memo',Quantity*-1,Quantity)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As Quantity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident [Hsales]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where Quantity &amp;lt;&amp;gt;0 ;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Concatenate ([Link Table])&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Posting Date", &lt;/P&gt;&lt;P&gt;"Document No_",&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Unit of Measure",&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Doc Type]='Credit Memo',Quantity*-1,Quantity)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As Quantity,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Unit Price",&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; If([Doc Type]='Credit Memo',Amount*-1,Amount)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As Amount,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Bill-to Customer No_",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Doc Type],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Customer Price Group"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where Not Exists([%TEMP Key Field], [%Key]) and Quantity &amp;lt;&amp;gt;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;Drop Field [%TEMP Key Field];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Fields&amp;nbsp; "Posting Date", &lt;/P&gt;&lt;P&gt;"Document No_",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; "Sell-to Customer No_",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Unit of Measure",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Unit Price",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Bill-to Customer No_",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Doc Type],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Customer Price Group"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From [Sales];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Fields [Posting Date], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Doc Type], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Document No_], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Bill-to Customer No_], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; County, &lt;/P&gt;&lt;P&gt;&amp;nbsp; %Item, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From [Hsales];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UOM_SELECTION:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;if([Doc Type]&amp;amp;Function='Credit MemoMultiply',(QTY*ConvFactor),if(Function='Multiply',(QTY * ConvFactor), if([Doc Type]&amp;amp;Function='Credit MemoDiv',(QTY/ConvFactor),if(Function='Div',(QTY / ConvFactor),if([Doc Type]='Credit Memo',QTY,((QTY))))))) as Exp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; INLINE [%Item, ItemConverted, ItemDescriptionConverted,Function, ConvFactor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I9006, I9011, DOLORES-00064 New Tuna in Oil 48/5oz/112cs, Multiply, 8&lt;/P&gt;&lt;P&gt;I9006, I9016, DOLORES-00065 New Tuna in Water 48/5oz/112cs, Multiply, 8&lt;/P&gt;&lt;P&gt;I9006, I9008, DOLORES-00071 New Tuna in Jalapeño 24/5oz/224cs, Multiply, 8&lt;/P&gt;&lt;P&gt;I9006, I9007, DOLORES-00068 New Tuna in Chipotle Sauce 24/5oz/224cs, Multiply, 8&lt;/P&gt;&lt;P&gt;I9006, I9014, DOLORES-00066 New Tuna inSalad with Vegetables 24/5oz/224cs, Multiply, 8&lt;/P&gt;&lt;P&gt;I9006, I9009, DOLORES-00069 New Tuna in Mexican Style 24/5oz/224cs, Multiply, 8&lt;/P&gt;&lt;P&gt;I9006, I9013, DOLORES-00067 New Tuna in Pickled Vegetable 24/5oz/224cs, Multiply, 8&lt;/P&gt;&lt;P&gt;I9012, I9011, DOLORES-00064 New Tuna in Oil 48/5oz/112cs, Multiply, 56&lt;/P&gt;&lt;P&gt;I9017, I9011, DOLORES-00064 New Tuna in Oil 48/5oz/112cs, Multiply, 40&lt;/P&gt;&lt;P&gt;I9017, I9016, DOLORES-00065 New Tuna in Water 48/5oz/112cs, Multiply, 16&lt;/P&gt;&lt;P&gt;I9023, I9027, DORADO-00057 Tuna in Water 24/5oz/224cs, Multiply, 32&lt;/P&gt;&lt;P&gt;I9023, I9026, DORADO-00055 Tuna in Oil 24/5oz/224cs, Multiply, 24&lt;/P&gt;&lt;P&gt;I9031, I9011, DOLORES-00064 New Tuna in Oil 48/5oz/112cs, Multiply, 24&lt;/P&gt;&lt;P&gt;I9031, I9016, DOLORES-00065 New Tuna in Water 48/5oz/112cs, Multiply, 16&lt;/P&gt;&lt;P&gt;I9031, I9008, DOLORES-00071 New Tuna in Jalapeño 24/5oz/224cs, Multiply, 5&lt;/P&gt;&lt;P&gt;I9031, I9007, DOLORES-00068 New Tuna in Chipotle Sauce 24/5oz/224cs, Multiply, 2&lt;/P&gt;&lt;P&gt;I9031, I9014, DOLORES-00066 New Tuna inSalad with Vegetables 24/5oz/224cs, Multiply, 5&lt;/P&gt;&lt;P&gt;I9031, I9009, DOLORES-00069 New Tuna in Mexican Style 24/5oz/224cs, Multiply, 4&lt;/P&gt;&lt;P&gt;I9031, I9013, DOLORES-00067 New Tuna in Pickled Vegetable 24/5oz/224cs, Multiply, 2&lt;/P&gt;&lt;P&gt;I9008, I9008, DOLORES-00071 New Tuna in Jalapeño 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9009, I9009, DOLORES-00069 New Tuna in Mexican Style 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9014, I9014, DOLORES-00066 New Tuna inSalad with Vegetables 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9007, I9007, DOLORES-00068 New Tuna in Chipotle Sauce 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9013, I9013, DOLORES-00067 New Tuna in Pickled Vegetable 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9010, I9010, DOLORES-00064(Kehe) New Tuna in Oil 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9015, I9015, DOLORES-00065(Kehe) New Tuna in Water 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9027, I9027., DORADO-00057 Tuna in Water 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9018, I9018, DOLORES-10033 Tuna in Pickled Vegetables 24/6oz/196cs, Div, 2&lt;/P&gt;&lt;P&gt;I9026, I9026, DORADO-00055 Tuna in Oil 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9025, I9025, DORADO-00081 New Tuna in Water with Soy 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9024, I9024, DORADO-00079 New Tuna in Oil with Soy 24/5oz/224cs, Div, 2&lt;/P&gt;&lt;P&gt;I9021, I9021, DOLORES-10029 Tuna in Jalapeño 24/6oz/196cs, Div, 2&lt;/P&gt;&lt;P&gt;I9022, I9022, DOLORES-10030 Tuna in Salad with Vegetables 24/6oz/196cs, Div, 2&lt;/P&gt;&lt;P&gt;I23036, I23036, TAJIN-00017 Fruit Seasoning 12/5.0oz (12 unit by case), Div, 2&lt;/P&gt;&lt;P&gt;I23047, I23047, TAJIN-90604 Shipper Fruit Seasoning 96pc, Multiply, 4&lt;/P&gt;&lt;P&gt;I23054, I23054, TAJIN-90604 WM Shipper Fruit Seasoning 96, Multiply, 4&lt;/P&gt;&lt;P&gt;I23064, I23038, TAJIN-00010-W Fruit Seasoning WM 24/5.0oz, Multiply, 3&lt;/P&gt;&lt;P&gt;I23064, I23039, TAJIN-00621 Fruit Seasoning Low Sodium 24/5.0oz, Multiply, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 19:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803393#M1039034</guid>
      <dc:creator />
      <dc:date>2014-12-31T19:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803394#M1039035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The UOM_Selection table, is it loaded from Link Table ? Is the Link_Table and Inline Table concatenated ?&lt;/P&gt;&lt;P&gt;And you get the error while loading UOM_SELECTION table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 19:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803394#M1039035</guid>
      <dc:creator />
      <dc:date>2014-12-31T19:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803395#M1039036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UON is the inline table, I've created to obtain the info to convert the quantity.&lt;/P&gt;&lt;P&gt;Link Table and Inline are not concatenated. Here is the structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74477_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error I get is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/74478_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very, very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 19:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803395#M1039036</guid>
      <dc:creator />
      <dc:date>2014-12-31T19:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803396#M1039037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so for that expression to work all the metrics&amp;nbsp; ( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Doc Type,Function,QTY , ConvFactor ) should be in the same table. If Item% has a one-to-one relationship in the Inline table with Function and ConvFactor, then you can left join just those two fields into the Link Table and use that expression in the Link table through another resident Load. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Like - &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Resident LinkTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load Item%,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Function,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ConvFactor &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resident Inline Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Load *, Expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resident LinkTable;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 20:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803396#M1039037</guid>
      <dc:creator />
      <dc:date>2014-12-31T20:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803397#M1039038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay, Happy New Year!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help, since I am fairly new to QV &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;I am not able to apply what you have recommend me.&lt;/P&gt;&lt;P&gt;Do you have any info that I can read to understand better? and try to apply your concepts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 19:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803397#M1039038</guid>
      <dc:creator />
      <dc:date>2015-01-02T19:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803398#M1039039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is this amazing book called 'Qlikview 11 for Developers' which has all the basic things needed to understand Qlikview with good examples. I would recommend going through that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy New Year!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 19:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803398#M1039039</guid>
      <dc:creator />
      <dc:date>2015-01-02T19:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert this IF Formula into a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803399#M1039040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the advice, I will get it, but in the meantime do you think you can help me out with my app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 21:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-convert-this-IF-Formula-into-a-Variable/m-p/803399#M1039040</guid>
      <dc:creator />
      <dc:date>2015-01-02T21:02:21Z</dc:date>
    </item>
  </channel>
</rss>

