<?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: Not having values for each field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-having-values-for-each-field/m-p/563448#M555886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a reason why you created a special client 'TOTAL', i.e. calculating the TOTAL in the script, having a static total value? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, I would suggest to use the total qualifier in the sum() aggregation function instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=sum({&amp;lt;Date ={"&amp;gt;=$(=DateStart) &amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;/&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum(TOTAL {&amp;lt;Date ={"&amp;gt;=$(=DateStart)&amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[edit]:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Ah, I see, your total values is the total market, and your clients don't add up to the total value, i.e. you are looking at a subset of clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;But is there a reason to handle the total market share as a client?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[edit2]:&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum(TOTAL {&amp;lt;client={'TOTAL'},Date ={"&amp;gt;=$(=DateStart)&amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2013 21:09:25 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-07-11T21:09:25Z</dc:date>
    <item>
      <title>Not having values for each field</title>
      <link>https://community.qlik.com/t5/QlikView/Not-having-values-for-each-field/m-p/563447#M555885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i had advanced a little in this problem, i am using a straight table where I want to display the Market Share percentages of each client from the total market.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Date ={"&amp;gt;=$(=DateStart) &amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;client={'TOTAL'},Date ={"&amp;gt;=$(=DateStart)&amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a list box where i select 1 or more clients, and i have included in that list box the client 'TOTAL' where is the total amount of the clients.&amp;nbsp; therefore the equation will be something like harold's sales / total sales = Market Share of Harold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried many things, I even make text objects for each part of the equation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This part in the text object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;client={'TOTAL'},Date ={"&amp;gt;=$(=DateStart)&amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;Gave me what i wanted i amount of the total sales, if i made any selections of any clients it gave me the amount i wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this part:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date ={"&amp;gt;=$(=DateStart) &amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;will give me the sum of the selected cllients, that is good in the text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that in the straight chart, at this moment shows: if one client is selected, at the end of the row where the Market Share should be is an ' - ' and at the superior row there's the value.&lt;/P&gt;&lt;P&gt;(Because i checked show expression total).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i select more than one client, so i can see which client has bigger market share, is the same in every row at the last colum where the Market Share should be there's an ' - ', and at the top row of every selection is the Market Share of all the products selected over the TOTAL (Because i checked show expression total).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, i am struggling here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what this expressions get me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="126" style="width: 260px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="139"&gt;Producto&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="56"&gt;Feb 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none;"&gt;0,79985&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Harold&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Frank&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;James&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Pete&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what i wish i could have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="110" style="width: 273px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="139"&gt;Producto&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="56"&gt;Feb 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;0,79985&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;Harold&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;0,251&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;Frank&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;0,220&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;James&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;0,170&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;Pete&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;0,155&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 20:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-having-values-for-each-field/m-p/563447#M555885</guid>
      <dc:creator />
      <dc:date>2013-07-11T20:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Not having values for each field</title>
      <link>https://community.qlik.com/t5/QlikView/Not-having-values-for-each-field/m-p/563448#M555886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a reason why you created a special client 'TOTAL', i.e. calculating the TOTAL in the script, having a static total value? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, I would suggest to use the total qualifier in the sum() aggregation function instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=sum({&amp;lt;Date ={"&amp;gt;=$(=DateStart) &amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;/&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum(TOTAL {&amp;lt;Date ={"&amp;gt;=$(=DateStart)&amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;[edit]:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Ah, I see, your total values is the total market, and your clients don't add up to the total value, i.e. you are looking at a subset of clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;But is there a reason to handle the total market share as a client?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[edit2]:&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum(TOTAL {&amp;lt;client={'TOTAL'},Date ={"&amp;gt;=$(=DateStart)&amp;lt;=$(=DateEnd)"},Month=,Year=&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 21:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-having-values-for-each-field/m-p/563448#M555886</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-11T21:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not having values for each field</title>
      <link>https://community.qlik.com/t5/QlikView/Not-having-values-for-each-field/m-p/563449#M555887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i would use that if that was the case, but, the data comes from a file that already has it. And there are also clients named like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Family Smith -----2500&lt;/P&gt;&lt;P&gt;John Smith&amp;nbsp;&amp;nbsp; -----1500&lt;/P&gt;&lt;P&gt;Anna Smith&amp;nbsp; -----1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the case i didn´t have the client = 'Total' i will still have those clients = ' Family * '&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 21:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-having-values-for-each-field/m-p/563449#M555887</guid>
      <dc:creator />
      <dc:date>2013-07-11T21:13:47Z</dc:date>
    </item>
  </channel>
</rss>

