<?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: Conditional Formatting by position in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236350#M869502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an ID field as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, AutoNumber([Header 1]) as ID Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Header 1, Header 2, Header 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 1, Component 1, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 1, Component 2, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 2, Component 1, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 2, Component 2, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 2, Component 3, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 3, Component 1, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 4, Component 2, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 4, Component 3, 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use below expression for background color.&lt;/P&gt;&lt;P&gt;=IF(Even(ID),Red(),Green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check enclosed file for sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2016 13:15:10 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2016-11-28T13:15:10Z</dc:date>
    <item>
      <title>Conditional Formatting by position</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236346#M869494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table showing two levels of information - a course and the components in that course (e.g. exam, coursework). I want to shade the background of the cells depending on which course it is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Course 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Component 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Course 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Component 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Course 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Component 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Score&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Course 2&lt;/TD&gt;&lt;TD&gt;Component 2&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Score&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Course 2&lt;/TD&gt;&lt;TD&gt;Component 3&lt;/TD&gt;&lt;TD&gt;Score&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example - the two rows with Course 1 in would be blue and the three rows where Course 2 is would be green (and then back to blue if there was a course 3). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how many components each course might have. The only thing I can do is note that the course has changed. I've tried using 'Above' and 'Below' but I can't get it to work. So I create a new expression which is just the course ID (called [Course]) and then I do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Above([Course])=Below([Course]), RGB(235,100,30), RGB(152,87,174)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes everything one colour!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236346#M869494</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting by position</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236347#M869496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try like below for sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If([Header 1] = 'Course 1', Red(), If([Header 1] = 'Course 2', Green(), Blue()))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 13:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236347#M869496</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-11-28T13:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting by position</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236348#M869498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your reply. The problem is I don't know which courses they will actually be since they will be depending on which tutor has logged in to the system so I can't colour code them all. There are around 800 in total!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want them to be shaded differently so that when you see a long list you can see where each new course starts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 13:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236348#M869498</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2016-11-28T13:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting by position</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236349#M869500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the below helps:&lt;/P&gt;&lt;P&gt;Go to the dimension and expand the plus sign next to it.&lt;/P&gt;&lt;P&gt;Select Background color and click on Edit.&lt;/P&gt;&lt;P&gt;Now use the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;=If([Header 1]='Course 1',Blue(),If([Header 1]='Course 2',Green(),Blue()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apply the same expression for all the dimensions and you will get the result. Hope this helps.,...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 13:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236349#M869500</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-11-28T13:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting by position</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236350#M869502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an ID field as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, AutoNumber([Header 1]) as ID Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Header 1, Header 2, Header 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 1, Component 1, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 1, Component 2, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 2, Component 1, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 2, Component 2, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 2, Component 3, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 3, Component 1, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 4, Component 2, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; Course 4, Component 3, 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use below expression for background color.&lt;/P&gt;&lt;P&gt;=IF(Even(ID),Red(),Green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check enclosed file for sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 13:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236350#M869502</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-28T13:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting by position</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236351#M869503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Manish - that worked perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 14:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-by-position/m-p/1236351#M869503</guid>
      <dc:creator>alisonpwallis</dc:creator>
      <dc:date>2016-11-28T14:07:51Z</dc:date>
    </item>
  </channel>
</rss>

