<?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: Sales associated with negative margin in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197990#M878057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to QV how would i be able to see .qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2016 10:15:18 GMT</pubDate>
    <dc:creator>jadams123</dc:creator>
    <dc:date>2016-10-28T10:15:18Z</dc:date>
    <item>
      <title>Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197977#M878044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have a problem here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this column that has negative margin. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to get negative margin. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum($(vMargin)&amp;lt;0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how do you get sales associated with that negative margin?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know is is the wrong formula...but i am trying to get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(sum($(vMargin)&amp;lt;0),Sum( {$&amp;lt;TRX_TYPE = {'Invoice'}, CREDIT_CODE = {'Yes'},CUSTOMER_TYPE = {*}-{XYZ}&amp;gt;} AMOUNT ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so basically this means:&lt;/P&gt;&lt;P&gt;1)if the margin is negative &lt;/P&gt;&lt;P&gt;than &lt;/P&gt;&lt;P&gt;2) sum sales (including "invoice",including credit code "Yes", and excluding "XYZ"&lt;/P&gt;&lt;P&gt;&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, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197977#M878044</guid>
      <dc:creator>jadams123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197978#M878045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=RangeMin(Sum({$&amp;lt;TRX_TYPE = {'Invoice'}, CREDIT_CODE = {'Yes'},CUSTOMER_TYPE = {*}-{XYZ}&amp;gt;} AMOUNT), 0)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197978#M878045</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T16:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197979#M878046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it didnt work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do remember that i have two columns: 1) sales 2) margin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can make an expression in QV for "Margin" if its negative. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can i capture all the "Sales" related to those "negative margin". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 20:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197979#M878046</guid>
      <dc:creator>jadams123</dc:creator>
      <dc:date>2016-10-27T20:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197980#M878047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to show few rows of data to see the issue her?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 21:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197980#M878047</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T21:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197981#M878048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does * work, or must it be "*"? Does XYZ work, or must it be 'XYZ'? I can't remember. This may do nothing to change anything, but here's how I'd write it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(sum($(vMargin)&amp;lt;0),sum({&amp;lt;TRX_TYPE={'Invoice'},CREDIT_CODE={'Yes'},CUSTOMER_TYPE-={'XYZ'}&amp;gt;} AMOUNT))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 21:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197981#M878048</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-10-27T21:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197982#M878049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2016-10-27 at 7.20.40 PM.png" class="jive-image image-1" src="/legacyfs/online/142285_Screen Shot 2016-10-27 at 7.20.40 PM.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They way i find negative margin is: &lt;SPAN style="font-family: courier new,courier;"&gt;sum($(vMargin)&amp;lt;0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;How to i find all the sales with negative margin. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;John - I'll try your suggestion. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 23:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197982#M878049</guid>
      <dc:creator>jadams123</dc:creator>
      <dc:date>2016-10-27T23:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197983#M878050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please share the Data along with Expected O/p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, You've shared the Data. My Data is you have and you are expecting My Pivot / What? I am not sure i udnerstand your concern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 01:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197983#M878050</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-28T01:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197984#M878051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So let me try to explain this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I have a set of data which has "Sales", "Margin", etc&lt;/P&gt;&lt;P&gt;2) Margin has some negatives and some positives&lt;/P&gt;&lt;P&gt;3) First, I Want to &lt;SPAN style="text-decoration: underline;"&gt;filter all negative numbers in "Margin"&lt;/SPAN&gt;. &lt;SPAN style="font-family: courier new,courier;"&gt;sum($(vMargin)&amp;lt;0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;4) Then i want to filter all sales related to that negative margin. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to do this...my formula filters out all negative margin in "Margin" column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in Sales column it also sums up all sales related to positive margin ($11,328). I dont want this number to show up.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to say in my "Sales" expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Margin is negative&lt;/P&gt;&lt;P&gt;than&lt;/P&gt;&lt;P&gt;Sum sales related to negative margin. Do not include sales related to positive margin. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2016-10-27 at 10.44.40 PM.png" class="jive-image image-1" src="/legacyfs/online/142306_Screen Shot 2016-10-27 at 10.44.40 PM.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 02:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197984#M878051</guid>
      <dc:creator>jadams123</dc:creator>
      <dc:date>2016-10-28T02:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197985#M878052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way this is all i want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data with "margin". Some are positive and some are negative margin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to filter negative margin and show Sales, Quantity e.t.c associated with that negative margin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i do this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2016-10-27 at 11.03.49 PM.png" class="jive-image image-1" src="/legacyfs/online/142310_Screen Shot 2016-10-27 at 11.03.49 PM.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 02:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197985#M878052</guid>
      <dc:creator>jadams123</dc:creator>
      <dc:date>2016-10-28T02:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197986#M878053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you please share application to look intooo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 04:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197986#M878053</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-28T04:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197987#M878054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this is what you are looking for... Please see the attached file...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sales associated with negative margin.jpg" class="jive-image image-1" src="/legacyfs/online/142312_Sales associated with negative margin.jpg" style="height: 331px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 04:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197987#M878054</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-10-28T04:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197988#M878055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adams......You can try with this,I hope you will get.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Margin={"&amp;lt;=0"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 07:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197988#M878055</guid>
      <dc:creator>chinnuchinni</dc:creator>
      <dc:date>2016-10-28T07:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197989#M878056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this in the Dimension&lt;/P&gt;&lt;P&gt;&lt;IMG alt="img1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142326_img1.png" style="height: 548px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 07:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197989#M878056</guid>
      <dc:creator>t_moutault</dc:creator>
      <dc:date>2016-10-28T07:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197990#M878057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to QV how would i be able to see .qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 10:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197990#M878057</guid>
      <dc:creator>jadams123</dc:creator>
      <dc:date>2016-10-28T10:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197991#M878058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are in the Inbox then you will not be able to see the attachment. So don't sign on with your Id. Just go to the link land you will be able to see the attachment. Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 11:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197991#M878058</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-10-30T11:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197992#M878059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey i am almost there...i just need one more answer...i think it was the variable that wasnt working out. I am not sure why?&lt;/P&gt;&lt;P&gt;vmargin: Amount - Cost + Chargback&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MARGIN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(sum(AMOUNT - COST + CB_AMT)&amp;lt;0,sum(AMOUNT - COST + CB_AMT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically all your answer were right: &lt;STRONG&gt;MARGIN: &lt;/STRONG&gt;if(sum(margin(&amp;lt;0,sum(margin))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and sales assocaited with it: &lt;STRONG&gt;SALES&lt;/STRONG&gt;: if(sum(margin)&amp;lt;0,sum(amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know how can i exclude/include the below dimensions in my formula &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) CREDIT_CODE_FLAG = {'Yes'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) TRX_TYPE = {'Invoice'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) CUSTOMER_TYPE = {*} - {ITC}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i am doing something stupid here: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum({$&amp;lt;CREDIT_CODE_FLAG = {'Yes'}, TRX_TYPE = {'Invoice'}, CUSTOMER_TYPE = {*} - {ITC}&amp;gt;}(AMOUNT - COST + CB_AMT)&amp;lt;0,sum({$&amp;lt;CREDIT_CODE_FLAG = {'Yes'}, TRX_TYPE = {'Invoice'}, CUSTOMER_TYPE = {*} - {ITC}&amp;gt;}(AMOUNT - COST + CB_AMT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 14:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197992#M878059</guid>
      <dc:creator>jadams123</dc:creator>
      <dc:date>2016-10-30T14:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197993#M878060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone can help me here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 09:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197993#M878060</guid>
      <dc:creator>jadams123</dc:creator>
      <dc:date>2016-11-01T09:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sales associated with negative margin</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197994#M878061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(sum({&amp;lt;CREDIT_CODE_FLAG={'Yes'},TRX_TYPE={'Invoice'},CUSTOMER_TYPE-={'ITC'}&amp;gt;} rangesum(AMOUNT,-COST,CB_AMT))&amp;lt;0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,&amp;nbsp; sum({&amp;lt;CREDIT_CODE_FLAG={'Yes'},TRX_TYPE={'Invoice'},CUSTOMER_TYPE-={'ITC'}&amp;gt;} rangesum(AMOUNT,-COST,CB_AMT)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-associated-with-negative-margin/m-p/1197994#M878061</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-01T15:51:20Z</dc:date>
    </item>
  </channel>
</rss>

