<?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: How to use colors based on set analysis inside if condition? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425102#M429369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will work on the first level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179218_Capture.PNG" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But if I drill my data further for example, consumables and non consumables, my Branch CR and Company CR changes..&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But because of the formula I am not getting correct colors which seems to be obvious because of TOTAL&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/179219_Capture2.PNG" style="height: 236px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;See the colors on scatter plot doesn't makes sense now. All on the right side of line should be blue and all on the left side should be red.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Any suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 09:09:13 GMT</pubDate>
    <dc:creator>vjoshi2017</dc:creator>
    <dc:date>2017-10-11T09:09:13Z</dc:date>
    <item>
      <title>How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425100#M429367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using colors in my scatterplot depending on the compariosion result between branch Conversion Rate vs Company Conversion Rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not working. It works when I hard code it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Branch conversion rate is a field from table and company conversion rate is derived using set analysis in color section of appearance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(CR_Branch &amp;gt; Count({&amp;lt;[Converted]={"Converted"}&amp;gt;}[Converted])/Count(HSSRecordID), rgb(68,119,170),rgb(204,101,118))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(CR_Branch &amp;gt; 0.3047, rgb(68,119,170),rgb(204,101,118))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of &lt;SPAN style="font-size: 13.3333px;"&gt;Count({&amp;lt;[Converted]={"Converted"}&amp;gt;}[Converted])/Count(HSSRecordID) is 0.3047.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How to make it work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vivek&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425100#M429367</guid>
      <dc:creator>vjoshi2017</dc:creator>
      <dc:date>2017-10-10T14:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425101#M429368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(CR_Branch &amp;gt; Count(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; {&amp;lt;[Converted]={"Converted"}&amp;gt;}[Converted])/Count(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; HSSRecordID), RGB(68,119,170), RGB(204,101,118))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425101#M429368</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-10T17:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425102#M429369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will work on the first level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179218_Capture.PNG" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But if I drill my data further for example, consumables and non consumables, my Branch CR and Company CR changes..&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But because of the formula I am not getting correct colors which seems to be obvious because of TOTAL&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/179219_Capture2.PNG" style="height: 236px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;See the colors on scatter plot doesn't makes sense now. All on the right side of line should be blue and all on the left side should be red.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Any suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 09:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425102#M429369</guid>
      <dc:creator>vjoshi2017</dc:creator>
      <dc:date>2017-10-11T09:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425103#M429370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't think this is because of the TOTAL Keyword...What is your expression for the straight line? I am assuming that anything to the left of the line needs to be red and anything to the right needs to be blue? Right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 11:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425103#M429370</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-11T11:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425104#M429371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a X axis reference line which is having following expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;[Converted]={"Converted"}&amp;gt;}[Converted])/Count(HSSRecordID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me correct result for the line. And yes everything to the left of line should be red and right of the line should be blue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 11:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425104#M429371</guid>
      <dc:creator>vjoshi2017</dc:creator>
      <dc:date>2017-10-11T11:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425105#M429372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what about the expression for the dots?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 11:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425105#M429372</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-11T11:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425106#M429373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 11:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425106#M429373</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-11T11:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425107#M429374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I can't share the sample in public. But I can explain it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dots are the number of lookups.&lt;/P&gt;&lt;P&gt;expression is : count(HSSRecordID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Let me explain a bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Variables involved:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Branch Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conversion Rate(CR)&lt;/STRONG&gt; = Count({&amp;lt;[Converted]={"Converted"}&amp;gt;}[Converted])/Count(HSSRecordID)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Number of lookups&lt;/STRONG&gt; = count(HSSRecordID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression for Color: If(CR_Branch &amp;gt; Count(Total {&amp;lt;[Converted]={"Converted"}&amp;gt;}[Converted])/Count(Total HSSRecordID), RGB(68,119,170), RGB(204,101,118))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Cr_Branch is calculated through ETL. It is basically the ration of number of lookups to the number of lookups converted on branch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The objective is to show the red color where branch CR&amp;nbsp; is less then company CR and blue where it is high. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But it needs to be drillable as CR for a branch for a aparticular product could be high than CR for a company for that product group although it is less overall.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425107#M429374</guid>
      <dc:creator>vjoshi2017</dc:creator>
      <dc:date>2017-10-13T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425108#M429375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt; CR_Branch&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; &amp;gt; Count(Total {&amp;lt;[Converted]={"Converted"}&amp;gt;}[Converted])/Count(Total HSSRecordID), RGB(68,119,170), RGB(204,101,118))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425108#M429375</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-13T14:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425109#M429376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without any filter and is correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179560_Capture.PNG" style="height: 185px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With selections on product groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/179573_Capture2.PNG" style="height: 193px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can see here that conversion rate for company for these two product groups is 34.36% .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even the CR for a highlighted branch is 41% for these two product groups, it is still on the right side of line and is red. It should be blue because it is higher that 34.36%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425109#M429376</guid>
      <dc:creator>vjoshi2017</dc:creator>
      <dc:date>2017-10-13T14:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use colors based on set analysis inside if condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425110#M429377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand what you are saying, but I don't expect to see this behavior unless you have not shared a set analysis in your expressions or something else like that... that was the reason i asked for a sample... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-colors-based-on-set-analysis-inside-if-condition/m-p/1425110#M429377</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-13T14:36:15Z</dc:date>
    </item>
  </channel>
</rss>

