<?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: Expression Formatting Bug? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Formatting-Bug/m-p/1260310#M397622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first issue isn't a bug else it are just &lt;A href="https://community.qlik.com/qlik-blogpost/3471"&gt;Rounding Errors&lt;/A&gt;. This meant you need to use a rounding function to at least one part of the comparing, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(&lt;SPAN style="color: #3366ff;"&gt;[Net Sales After Discount ]&lt;/SPAN&gt;,0.01) = round(&lt;SPAN style="color: #3366ff;"&gt;[Net Sales After Discount ]&amp;gt;=v.Exp.RecordBreakers.PreviousYear.ByMonth.Rank1.NetSalesAfterDiscount&lt;/SPAN&gt;,0.01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second issue with the text-formatting should normally work - I have done already multiple formattings like this and only seen such behaviour if anything was wrong whereby it might exists some conflicting because there are several ways of formatting a cell/row/column - per design- and visualization tab, with the here used attribute-expressions and per custom cell-format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also a corrupt object (pivot in this case) is quite rarely but possible. One way to check for it is to create a new pivot and add some dummy dimension/expression and format it without this expressions/conditions and if the formattings will be applied add then step by step your real dimensions and expressions (should be there any conflict you will see it at once).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 11:45:24 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-01-17T11:45:24Z</dc:date>
    <item>
      <title>Expression Formatting Bug?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Formatting-Bug/m-p/1260309#M397621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Expression formatting to change the colour of the result cell if it is the same as the highest ranked result.&lt;/P&gt;&lt;P&gt;I use the below Expression in the 'Background Colour' formatting box;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;=IF(([Net Sales After Discount ]&amp;gt;=v.Exp.RecordBreakers.PreviousYear.ByMonth.Rank1.NetSalesAfterDiscount AND [Net Sales After Discount ]&amp;lt;=v.Exp.RecordBreakers.PreviousYear.ByMonth.Rank1.NetSalesAfterDiscount+1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;([Net Sales After Discount ]&amp;gt;=v.Exp.RecordBreakers.CurrentYear.ByMonth.Rank1.NetSalesAfterDiscount AND [Net Sales After Discount ]&amp;lt;=v.Exp.RecordBreakers.CurrentYear.ByMonth.Rank1.NetSalesAfterDiscount+1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;,Green())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;using just 'if( X = Y ' does not give a result so '&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;if( X &amp;gt;= Y &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;X &amp;lt;= Y+1' has to be used....another quirk of Qlikview)&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/angry.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #3366ff; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;Now the above all works and the background changes to green for the first result as desired. The problem comes when I add 'Text Format' to make the result text Bold.&amp;nbsp; I use the same expression again but this time change the result to '&amp;lt;B&amp;gt;';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #3366ff; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;=IF(([Net Sales After Discount ]&amp;gt;=v.Exp.RecordBreakers.PreviousYear.ByMonth.Rank1.NetSalesAfterDiscount AND [Net Sales After Discount ]&amp;lt;=v.Exp.RecordBreakers.PreviousYear.ByMonth.Rank1.NetSalesAfterDiscount+1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;([Net Sales After Discount ]&amp;gt;=v.Exp.RecordBreakers.CurrentYear.ByMonth.Rank1.NetSalesAfterDiscount AND [Net Sales After Discount ]&amp;lt;=v.Exp.RecordBreakers.CurrentYear.ByMonth.Rank1.NetSalesAfterDiscount+1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;,'&amp;lt;B&amp;gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000;"&gt;Being that this same statement worked for 'Background Colour' it follows it should work for 'Text format'&amp;nbsp; However it does not, instead it actually removes all formatting including the &lt;SPAN style="color: #000000; font-size: 13.3333px;"&gt;'Background Colour'&lt;/SPAN&gt; that was working?!?!&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/angry.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;SPAN style="color: #000000;"&gt;Is this just another Qlikview Bug?&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 10:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Formatting-Bug/m-p/1260309#M397621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-17T10:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Formatting Bug?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Formatting-Bug/m-p/1260310#M397622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first issue isn't a bug else it are just &lt;A href="https://community.qlik.com/qlik-blogpost/3471"&gt;Rounding Errors&lt;/A&gt;. This meant you need to use a rounding function to at least one part of the comparing, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(&lt;SPAN style="color: #3366ff;"&gt;[Net Sales After Discount ]&lt;/SPAN&gt;,0.01) = round(&lt;SPAN style="color: #3366ff;"&gt;[Net Sales After Discount ]&amp;gt;=v.Exp.RecordBreakers.PreviousYear.ByMonth.Rank1.NetSalesAfterDiscount&lt;/SPAN&gt;,0.01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second issue with the text-formatting should normally work - I have done already multiple formattings like this and only seen such behaviour if anything was wrong whereby it might exists some conflicting because there are several ways of formatting a cell/row/column - per design- and visualization tab, with the here used attribute-expressions and per custom cell-format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also a corrupt object (pivot in this case) is quite rarely but possible. One way to check for it is to create a new pivot and add some dummy dimension/expression and format it without this expressions/conditions and if the formattings will be applied add then step by step your real dimensions and expressions (should be there any conflict you will see it at once).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 11:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Formatting-Bug/m-p/1260310#M397622</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-17T11:45:24Z</dc:date>
    </item>
  </channel>
</rss>

