<?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: color banding on multiple rows (using rank() ?) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382328#M31455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize, my misunderstanding.&lt;/P&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;In Script&lt;/P&gt;&lt;P&gt;Load *,AutoNumber(Pt&amp;amp;Date) as Flag&lt;/P&gt;&lt;P&gt;and condition like this&lt;/P&gt;&lt;P&gt;If(Even(Flag),Red(),Green())&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183431_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2017 17:16:55 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2017-11-15T17:16:55Z</dc:date>
    <item>
      <title>color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382319#M31446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like this should be easy but I cannot get this to work.&amp;nbsp; I want to alternate colors for rows of a table but the rows will be in groups of variable size.&amp;nbsp; I thought that I could use the rank function to denote the groups and then flag the rank as even or odd to control the color banding, but this is not working for me for some reason.&amp;nbsp; Here is some sample data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Pt, Date, Product, Order&lt;/P&gt;&lt;P&gt;123, 1/1/2017, Apples, Order1&lt;/P&gt;&lt;P&gt;123, 1/1/2017, Pears, Order1&lt;/P&gt;&lt;P&gt;123, 1/1/2017, Oranges, Order2&lt;/P&gt;&lt;P&gt;123, 2/1/2017, Apples, Order3&lt;/P&gt;&lt;P&gt;123, 2/1/2017, Oranges, Order4&lt;/P&gt;&lt;P&gt;123, 2/1/2017, Bananas, Order5&lt;/P&gt;&lt;P&gt;123, 3/3/2017, Bananas, Order6&lt;/P&gt;&lt;P&gt;123, 3/3/2017, Pears, Order7&lt;/P&gt;&lt;P&gt;123, 3/3/2017, Apples, Order8&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I am getting, The column Pt is first in the sort order...I know the rank function depends on sort order.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-11-13_11-42-22.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183094_2017-11-13_11-42-22.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am after is this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-11-13_11-42-22_2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/183107_2017-11-13_11-42-22_2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&amp;nbsp; Feel free to suggest an easier way to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 17:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382319#M31446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-13T17:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382320#M31447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try,&lt;/P&gt;&lt;P&gt;if(mod(num#(Date(Date,'D')),2) = 0,red(),green())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 05:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382320#M31447</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-11-14T05:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382321#M31448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its an interesting solution, but in the example data I provided the 'D' for each date is an odd number so this formula colors the entire chart green.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 15:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382321#M31448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382322#M31449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used Expression is: if(mod(num#(Date(Date#(Date,'D/M/YYYY'),'D')),2)=0,White(),green())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 04:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382322#M31449</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-11-15T04:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382323#M31450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try Something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Even(Day(Date))=0,Red(),Green())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 05:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382323#M31450</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-11-15T05:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382324#M31451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 05:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382324#M31451</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-11-15T05:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382325#M31452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All of these solutions depend on the assumption that the dates are consecutive in some way, either consecutive days or months, etc.&amp;nbsp; This assumption is not a good one for my data.&amp;nbsp; If I change the sample data to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load * Inline [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Pt, Date, Product, Order&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;123, 1/1/2017, Apples, Order1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;123, 1/1/2017, Pears, Order1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;123, 1/1/2017, Oranges, Order2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;123, 2/1/2017, Apples, Order3&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;123, 2/1/2017, Oranges, Order4&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;123, 2/1/2017, Bananas, Order5&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;123, 4/3/2017, Bananas, Order6&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;123, 4/3/2017, Pears, Order7&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;123, 4/3/2017, Apples, Order8&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This solution does not produce the desired results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 16:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382325#M31452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T16:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382326#M31453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;If(Even(RowNo(TOTAL)),Red(),Green())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 16:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382326#M31453</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-15T16:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382327#M31454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Produces this result....not what I am after.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-11-15_10-45-16.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183423_2017-11-15_10-45-16.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 16:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382327#M31454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T16:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382328#M31455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize, my misunderstanding.&lt;/P&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;In Script&lt;/P&gt;&lt;P&gt;Load *,AutoNumber(Pt&amp;amp;Date) as Flag&lt;/P&gt;&lt;P&gt;and condition like this&lt;/P&gt;&lt;P&gt;If(Even(Flag),Red(),Green())&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183431_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 17:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382328#M31455</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-15T17:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382329#M31456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This method works if the data displayed in the chart are the complete contents of the loaded table.&amp;nbsp; However, the data in the table I want to display is the result of selections in the app and so this solution could also produce consecutive colored bands. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 17:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382329#M31456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T17:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382330#M31457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/223856"&gt;brianrmacdonald&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you seen my solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 17:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382330#M31457</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-11-15T17:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: color banding on multiple rows (using rank() ?)</title>
      <link>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382331#M31458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I looked at it.&amp;nbsp; It depends on the assumption that consecutive dates in the chart are even/odd which is not a good assumption.&amp;nbsp; It is entirely possible that the selections made by the user will include all even days or all odd dates or random occurrences of either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 17:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/color-banding-on-multiple-rows-using-rank/m-p/1382331#M31458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T17:31:40Z</dc:date>
    </item>
  </channel>
</rss>

