<?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 Scripting Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176517#M628435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Comunity i have a Question and a problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the moment i have a Pivot table with this informations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Group&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;&lt;SPAN lang="en"&gt;document number&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Artikel&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;&lt;SPAN lang="en"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;&lt;SPAN lang="en"&gt;unit price&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;piece quantity&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN lang="en"&gt;total price&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN lang="en"&gt;if(&lt;STRONG&gt;&lt;SPAN lang="en"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt; = piece quantity,'0','1')&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;cup&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Chicken 4x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;54&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;54&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;cup &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Beef 9x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;45&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;cup&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Shrimp 9x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;45&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;bag&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Fish 5x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;bag&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Curry 7x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;55&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this table is to look at artikel &lt;SPAN lang="en"&gt;which went out for free. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Now i saw all artikel which have the same carton quantity and piece quantity are on a set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The Set Artikel &lt;SPAN lang="en"&gt;must be removed from the table because they dont go out for free the price is on the head from the set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The artikel which have different numbers on carton quantity and piece quantity go out for free.&lt;/P&gt;&lt;P&gt;The different between Piece quantity and carton quantity is: Beef has 9 Cups in a Carton so we have 5 cartons with 9 cups = 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;importend is &lt;SPAN lang="en"&gt;if(&lt;STRONG&gt;&lt;SPAN lang="en"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt; = piece quantity,'0','1') this shows me which artikel has the same carton quantity and piece quantity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Now my question: How can i FIlter it that i have only Artikel with different carton quantity and piece quantity, have a one on the end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I need it to count the the Artikel which go out for free.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;The informations are all from one Table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 12:03:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-09T12:03:41Z</dc:date>
    <item>
      <title>Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176517#M628435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Comunity i have a Question and a problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the moment i have a Pivot table with this informations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Group&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;&lt;SPAN lang="en"&gt;document number&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Artikel&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;&lt;SPAN lang="en"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;&lt;SPAN lang="en"&gt;unit price&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;piece quantity&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN lang="en"&gt;total price&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN lang="en"&gt;if(&lt;STRONG&gt;&lt;SPAN lang="en"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt; = piece quantity,'0','1')&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;cup&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Chicken 4x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;54&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;54&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;cup &lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Beef 9x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;45&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;cup&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Shrimp 9x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;45&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;bag&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Fish 5x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;bag&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Curry 7x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;55&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this table is to look at artikel &lt;SPAN lang="en"&gt;which went out for free. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Now i saw all artikel which have the same carton quantity and piece quantity are on a set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The Set Artikel &lt;SPAN lang="en"&gt;must be removed from the table because they dont go out for free the price is on the head from the set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The artikel which have different numbers on carton quantity and piece quantity go out for free.&lt;/P&gt;&lt;P&gt;The different between Piece quantity and carton quantity is: Beef has 9 Cups in a Carton so we have 5 cartons with 9 cups = 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;importend is &lt;SPAN lang="en"&gt;if(&lt;STRONG&gt;&lt;SPAN lang="en"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt; = piece quantity,'0','1') this shows me which artikel has the same carton quantity and piece quantity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Now my question: How can i FIlter it that i have only Artikel with different carton quantity and piece quantity, have a one on the end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I need it to count the the Artikel which go out for free.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;The informations are all from one Table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176517#M628435</guid>
      <dc:creator />
      <dc:date>2016-09-09T12:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176518#M628436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the expressions in your pivot table?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Is "Suppress Zero Values" ticked in Presentation tab of the pivot table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't you maybe create a flag during data load and simply filter proper expression based on this flag? (using set analysis)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Kuba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 20:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176518#M628436</guid>
      <dc:creator />
      <dc:date>2016-09-12T20:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176519#M628437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would move this "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = piece quantity,'0','1')" to the script as a flag like:&lt;/SPAN&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14737113953798689 jive_text_macro" jivemacro_uid="_14737113953798689"&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;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; font-size: 13px;"&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; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = piece quantity,'0','1') as _FlagBlaBla&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from&lt;/SPAN&gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then sum(&amp;lt;_FlagBlaBla = {1}&amp;gt;} total_price) for example.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; 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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;edit: always bear in mind: "Move all complexitiy you can to the script"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;--&amp;gt; So for this example use Flags!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 20:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176519#M628437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T20:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176520#M628438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey thx the idea is great, but i have a problem i get my informations from a other data vie Binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can't creat this flag because on the main data it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The carton quanitity is a fix information from the table but the piece quantity is from a other if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Upper(Einheit)='BUNDLE'or Upper(Einheit)='KARTON'or Upper(Einheit)='STÜCK',Mengetmp*Mengeneinheit,Mengetmp)as piece quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = piece quantity,'0','1') as Flag&lt;/SPAN&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;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; font-size: 13px;"&gt;i get an error he can't find the 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; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 07:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176520#M628438</guid>
      <dc:creator />
      <dc:date>2016-09-14T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176521#M628439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expressions from the pivot is.&lt;/P&gt;&lt;P&gt;To see how many artikel go out for free.&lt;/P&gt;&lt;P&gt;The Document number explain it self, carton quantity is normaly the quntity how many cartons are in the order. Unit price is here 0 because i use a filter to show me all products with a unite price 0 normly it show's me the price from one carton. Pieces are the pieces in a carton. Total Price is the Price from all cartons in the order together to explain you have 5 cartons one carton costs 1€ also 5*1=5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out when carton quantity and the piece quantity are the same, this artikel/order went out for free, when it's different the artikel/order didn't go out for free this artikel are on a set and this is the problem set artikel are shown with a unit/total price 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw it with this formel &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;carton quantity&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; = piece quantity,'0','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; font-size: 13px;"&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; font-size: 13px;"&gt;and now i will filter this but the problem is i get the informations from a other qlikview data via binary.&lt;/SPAN&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;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; font-size: 13px;"&gt;and i can't do a filter wth flag there.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 07:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176521#M628439</guid>
      <dc:creator />
      <dc:date>2016-09-14T07:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176522#M628440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;If not able to do it from script then,&lt;/P&gt;&lt;P&gt;try this exp in place of &lt;STRONG&gt;Piecequantity&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum(Aggr(if(cartonquantity=sum(piecequantity),sum(piecequantity)),Group,Artikel,cartonquantity,documentnumber))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please find the attached application for reference&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 08:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176522#M628440</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-09-14T08:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176523#M628441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Aggr(if(cartonquantity&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;*&lt;STRONG&gt;KeepChar(Artikel,'123456789')&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;=sum(piecequantity),sum(piecequantity)),Group,Artikel,cartonquantity,documentnumber))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 05:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176523#M628441</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-09-15T05:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176524#M628442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for you help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i have no idea how can this help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The think is &lt;STRONG&gt;Piecequantity &lt;/STRONG&gt;is from a other if statement and these numbers are correct my main to look at the quantity. I &lt;SPAN lang="en"&gt;compare the numbers in &lt;STRONG&gt;Piecequantity &lt;/STRONG&gt;with an excell sheet &lt;SPAN lang="en"&gt;where the right numbers are inside. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;So i cant change &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;if(Upper(Einheit)='BUNDLE'or Upper(Einheit)='KARTON'or Upper(Einheit)='STÜCK',Mengetmp*Mengeneinheit,Mengetmp)as piece quantity&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;I need something what do this :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Sum piece quantity when carton quantity and piece quantity are not the same.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;And i have no idea how i can do this. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 09:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176524#M628442</guid>
      <dc:creator />
      <dc:date>2016-09-15T09:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176525#M628443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;your piece quantity is a caluculated fied from script and &lt;/P&gt;&lt;P&gt;you want to keep records where Piece quantity = Cartoon Quantity * Volume , so you can use my exp else share your sample app/data .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 06:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176525#M628443</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-09-16T06:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176526#M628444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is i cant show here the real script from our company. I i changed you exp on for ours but it shows me nothing the field is empty. I have no idea whta is wrong. I have on the pivot dimension produktgroup is an if to filter somethinks documentnumber is fix datum fix artikelnumber fix artikel fix then the fomels quantity karton is sum from one table Actual piece is this sum( {$} Menge) Brutto win is sum( {$} UmsatzBrutto) and this is all what i have. And now i have no idea how i can this filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 11:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Question/m-p/1176526#M628444</guid>
      <dc:creator />
      <dc:date>2016-09-16T11:15:21Z</dc:date>
    </item>
  </channel>
</rss>

