<?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 positives values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506372#M1226405</link>
    <description>&lt;P&gt;Hi expert ,&lt;/P&gt;
&lt;P&gt;I've been struggling the last 2 days&amp;nbsp; on what a thought would be simple but it appears not .&lt;/P&gt;
&lt;P&gt;I just want to sum the positive values . &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2025-02-18 133131.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177663iC9642E87627D7B41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2025-02-18 133131.png" alt="Capture d’écran 2025-02-18 133131.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;1st column = employee name&lt;/LI&gt;
&lt;LI&gt;2nd column = week number&lt;/LI&gt;
&lt;LI&gt;3rd col. sum(numb hours worked)&lt;/LI&gt;
&lt;LI&gt;4 th col. sum(weekly hours contract )&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;as you can see , on week 5 the employee work less than it's weekly hours contract . so in the 4th column total , i just want get rid of negative values and have 4.25 in total in column 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried&amp;nbsp; :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;if (column2&amp;gt; column1 , column 2 - column 1 )&lt;/LI&gt;
&lt;LI&gt;maxrange (expression, 0 )&lt;/LI&gt;
&lt;LI&gt;I used aggr in all possible way&lt;/LI&gt;
&lt;LI&gt;Try to combine if + maxrange + aggr and, so far, the solution haven't been found.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thank you for your help and your expertise !&lt;/P&gt;
&lt;P&gt;Have a nice one&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 12:40:08 GMT</pubDate>
    <dc:creator>sunnybi</dc:creator>
    <dc:date>2025-02-18T12:40:08Z</dc:date>
    <item>
      <title>positives values</title>
      <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506372#M1226405</link>
      <description>&lt;P&gt;Hi expert ,&lt;/P&gt;
&lt;P&gt;I've been struggling the last 2 days&amp;nbsp; on what a thought would be simple but it appears not .&lt;/P&gt;
&lt;P&gt;I just want to sum the positive values . &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2025-02-18 133131.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177663iC9642E87627D7B41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2025-02-18 133131.png" alt="Capture d’écran 2025-02-18 133131.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;1st column = employee name&lt;/LI&gt;
&lt;LI&gt;2nd column = week number&lt;/LI&gt;
&lt;LI&gt;3rd col. sum(numb hours worked)&lt;/LI&gt;
&lt;LI&gt;4 th col. sum(weekly hours contract )&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;as you can see , on week 5 the employee work less than it's weekly hours contract . so in the 4th column total , i just want get rid of negative values and have 4.25 in total in column 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried&amp;nbsp; :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;if (column2&amp;gt; column1 , column 2 - column 1 )&lt;/LI&gt;
&lt;LI&gt;maxrange (expression, 0 )&lt;/LI&gt;
&lt;LI&gt;I used aggr in all possible way&lt;/LI&gt;
&lt;LI&gt;Try to combine if + maxrange + aggr and, so far, the solution haven't been found.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thank you for your help and your expertise !&lt;/P&gt;
&lt;P&gt;Have a nice one&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 12:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506372#M1226405</guid>
      <dc:creator>sunnybi</dc:creator>
      <dc:date>2025-02-18T12:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: positives values</title>
      <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506378#M1226406</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/321734"&gt;@sunnybi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;try with:&lt;/P&gt;
&lt;P&gt;Sum(If(&lt;SPAN class="hljs-selector-attr"&gt;[Worked Hours]&lt;/SPAN&gt; - &lt;SPAN class="hljs-selector-attr"&gt;[Contract Hours]&lt;/SPAN&gt; &amp;gt; &lt;SPAN class="hljs-number"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="hljs-selector-attr"&gt;[Worked Hours]&lt;/SPAN&gt; - &lt;SPAN class="hljs-selector-attr"&gt;[Contract Hours]&lt;/SPAN&gt;))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 13:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506378#M1226406</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2025-02-18T13:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: positives values</title>
      <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506388#M1226407</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;
&lt;P&gt;thanks for your reply, but unfortunately ,the total is missing... &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177666i5AAEEF19F0EB238F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2.png" alt="Capture d’écran 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 14:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506388#M1226407</guid>
      <dc:creator>sunnybi</dc:creator>
      <dc:date>2025-02-18T14:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: positives values</title>
      <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506413#M1226408</link>
      <description>&lt;P&gt;Let's see if I understood correctly your target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the whole expression with &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;SUM&lt;/STRONG&gt;&lt;FONT color="#333333"&gt; and you'll get it&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="F_B_0-1739891539514.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177670iC08CCE37C9006F89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="F_B_0-1739891539514.png" alt="F_B_0-1739891539514.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 15:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506413#M1226408</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2025-02-18T15:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: positives values</title>
      <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506418#M1226409</link>
      <description>&lt;P&gt;Hi F_B, &lt;/P&gt;
&lt;P&gt;you're getting close, but there's&amp;nbsp; a misunderstanding. My bad ! (english is not natural to me)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it's opposite way, what&amp;nbsp; i want it's remaining hours that the employee haven"t done per week . (check week 5 ) &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2.png" style="width: 746px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177672iC83E3DDDB6EB0495/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2.png" alt="Capture d’écran 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried your idea in the last column but as you can see the results is not right. &lt;/P&gt;
&lt;P&gt;In your picture , did you use sum expression for worked hours ,and contract hours ? how come there's no total ? &lt;/P&gt;
&lt;P&gt;In my case , I have to use use sum because the datas are on daily basis and shown into weeks. &lt;/P&gt;
&lt;P&gt;Anyway, Thank you for you precious help &lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 15:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506418#M1226409</guid>
      <dc:creator>sunnybi</dc:creator>
      <dc:date>2025-02-18T15:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: positives values</title>
      <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506420#M1226410</link>
      <description>&lt;P&gt;Without seeing the underlying data, it's a bit hard to tell... that said, perhaps something like:&lt;/P&gt;
&lt;P&gt;Sum(RangeMax(0, Aggr(Sum(YourFormulaHere),YourDimensionsHere))&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 15:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506420#M1226410</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-02-18T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: positives values</title>
      <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506421#M1226411</link>
      <description>&lt;P&gt;it's understadable, wish we could do visio&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 15:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506421#M1226411</guid>
      <dc:creator>sunnybi</dc:creator>
      <dc:date>2025-02-18T15:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: positives values</title>
      <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506426#M1226412</link>
      <description>&lt;P&gt;Finally , I had something !&lt;/P&gt;
&lt;P&gt;In a straight table , I change &lt;U&gt;total function&lt;/U&gt; from Auto , to Sum . And it worked !! &lt;/P&gt;
&lt;P&gt;Thing is, this feature don"t exist in a cross table . any advice? &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2.png" style="width: 747px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177673i96BBA7F7C2393552/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2.png" alt="Capture d’écran 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 15:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506426#M1226412</guid>
      <dc:creator>sunnybi</dc:creator>
      <dc:date>2025-02-18T15:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: positives values</title>
      <link>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506428#M1226413</link>
      <description>&lt;P&gt;Hey Or, &lt;/P&gt;
&lt;P&gt;thank you for your advice , but ...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177674i00F0E3857CDE2DBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2.png" alt="Capture d’écran 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;feels like this is getting close , but something missing....&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 15:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/positives-values/m-p/2506428#M1226413</guid>
      <dc:creator>sunnybi</dc:creator>
      <dc:date>2025-02-18T15:51:30Z</dc:date>
    </item>
  </channel>
</rss>

