<?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: KPI with different text colors in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/KPI-with-different-text-colors/m-p/1594848#M43774</link>
    <description>&lt;P&gt;To my knowledge, there is no way in Qlik Sense to format the color of part of a string in a text box.&lt;/P&gt;&lt;P&gt;You could instead create a text box with the first part of the Text, then a KPI box with the Numbers in it(there you can code the Colour in an if statement and rgb-codes)Textbox again('or') and the another KPI box with the last Number&lt;/P&gt;&lt;P&gt;You might face issues with the size of the Text and Numbers, so therefor maybe stick to Textboxes, but still divide them into several with colour coding for the KPI's&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jun 2019 11:02:14 GMT</pubDate>
    <dc:creator>H_Julian</dc:creator>
    <dc:date>2019-06-23T11:02:14Z</dc:date>
    <item>
      <title>KPI with different text colors</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-with-different-text-colors/m-p/1594281#M43717</link>
      <description>&lt;P&gt;Hi, I have a KPI as in the example below, I've highlighted the two numbers at the end.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KPI Example.PNG" style="width: 929px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14117i53CC0906121E51FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="KPI Example.PNG" alt="KPI Example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code for the expression is below, I use the Num function to format variables that are performing the calculations:&lt;/P&gt;&lt;P&gt;='Revenue for YTD-' &amp;amp; $(vLabelCurrentYear) &amp;amp; ' was ' &amp;amp; Num($(vAmountCurrentYear),'$#,##0.00;-$#,##0.00') &amp;amp;&lt;BR /&gt;', Revenue for YTD-' &amp;amp; $(vLabelPriorYear) &amp;amp; ' was ' &amp;amp; Num($(vAmountLastYear),'$#,##0.00;-$#,##0.00') &amp;amp;&lt;BR /&gt;', for a difference of ' &amp;amp; Num($(vAmountCurrentYear)- $(vAmountLastYear),'$#,##0.00;($#,##0.00)') &amp;amp; ' Or ' &amp;amp; Num($(vDifferenceYear),'#,##0%;(#,##0%)')&lt;/P&gt;&lt;P&gt;What I'd like to do is change the text color for the difference and percentage numbers at the end if they are negative.&amp;nbsp; I'm not having any luck with trying to wrap formatting functions around the calculations.&amp;nbsp; I can find lots of examples of changing the color of all the text but not a part of it.&amp;nbsp; I saw an example where someone did this but I believe it was in Qlik View or they may have put multiple KPI objects next to each other.&lt;/P&gt;&lt;P&gt;Thanks in advance for any help or assistance.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 17:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-with-different-text-colors/m-p/1594281#M43717</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2019-06-20T17:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: KPI with different text colors</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-with-different-text-colors/m-p/1594848#M43774</link>
      <description>&lt;P&gt;To my knowledge, there is no way in Qlik Sense to format the color of part of a string in a text box.&lt;/P&gt;&lt;P&gt;You could instead create a text box with the first part of the Text, then a KPI box with the Numbers in it(there you can code the Colour in an if statement and rgb-codes)Textbox again('or') and the another KPI box with the last Number&lt;/P&gt;&lt;P&gt;You might face issues with the size of the Text and Numbers, so therefor maybe stick to Textboxes, but still divide them into several with colour coding for the KPI's&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2019 11:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-with-different-text-colors/m-p/1594848#M43774</guid>
      <dc:creator>H_Julian</dc:creator>
      <dc:date>2019-06-23T11:02:14Z</dc:date>
    </item>
  </channel>
</rss>

