<?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 Conditional Formatting for Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-for-Dimension/m-p/82653#M782430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; I'm struggling with conditionally formatting a dimension based upon multiple criteria with my measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached qvw, I've correctly formatted my measures that meet two criteria:&amp;nbsp; 1.) the total_sales for the corresponding day has to be at or above my variable vSalesMinimum, and 2.) for the same day, the Return_Rate has to be at or above my variable vReturnRate_Threshold.&amp;nbsp; Those that meet these criteria are formatted with a pinkish background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the problem:&amp;nbsp; I'd like to format the background color (red) of each City_ID when the above conditions are met for a minimum of 2 days (the current value of my variable "vMinimum Days w/ Matching Criteria").&amp;nbsp; This is where I'm struggling.&amp;nbsp; I've tried lots of things without much luck.&amp;nbsp; I would think something like the following would work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CITY_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(1)&amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vSalesMinimum)&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(2)&amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vReturnRate_Threshold)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,1,0))&amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vMinimum Days w/ Matching Critera)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LightRed&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;lightcyan&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't seem to be registering the &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(1)&lt;/SPAN&gt; and &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(2&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Conditional Formatting for Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-for-Dimension/m-p/82653#M782430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; I'm struggling with conditionally formatting a dimension based upon multiple criteria with my measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached qvw, I've correctly formatted my measures that meet two criteria:&amp;nbsp; 1.) the total_sales for the corresponding day has to be at or above my variable vSalesMinimum, and 2.) for the same day, the Return_Rate has to be at or above my variable vReturnRate_Threshold.&amp;nbsp; Those that meet these criteria are formatted with a pinkish background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the problem:&amp;nbsp; I'd like to format the background color (red) of each City_ID when the above conditions are met for a minimum of 2 days (the current value of my variable "vMinimum Days w/ Matching Criteria").&amp;nbsp; This is where I'm struggling.&amp;nbsp; I've tried lots of things without much luck.&amp;nbsp; I would think something like the following would work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CITY_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(1)&amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vSalesMinimum)&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(2)&amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vReturnRate_Threshold)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,1,0))&amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vMinimum Days w/ Matching Critera)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LightRed&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;lightcyan&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't seem to be registering the &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(1)&lt;/SPAN&gt; and &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(2&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&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-for-Dimension/m-p/82653#M782430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting for Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-for-Dimension/m-p/82654#M782431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK, sum doesn't work with Column()&lt;/P&gt;&lt;P&gt;use aggr function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2018 02:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-for-Dimension/m-p/82654#M782431</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-03-24T02:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting for Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Formatting-for-Dimension/m-p/82655#M782432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Shivesh.&amp;nbsp; Before submitting the question, I had been working with the aggr function and was only able to get it to work partially.&amp;nbsp; I got the dimension to format, but with only one condition at a time (Total sales above my variable threshold or with a return rate above my variable threshold).&amp;nbsp; I wasn't able to find a way to make sure both conditions where met for the same day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 16:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Formatting-for-Dimension/m-p/82655#M782432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-26T16:49:52Z</dc:date>
    </item>
  </channel>
</rss>

