<?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 to put a loop in my expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898257#M1011449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It almost work. But everything is reaching 12.5% like (CO2: 8.5% and 4.5% / Gas: 11% and 1.5% etc...)&lt;/P&gt;&lt;P&gt;How to make it reach 100%??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thank you for the answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 14:29:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-07T14:29:26Z</dc:date>
    <item>
      <title>how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898252#M1011444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help for a bar chart where i need to see everything over 100%. &lt;/P&gt;&lt;P&gt;I have tried to check the box "relative" and it's close to work but the problem is:&lt;/P&gt;&lt;P&gt;If I select only one of my categories then this category is well over 100% (f.e.g. 56% True and 44% False)&lt;/P&gt;&lt;P&gt;But if I want to see all my categories then the total is over 100% but each one of the category is over 25%, 5% etc...&lt;/P&gt;&lt;P&gt;That's why I wanted to put a loop "foreach" like "foreach categories, do the expression" but it seems like I can't put a loop in an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure to be clear in my request. So I link to pictures: What I have and what I need&lt;IMG alt="HaveThis.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85927_HaveThis.PNG" style="height: auto;" /&gt;&lt;IMG alt="needThis.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85943_needThis.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 13:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898252#M1011444</guid>
      <dc:creator />
      <dc:date>2015-05-07T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898253#M1011445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you mind putting your expression?&lt;/P&gt;&lt;P&gt;Let´s play with some SUM(total &amp;lt;category&amp;gt; values)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 13:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898253#M1011445</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-07T13:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898254#M1011446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached an example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898254#M1011446</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-07T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898255#M1011447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a: count(values).&lt;/P&gt;&lt;P&gt;I just tried the SUM(total &amp;lt;category&amp;gt; values) and also count(total &amp;lt;category&amp;gt; values) but none of them is working..&lt;/P&gt;&lt;P&gt;And I can't open your attached example because I'm using a personal edition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898255#M1011447</guid>
      <dc:creator />
      <dc:date>2015-05-07T14:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898256#M1011448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;count(values).&lt;/SPAN&gt; / &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;count&lt;/SPAN&gt;(total &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;lt;category&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;values&lt;/SPAN&gt;) and format your number as percent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898256#M1011448</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-07T14:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898257#M1011449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It almost work. But everything is reaching 12.5% like (CO2: 8.5% and 4.5% / Gas: 11% and 1.5% etc...)&lt;/P&gt;&lt;P&gt;How to make it reach 100%??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thank you for the answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898257#M1011449</guid>
      <dc:creator />
      <dc:date>2015-05-07T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898258#M1011450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&amp;nbsp; it.&lt;/P&gt;&lt;P&gt;Sum(fieldValue)/Sum(Total &amp;lt;Category&amp;gt; fielValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(fieldValue)/Sum(Total fielValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and&amp;nbsp; Properties--Tag Number&amp;nbsp; Select &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;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85942_1.PNG" style="height: 442px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898258#M1011450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-07T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898259#M1011451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still at the same point.&lt;/P&gt;&lt;P&gt;See what I get. I'm getting close but still not solved.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="now.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85944_now.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898259#M1011451</guid>
      <dc:creator />
      <dc:date>2015-05-07T14:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898260#M1011452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 8 categories and that's why everything is over 12.5% and not 100%. I still have my "loop" problem. I need somewhere to put this foreach loop isnt it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898260#M1011452</guid>
      <dc:creator />
      <dc:date>2015-05-07T14:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898261#M1011453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can&amp;nbsp; share&amp;nbsp; your&amp;nbsp; app please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898261#M1011453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-07T14:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898262#M1011454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but I can't share it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898262#M1011454</guid>
      <dc:creator />
      <dc:date>2015-05-07T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898263#M1011455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;scramble your data if this is sensitive or try to create an example application to share, it is difficult to resolve without seeing what your underlying data model looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898263#M1011455</guid>
      <dc:creator />
      <dc:date>2015-05-07T15:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898264#M1011456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tristan,&lt;/P&gt;&lt;P&gt;It's strange because it should work.&lt;/P&gt;&lt;P&gt;I have build an example and it produces the expected result.&lt;/P&gt;&lt;P&gt;In the script I have a table like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;Category, Status, Value&lt;BR /&gt;co2, 1, 45&lt;BR /&gt;coal, 1, 6&lt;BR /&gt;crude, 1, 89&lt;BR /&gt;formula, 1, 124&lt;BR /&gt;fuel, 1, 34&lt;BR /&gt;co2, 0, 8&lt;BR /&gt;coal, 0, 15&lt;BR /&gt;crude, 0, 10&lt;BR /&gt;formula, 0, 24&lt;BR /&gt;fuel, 0, 50&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have a chart with Category and Status in dimension and the following expression&amp;nbsp; =&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And I have choosed in the number format Integer and Show in Percent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898264#M1011456</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2015-05-07T15:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898265#M1011457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, your example is working, I tried it. Then I don't get why it's not working with my datas..&lt;/P&gt;&lt;P&gt;So thanks for helping, I ll try by my own now to solve it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank all of you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898265#M1011457</guid>
      <dc:creator />
      <dc:date>2015-05-07T15:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a loop in my expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898266#M1011458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it's working finally !!!! I have to not to check the "relative" box! Thank You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-put-a-loop-in-my-expression/m-p/898266#M1011458</guid>
      <dc:creator />
      <dc:date>2015-05-07T15:33:18Z</dc:date>
    </item>
  </channel>
</rss>

