<?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: Problem with comparison two values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053198#M920667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work either. &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;[New PVP] and &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;[Old PVP] are expression labels.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2016 07:45:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-02T07:45:59Z</dc:date>
    <item>
      <title>Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053192#M920661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I'm trying to colour the cells of a colunm when its value differs from the one in another colunm. Something like this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123244_Captura1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The expression that rules this&amp;nbsp; in the property of Backgroun Color &lt;SPAN style="font-size: 13.3333px;"&gt;is&lt;/SPAN&gt;:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14621732489591107" jivemacro_uid="_14621732489591107" modifiedtitle="true"&gt;
&lt;P&gt;if([New PVP]&amp;lt;&amp;gt;[Old PVP]&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;, RGB(192,192,192)&lt;/SPAN&gt;, RGB(255,255,255))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;But It doesn`t work always as you can see:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/123246_Captura2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Does anybody have a clue? &lt;/P&gt;&lt;P&gt;Thanks in advance.&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/Problem-with-comparison-two-values/m-p/1053192#M920661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053193#M920662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are these columns? New PVP and Old PVP? Just looking at the partial image doesn't really help. Would you be able to give more details, and share a sample if possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053193#M920662</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-02T07:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053194#M920663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;[New PVP] and &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;[Old PVP] are expression label or field?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;try to put the actual expression in background color&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;if(&lt;STRONG&gt;ExpressionForNewPVP &amp;lt;&amp;gt; &lt;STRONG style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;ExpressionForOldPVP,&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;RGB(192,192,192), RGB(255,255,255))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053194#M920663</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-02T07:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053195#M920664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are Two prices&lt;/P&gt;&lt;P&gt;New PVP (New Price) is defined bay the following expression:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14621740143029378" jivemacro_uid="_14621740143029378" modifiedtitle="true"&gt;
&lt;P&gt;if(Match(Right(num([PVP Definitivo],'#.##0,00;-#.##0,00'),1),1,2,3,4,5)&amp;lt;&amp;gt;0 , Ceil([PVP Definitivo],0.05),&lt;/P&gt;
&lt;P&gt;if(Match(Right(num([PVP Definitivo],'#.##0,00;-#.##0,00'),1),6,7,8,9)&amp;lt;&amp;gt;0, Ceil([PVP Definitivo],0.05,-0.01),&lt;/P&gt;
&lt;P&gt;Round(num([PVP Definitivo],'#.##0,00;-#.##0,00'),0.01)))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;And Old PVP (Old Price) by this one:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14621741072824006" jivemacro_uid="_14621741072824006" modifiedtitle="true"&gt;
&lt;P&gt;num(PriceToCompare.PVP,'#.##0,00;-#.##0,00')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053195#M920664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-02T07:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053196#M920665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why won't the labels work Kush?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053196#M920665</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-02T07:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053197#M920666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible to share a sample? I am still not sure I understand what you are doing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053197#M920666</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-02T07:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053198#M920667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work either. &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;[New PVP] and &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;[Old PVP] are expression labels.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053198#M920667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-02T07:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053199#M920668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Try like below,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(Round([New PVP] ,0.01)&amp;lt;&amp;gt; Round([Old PVP] ,0.01), RGB(192,192,192), RGB(255,255,255))&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053199#M920668</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-05-02T07:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053200#M920669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah!! It works!! I don't know why but it does. Thank you all for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053200#M920669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-02T07:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with comparison two values</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053201#M920670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, your both column values are not same, As you have used ceil and round functions in your expression, it gives the illusion. Your [New PVP] column values might be 1.1912 and [Old PVP] can be 1.19. So, We can use round function in the column labels to compare the values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 08:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-comparison-two-values/m-p/1053201#M920670</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-05-02T08:14:39Z</dc:date>
    </item>
  </channel>
</rss>

