<?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 help with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267155#M1204356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have an application which displays promotion statistics. i have a field called &lt;STRONG&gt;DealNumbers&lt;/STRONG&gt; which has several hundres &lt;STRONG&gt;dealnumbers.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I then have an expression which calculates the total sales and divides it by 3.&lt;/P&gt;&lt;P&gt;I only want to have this expression to populate when a specific deal is selected (900000)&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jul 2010 12:09:05 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2010-07-21T12:09:05Z</dc:date>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267155#M1204356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have an application which displays promotion statistics. i have a field called &lt;STRONG&gt;DealNumbers&lt;/STRONG&gt; which has several hundres &lt;STRONG&gt;dealnumbers.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I then have an expression which calculates the total sales and divides it by 3.&lt;/P&gt;&lt;P&gt;I only want to have this expression to populate when a specific deal is selected (900000)&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 12:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267155#M1204356</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-07-21T12:09:05Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267156#M1204357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You could do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=SUM(IF(GetFieldSelections(DealNumbers)='900000',Sales))/3&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 12:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267156#M1204357</guid>
      <dc:creator />
      <dc:date>2010-07-21T12:23:22Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267157#M1204358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply, This doesn't seem to work for me though...&lt;/P&gt;&lt;P&gt;It works as far as selecting the correct deal number, i.e.&lt;/P&gt;&lt;P&gt;It displays a result when the deal number 900000 is selected, and displays - when the wrong deal number is selected, but it displays the wrong totals.&lt;/P&gt;&lt;P&gt;If i use&lt;/P&gt;&lt;P&gt;Sum (SalesQuantity) /3&lt;/P&gt;&lt;P&gt;then for the first result it displays '140'&lt;/P&gt;&lt;P&gt;If i also add in the expression&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;B&gt;SUM&lt;/B&gt;(&lt;B&gt;IF&lt;/B&gt;(&lt;B&gt;GetFieldSelections&lt;/B&gt;(&lt;B&gt;[DealNumber]&lt;/B&gt;)='900000',&lt;B&gt;SalesQuantity&lt;/B&gt;))/3&lt;/P&gt;&lt;P&gt;so now both are side by side, it displays '1960'&lt;/P&gt;&lt;P&gt;Both are using the same fields and looking at the same data, but bringing back different information.&lt;/P&gt;&lt;P&gt;am i doing something wrong?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 13:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267157#M1204358</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-07-21T13:10:24Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267158#M1204359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Plz see attachment.&lt;/P&gt;&lt;P&gt;Keep your table/expression as it is.&lt;/P&gt;&lt;P&gt;Create separat list box of DealNumbers.&lt;/P&gt;&lt;P&gt;Whenever you will click on any of the deal number, you will get expression for only that/those deal number/s.&lt;/P&gt;&lt;P&gt;Happy Thoughts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 13:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267158#M1204359</guid>
      <dc:creator />
      <dc:date>2010-07-21T13:24:56Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267159#M1204360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use the expression&lt;/P&gt;&lt;P&gt;sum ( if (DealNumbers = 900000 , Sales , )) / 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or would be easier if you could upload some sample data to explain your problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 13:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267159#M1204360</guid>
      <dc:creator />
      <dc:date>2010-07-21T13:25:25Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267160#M1204362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but that won't work for me as not all deal numbers are to be divided by 3. some are divided by 5, some by 2 etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 13:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267160#M1204362</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-07-21T13:33:14Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267161#M1204364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz share sample data with expression in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 13:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267161#M1204364</guid>
      <dc:creator />
      <dc:date>2010-07-21T13:40:11Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267162#M1204366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, here is my document,&lt;/P&gt;&lt;P&gt;Sorry its so big, Having trouble trying to replicate it.&lt;/P&gt;&lt;P&gt;The DEALS SALES TOTAL is the expression given on this forum (which is displaying the wrong info.&lt;/P&gt;&lt;P&gt;The =sum(salesQuantity)/3 is displaying the correct info, but for all deal numbers. where i only want a specific deal number to display info, the rest be a zero or '-'.&lt;/P&gt;&lt;P&gt;For the attached document, i am specifying deal number 4986, not 900000 as posted in my original post.&lt;/P&gt;&lt;P&gt;Help would be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 15:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267162#M1204366</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-07-21T15:04:38Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267163#M1204368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 16:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267163#M1204368</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-07-21T16:33:46Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267164#M1204370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it was me then I would create a mapping table with the necessary factors at load time and then perform calc on that. (See attached example)&lt;/P&gt;&lt;P&gt;You could also just create a calculated column (Deal Sales Total) on load time using a mapping table and then reference the column directly.&lt;/P&gt;&lt;P&gt;Hope it helps &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 17:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267164#M1204370</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2010-07-21T17:17:40Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267165#M1204372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your replies, i managed to get it working by using:&lt;/P&gt;&lt;P&gt;If (DealNumber =900000 , sum (salesQuantity)) / 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 09:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267165#M1204372</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-07-22T09:24:15Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267166#M1204373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does that expression work when the DealNumber does &lt;EM&gt;not&lt;/EM&gt; equal 900000?&lt;/P&gt;&lt;P&gt;Also - what happens if other deal numbers need a factor of some kind, or what if the factor changes? Much better to manage this with data rather than in the expressions - imho &lt;IMG alt="Angel" src="http://community.qlik.com/emoticons/emotion-13.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 09:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267166#M1204373</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2010-07-22T09:29:57Z</dc:date>
    </item>
    <item>
      <title>help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267167#M1204374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it does not equal 900000, it just displays -.&lt;/P&gt;&lt;P&gt;We are only using this application to report on a specific deal number (900000) the application can be used to look at other deals too, but no calculation will be needed.&lt;/P&gt;&lt;P&gt;Currently our API database does not dump out the table required to give us the result needed (but it will later on this year), so currently we would not require other deal numbers to have specific factors.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 09:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expression/m-p/267167#M1204374</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-07-22T09:46:17Z</dc:date>
    </item>
  </channel>
</rss>

