<?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: set the value for several rows on the same date depending on the column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040867#M85745</link>
    <description>&lt;P&gt;&lt;SPAN&gt;based on your answer, i already found the answer, thank you very much&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 11:06:09 GMT</pubDate>
    <dc:creator>Modiz</dc:creator>
    <dc:date>2023-02-22T11:06:09Z</dc:date>
    <item>
      <title>set the value for several rows on the same date depending on the column</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040464#M85729</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Hi,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I have tables with columns: date, category, quantity, binary. I would like to add a set expression in the fourth column that will depend on the binary column and partitioned after the date column. If there was at least one negative number in the quantity column on a given day, I would like to put a value of 1 in the ANSWER column for each row, otherwise a value of 0.&lt;/P&gt;
&lt;TABLE width="390"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="124"&gt;date&lt;/TD&gt;
&lt;TD width="64"&gt;category&lt;/TD&gt;
&lt;TD width="64"&gt;quantity&lt;/TD&gt;
&lt;TD width="74"&gt;binary&lt;/TD&gt;
&lt;TD width="64"&gt;ANSWER&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;2023-02-20&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;A&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;50&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;2023-02-20&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;B&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;100&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;2023-02-20&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;C&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;-1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;2023-02-21&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;A&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;30&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;2023-02-21&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;B&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;40&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;2023-02-21&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;C&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;20&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Can anyone help me?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040464#M85729</guid>
      <dc:creator>Modiz</dc:creator>
      <dc:date>2023-02-21T15:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: set the value for several rows on the same date depending on the column</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040500#M85733</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if(aggr(nodistinct min(quantity),date)&amp;lt;0,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The aggr finds the minimum quantity for each date. If we leave the nodistinct keyword out the aggr function only fills one row per date - with the nodisticnt keyword, the aggregation is calculated for every row.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Elin_Rse_0-1676997608800.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101028i00F2CB01A75478DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Elin_Rse_0-1676997608800.png" alt="Elin_Rse_0-1676997608800.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please like and mark my answer as a solution, if it resolved your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 16:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040500#M85733</guid>
      <dc:creator>E_Røse</dc:creator>
      <dc:date>2023-02-21T16:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: set the value for several rows on the same date depending on the column</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040733#M85739</link>
      <description>&lt;P&gt;As below&lt;/P&gt;
&lt;P&gt;=Max(TOTAL &amp;lt;date&amp;gt; binary)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 07:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040733#M85739</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-02-22T07:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: set the value for several rows on the same date depending on the column</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040857#M85744</link>
      <description>&lt;P&gt;thanks,&amp;nbsp;&lt;SPAN&gt;I don't think I asked the question very well. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What if there is no quantity column in the data, and the binary column would be a string, instead of 0 is 'yes', instead of 1 is 'no', but there can also be an answer of "maybe".&amp;nbsp; How to get column "answer"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 10:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040857#M85744</guid>
      <dc:creator>Modiz</dc:creator>
      <dc:date>2023-02-22T10:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: set the value for several rows on the same date depending on the column</title>
      <link>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040867#M85745</link>
      <description>&lt;P&gt;&lt;SPAN&gt;based on your answer, i already found the answer, thank you very much&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 11:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-the-value-for-several-rows-on-the-same-date-depending-on-the/m-p/2040867#M85745</guid>
      <dc:creator>Modiz</dc:creator>
      <dc:date>2023-02-22T11:06:09Z</dc:date>
    </item>
  </channel>
</rss>

