<?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 cell background according to field selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317464#M582705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It really simple :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;day of the week on lines and week number on columns. See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 12:38:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-14T12:38:01Z</dc:date>
    <item>
      <title>Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317460#M582701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QVers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to find an answer in other discussions but nothing applied in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field 'Date', and a Pivot Table used as a calendar (expression = 'Date'). But now I would like to change the background color according to the selection in the field, i.e. :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if 'Date' in FieldSelection('Date'), green,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;else, white&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find a way to do it without set analysis and since I ahev no aggregation, can't use it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone has a good idea, thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 09:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317460#M582701</guid>
      <dc:creator />
      <dc:date>2011-11-14T09:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317461#M582702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add this color expression to you expression by clicking on the little plus infort of your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expr.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/8603_expr.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could use the color settings on the 'Visual Cues' tab&lt;/P&gt;&lt;P&gt;Set Normal to green and Upper and Lower to white, and fill in the right field name. (this only works if you select 1 value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck,&lt;/P&gt;&lt;P&gt;Dennis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 10:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317461#M582702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-14T10:06:09Z</dc:date>
    </item>
    <item>
      <title>Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317462#M582703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I know where to set a background color expression, the problem is to find a correct expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to be able to have many dates selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as soon as some random dates are selected (through an other object), I want the selected dates background to turn green on the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the expression I wrote previously doesn't even exist. It was just to give an idea of what I want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 10:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317462#M582703</guid>
      <dc:creator />
      <dc:date>2011-11-14T10:31:40Z</dc:date>
    </item>
    <item>
      <title>Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317463#M582704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does your pivot looks like? Can you share it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 11:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317463#M582704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-14T11:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317464#M582705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It really simple :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;day of the week on lines and week number on columns. See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 12:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317464#M582705</guid>
      <dc:creator />
      <dc:date>2011-11-14T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317465#M582706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;click on + before expression &lt;/P&gt;&lt;P&gt;-&amp;gt; backgroundcolor-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(GetFieldSelections(Date),Green(),white())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 12:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317465#M582706</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-11-14T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317466#M582707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try it, but hopelessly it doesn't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I'm missing something. Just to be sure, as shown on the picture in previous message, my pivot table is set as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension 1 : day of the week&lt;/P&gt;&lt;P&gt;dimension 2 : week number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression : date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 13:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317466#M582707</guid>
      <dc:creator />
      <dc:date>2011-11-14T13:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317467#M582708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the attached file.&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 13:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317467#M582708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-14T13:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317468#M582709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't open your file, no more recovery allowed...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 14:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317468#M582709</guid>
      <dc:creator />
      <dc:date>2011-11-14T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317469#M582710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain what you did without any Qlikview document? (I'm on personal edition, so I'm no more able to open others .qvw).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317469#M582710</guid>
      <dc:creator />
      <dc:date>2011-11-14T15:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317470#M582711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First I made a calender (Year, month, week, weekday, etc) bases on a date field.&lt;/P&gt;&lt;P&gt;Select 1 year in and rightt click the year field to check "Always One selected Value"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I used Weeknumber and WeekDay in a pivot table (like your example) &lt;/P&gt;&lt;P&gt;And used the following expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =day(max(datefield))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the following background color forumla:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =IF (IsNull(WeekDay),white(),&lt;/EM&gt;&lt;EM&gt;If(count(datefield)=1, Green())&lt;/EM&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the following for the text formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =IF (IsNull(WeekDay),white(),&lt;/EM&gt;&lt;EM&gt; If(count(datefield)=1, &lt;/EM&gt;&lt;EM&gt;Green()&lt;/EM&gt;&lt;EM&gt;))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the pivot table to "Show all Values" (Dimension tab) and uncheck "Supress zero values"(Presentation tab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="calender.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8626_calender.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way not only will the selection on your datefield show in your calender, it will also show any calender connected seletions (Week, Month, ect)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is what you are looking for, ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck,&lt;/P&gt;&lt;P&gt;Dennis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 07:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317470#M582711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-15T07:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Color cell background according to field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317471#M582712</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;that's exactly what I wanted, and with a little modification, it works perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=day(max(datefield))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is useful. It doesn't make any sens for me and when I put it in a textbox it doesn't show any result (maybe I'm missing something). But anyway, it works fine without it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if I want your process to function, I have to change the end of expression for background color and text color and add a superior sign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=IF (IsNull(weekday),white(),If(count(Datefield)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;&amp;gt;&lt;/SPAN&gt;=1, Green()))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;benetche&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 10:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-cell-background-according-to-field-selection/m-p/317471#M582712</guid>
      <dc:creator />
      <dc:date>2011-11-15T10:01:48Z</dc:date>
    </item>
  </channel>
</rss>

