<?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: Assign % to a row in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683927#M52084</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I'm afraid they will want to change the number of intervals&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":downcast_face_with_sweat:"&gt;😓&lt;/span&gt;. Let's see if I can make them change their mind!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 18:25:14 GMT</pubDate>
    <dc:creator>agbcn</dc:creator>
    <dc:date>2020-03-11T18:25:14Z</dc:date>
    <item>
      <title>Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1681838#M51897</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got a new requirement which is driving me crazy.&lt;/P&gt;&lt;P&gt;I need to calculate the number of days between two dates (already did it) and taking into consideration that number of days, I have to assign a % to that row. Init date will be fixed, but end date can change considering the month of user's choice. For example, the #Days could be 30 if&amp;nbsp; end date is considered today, but it would be 10 if user choose 20 days before. The % values must be read from an Excel file (I know how to do that) so users can change them if needed. If days are between 0 and 30 days then 90 is assigned. If days are between 31 and 60, then 80 is assigned, and so on ...&lt;/P&gt;&lt;P&gt;To make a long story short, if the values are:&lt;/P&gt;&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp;#Days&amp;nbsp; &amp;nbsp; &amp;nbsp;%&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 90&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 65&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 70&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best approach? Maybe IntervalMatch?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 21:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1681838#M51897</guid>
      <dc:creator>agbcn</dc:creator>
      <dc:date>2020-03-04T21:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1682158#M51938</link>
      <description>&lt;P&gt;Yes Intervalmatch will do, try this script:&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;Load * inline [&lt;BR /&gt;id,#Days&lt;BR /&gt;1,20&lt;BR /&gt;2,35&lt;BR /&gt;3,65&lt;BR /&gt;4,120&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Interval_Table:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;START,STOP,%&lt;BR /&gt;0,30,90&lt;BR /&gt;31,60,80&lt;BR /&gt;61,90,70&lt;BR /&gt;91,120,60&lt;BR /&gt;121,150,50&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Left join(Test)&lt;BR /&gt;IntervalMatch(#Days)&lt;BR /&gt;Load START,STOP Resident Interval_Table;&lt;/P&gt;&lt;P&gt;Left join(Test)&lt;BR /&gt;Load START,STOP,% Resident Interval_Table;&lt;/P&gt;&lt;P&gt;Drop Table Interval_Table;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 15:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1682158#M51938</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2020-03-05T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1682688#M51965</link>
      <description>&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;I have a doubt with your solution. #Days won't be a fixed number. It will change depending on when its calculated, son I'm not sure it can be done on script.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 11:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1682688#M51965</guid>
      <dc:creator>agbcn</dc:creator>
      <dc:date>2020-03-08T11:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1682696#M51966</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try the following code&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think It is useful to you&lt;/P&gt;&lt;P&gt;ABC:&lt;BR /&gt;LOAD *,&lt;BR /&gt;if((#days/30)&amp;gt;=0 and(#days/30)&amp;lt;=1,90,&lt;BR /&gt;if((#days/30)&amp;gt;1 and (#days/30)&amp;lt;=2,80,&lt;BR /&gt;if((#days/30)&amp;gt;2 and (#days/30)&amp;lt;=3,70,&lt;BR /&gt;if((#days/30)&amp;gt;3 and (#days/30)&amp;lt;=4,60,&lt;BR /&gt;if((#days/30)&amp;gt;4 and (#days/30)&amp;lt;=5,50))))) as Row%&lt;BR /&gt;;&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;id, #days&lt;BR /&gt;1,20&lt;BR /&gt;2,35&lt;BR /&gt;3,65&lt;BR /&gt;4,120&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 14:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1682696#M51966</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-03-08T14:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1682708#M51970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Nitin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That was my first idea. However, the percentage must be read from an Excel file as the user may change the percentage assigned to every interval. They coud also add new percentages.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 18:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1682708#M51970</guid>
      <dc:creator>agbcn</dc:creator>
      <dc:date>2020-03-08T18:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683017#M51999</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you provide some sample data&lt;/P&gt;&lt;P&gt;That will be helpful to find solution&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 18:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683017#M51999</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-03-09T18:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683052#M52003</link>
      <description>&lt;P&gt;Exactly #days should be a calculated value. But I don’t have your calculated so this is example calculated data, try it an you will like it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 21:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683052#M52003</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2020-03-09T21:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683312#M52034</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Here you are some data from today's calculation&lt;/P&gt;&lt;TABLE width="549px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="182px"&gt;Id&lt;/TD&gt;&lt;TD width="183px"&gt;%&lt;/TD&gt;&lt;TD width="183px"&gt;Days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="182px"&gt;1289352&lt;/TD&gt;&lt;TD width="183px"&gt;10%&lt;/TD&gt;&lt;TD width="183px"&gt;185&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="182px"&gt;1289488&lt;/TD&gt;&lt;TD width="183px"&gt;90%&lt;/TD&gt;&lt;TD width="183px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="182px"&gt;1289570&lt;/TD&gt;&lt;TD width="183px"&gt;90%&lt;/TD&gt;&lt;TD width="183px"&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="182px"&gt;1289853&lt;/TD&gt;&lt;TD width="183px"&gt;80%&lt;/TD&gt;&lt;TD width="183px"&gt;64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="182px"&gt;1289855&lt;/TD&gt;&lt;TD width="183px"&gt;90%&lt;/TD&gt;&lt;TD width="183px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="182px"&gt;1289858&lt;/TD&gt;&lt;TD width="183px"&gt;90%&lt;/TD&gt;&lt;TD width="183px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="182px"&gt;1290002&lt;/TD&gt;&lt;TD width="183px"&gt;90%&lt;/TD&gt;&lt;TD width="183px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="182px"&gt;1290005&lt;/TD&gt;&lt;TD width="183px"&gt;90%&lt;/TD&gt;&lt;TD width="183px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="182px"&gt;1290120&lt;/TD&gt;&lt;TD width="183px"&gt;10%&lt;/TD&gt;&lt;TD width="183px"&gt;374&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;However, if calculations were done one month ago (or today but choosing a date 30 days ago), Days would change and therefore % might also change.&lt;/P&gt;&lt;P&gt;Let me know if you need more info.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 13:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683312#M52034</guid>
      <dc:creator>agbcn</dc:creator>
      <dc:date>2020-03-10T13:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683317#M52035</link>
      <description>&lt;P&gt;so you mean days are calculated at the frontend? if so, you are correct, intervalmatch won't work.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683317#M52035</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2020-03-10T14:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683330#M52036</link>
      <description>&lt;P&gt;Yes, days are calculated at frontend which makes it more difficult.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683330#M52036</guid>
      <dc:creator>agbcn</dc:creator>
      <dc:date>2020-03-10T14:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683493#M52043</link>
      <description>&lt;P&gt;Something like this (attachment) will do?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 19:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683493#M52043</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2020-03-10T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683598#M52052</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;jochem_zw,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I must be doing something wrong but I can't see anything when I drop the file in Qlik Sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 07:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683598#M52052</guid>
      <dc:creator>agbcn</dc:creator>
      <dc:date>2020-03-11T07:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683605#M52053</link>
      <description>&lt;P&gt;ah sorry it is a qlikview file. to reproduce it, create a table with Id and Days as dimension and this as the measure:&lt;/P&gt;&lt;P&gt;if(Days&amp;gt;=0 and Days&amp;lt;=30&lt;BR /&gt;,90&lt;BR /&gt;,if(Days&amp;gt;30 and Days&amp;lt;=60&lt;BR /&gt;,80&lt;BR /&gt;,if(Days&amp;gt;60 and Days&amp;lt;=90&lt;BR /&gt;,70))) etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 07:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683605#M52053</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2020-03-11T07:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683612#M52054</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you looking like see below screenshot&lt;/P&gt;&lt;P&gt;use Id and days as dimension and write&amp;nbsp;&lt;/P&gt;&lt;P&gt;expression like&lt;/P&gt;&lt;P&gt;if(Days&amp;gt;=0 and Days&amp;lt;=30 ,90 ,&lt;BR /&gt;if(Days&amp;gt;30 and Days&amp;lt;=60 ,80 ,&lt;BR /&gt;if(Days&amp;gt;60 and Days&amp;lt;=90 ,70 ,&lt;BR /&gt;if(Days&amp;gt;90 and Days&amp;lt;=120,60 ,&lt;BR /&gt;if(Days&amp;gt;120 and Days&amp;lt;=150,50,&lt;BR /&gt;if(Days&amp;gt;150 and Days&amp;lt;=180,40,&lt;BR /&gt;if(Days&amp;gt;180 and Days&amp;lt;=210,30)))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="%ROW.PNG" style="width: 590px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29875i4B19F8805C80CDA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="%ROW.PNG" alt="%ROW.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ROW.PNG" style="width: 238px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29876i59409971D1738460/image-size/large?v=v2&amp;amp;px=999" role="button" title="ROW.PNG" alt="ROW.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 08:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683612#M52054</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-03-11T08:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683669#M52060</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hardcode the intervals and % was my first idea. However, I can't hardcode the intervals as user might decide to change them pretty often. They must be read from an Excel file. Users could change the interval (from 0-30 to 0-45 for instance) and even the %. They need to do this because they need to find the best intervals and % to their business case.&lt;/P&gt;&lt;P&gt;Thanks for your reply and your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683669#M52060</guid>
      <dc:creator>agbcn</dc:creator>
      <dc:date>2020-03-11T09:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683673#M52062</link>
      <description>&lt;P&gt;as long as the number of intervals is fixed, you could do it by creating an excel with the intervals. and load this excel into the model and assign variables to the interval fields, these variables you can use in your formula. The formula is fixed so the number of intervals also has to be fixed, same for the variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 10:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683673#M52062</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2020-03-11T10:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Assign % to a row</title>
      <link>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683927#M52084</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I'm afraid they will want to change the number of intervals&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":downcast_face_with_sweat:"&gt;😓&lt;/span&gt;. Let's see if I can make them change their mind!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 18:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assign-to-a-row/m-p/1683927#M52084</guid>
      <dc:creator>agbcn</dc:creator>
      <dc:date>2020-03-11T18:25:14Z</dc:date>
    </item>
  </channel>
</rss>

