<?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: Multiple if statements under expression text color in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291501#M871589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for this idea. I will consider trying this. However, I need to figure out the stuff about the budget. I am working with some pretty new data in many regards, so I am not sure I have this exact possibility. Also it is over many weeks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2016 14:59:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-22T14:59:11Z</dc:date>
    <item>
      <title>Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291496#M871584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding the use of multiple IF statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with 7 product groups, that I am displaying in the same graph. I am using a list box to toogle between each, showing their sales number in the graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is regarding the feature "Text color" under expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to add different colors depending on which of the 7 products i choose. What I want to do is that sale numbers above xx (depending on the choosen product) are shown in green, and below this number are shown in red. As the sale numbers vary a lot between the 7 product groups the "cut-off" point should be different for each, hence the IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( [sales] &amp;gt;='500'&amp;nbsp; and [Product_Group] = '1',rgb(255,110,110),rgb(108,179,63),&lt;/P&gt;&lt;P&gt;if( [sales] &amp;gt;='500'&amp;nbsp; and [Product_Group] = '2',rgb(255,110,110),rgb(108,179,63),&lt;/P&gt;&lt;P&gt;if( [sales] &amp;gt;='500'&amp;nbsp; and [Product_Group] = '3 SW',rgb(255,110,110),rgb(108,179,63),&lt;/P&gt;&lt;P&gt;if( [sales] &amp;gt;='500'&amp;nbsp; and [Product_Group] = '4 5D',rgb(255,110,110),rgb(108,179,63),&lt;/P&gt;&lt;P&gt;if( [sales] &amp;gt;='500'&amp;nbsp; and [Product_Group] = '5',rgb(255,110,110),rgb(108,179,63),&lt;/P&gt;&lt;P&gt;if( [sales] &amp;gt;='500'&amp;nbsp; and [Product_Group] = '6',rgb(255,110,110),rgb(108,179,63),&lt;/P&gt;&lt;P&gt;if( [sales] &amp;gt;='500'&amp;nbsp; and [Product_Group] = '7',rgb(255,110,110),rgb(108,179,63)&lt;/P&gt;&lt;P&gt;)))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again the reason for the IF statements is that the 500 should be different for each product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have only been using QlikView for less than a week, so I am sorry if my question and/or programmering is not very clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathias&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/Multiple-if-statements-under-expression-text-color/m-p/1291496#M871584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291497#M871585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see same color combination for all. If that's what you are looking. Then try only this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =if( [sales] &amp;gt;='500'&amp;nbsp; ,rgb(255,110,110),rgb(108,179,63))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if all of them are different, try something with 'Pick' and 'If Else'&lt;/P&gt;&lt;P&gt;if( [sales] &amp;gt;='500' ,Pick([Product_Group],RGB(Your Combination),RGB(Your Combination),......etc),rgb(108,179,63))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291497#M871585</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-11-22T14:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291498#M871586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mathias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need a table for the budget. The way that you are using is too complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching a example, that uses a table to get the budget information (for your case, it's the "cut-off" point)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note the datamodel and the color expression, there are the things that you could use.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sample.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/144525_Sample.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sample.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144524_Sample.JPG" style="height: 384px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291498#M871586</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2016-11-22T14:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291499#M871587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Rupam, thanks for the fast reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes in what I posted the colors are listed as the same, which they also should be. But the "cutoff" point is what I am trying to set differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example product group 1 has sales between 1 and 1000 (hypothetically), so above 500 should be green, and below red. But product group 2 has sales between 5000 and 10000, so if I have the same "cutoff" point at 500, all will be green. Instead I wanted this to be like above 7500. So every product should have same colors, but different "cutoff" points. So when I pick product 1 in the List box, it will have green and red for above and below 500, while for product 2 this would for example be above and below 7500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this makes sense!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to see if I can make something work with Pick and IF else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291499#M871587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-22T14:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291500#M871588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathias, the 'If' function syntaxis is: &lt;SPAN class="h-0" style="background: #fafad4; color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;(condition , then , else) &lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ConditionalFunctions/if.htm" title="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ConditionalFunctions/if.htm"&gt;https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ConditionalFunctions/if.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are trying to use a third paremeter, wich doesn't exist, so you'll need to adapt you requirements to the function syntaxis, so it can be:&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Product_Group] = '1',&amp;nbsp; // 'Condition'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; If( [sales] &amp;gt;='500', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,rgb(255,110,110),rgb(108,179,63)), // 'Then' part for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Product_Group] = '1'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Product_Group] = '2', // 'Else' &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;part for &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Product_Group] = '1'; Used to create another If(); Condition&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If( [sales] &amp;gt;='500', &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,rgb(255,110,110),rgb(108,179,63)), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; // 'Then' part for &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Product_Group] = '2'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Product_Group] = '3'....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)))))) // the last one should close all the above If's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a "direct way, there are more elegant and readable solutions like the one proposed by Rupam... using the same Pick function, if ProductGroup is a numerical value that starts at '1' and is autonumeric from there you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Product_Group], //If Group=1 it will pick the 1st expression, if group=2 it takes the 2nd..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; // Group1&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if( [sales] &amp;gt;='500'&amp;nbsp; ,rgb(255,110,110),rgb(108,179,63)),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;// Group2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if( [sales] &amp;gt;='500'&amp;nbsp; ,rgb(255,110,110),rgb(108,179,63)),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291500#M871588</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-22T14:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291501#M871589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for this idea. I will consider trying this. However, I need to figure out the stuff about the budget. I am working with some pretty new data in many regards, so I am not sure I have this exact possibility. Also it is over many weeks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291501#M871589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-22T14:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291502#M871590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the detailed answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah I can see that my way of trying to do it does not follow the function syntaxis. However, I thought that it would be possible to use an "and" statement to state that for each if function it had to be both a car model and a specific sales amount that was used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the product groups&amp;nbsp; are not autonumeric, as they are different car models (7 different ones), and I therefore do not think using Pick will be possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand your other answer, then an if statement is used for both the "then" and "else" part? where in the "then" part I determine the condition for the coloring of for example product 1, and in the else part I actually start a new if statement with product 2,3, etc.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So overall it should determine it if it product 1, and do the coloring, and if not then look if product 2, and so on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just trying to make sure I understand it, because then I will try it out and work with this. I can see that the "Pick" should be more clear, but I am not sure it works with my dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291502#M871590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-22T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291503#M871591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathias, if I understand it right to use Julian's idea you only need an inline table (or an external file) that sets the value for each product group, in example:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Product_Group], Budget&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;1, 500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2, 500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can use a lot simpler expression like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=if(Sum([sales])&amp;gt;= Budget, rgb(255,110,110),rgb(108,179,63))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BTW those colors are using red when sales are higher than budget and green when is sales are lower than the value. Maybe it should be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=if(Sum([sales])&amp;gt;= Budget, rgb(108,179,63), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;rgb(255,110,110)&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291503#M871591</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-22T15:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291504#M871592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah okay, I could see that being a possibility also. I will see if I can work out something with this solution also. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291504#M871592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-22T15:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291505#M871593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathias, yes, you can nest different If's, in the 'Then' part you add what you want to do when conditions are meet, and you use the 'Else' part to continue with other conditions, the 'Else' part of the last 'If' is when none of the above conditions where met.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that order is important when nesting if, in example:&lt;/P&gt;&lt;P&gt;If(Sum(Sales)&amp;gt;1000, rgb(...),&lt;/P&gt;&lt;P&gt; If(Sum(Sales)&amp;gt;2000, rgb(...) // It will never execute this 'Then' part, if sum(Sales)&amp;gt;2000 the 'then' part of the first 'If' is executed (because is also &amp;gt;1000) and it doesn't reaches the second 'If'. If Sum(Sales)&amp;lt;=1000 it will not enter the 'Then' part of the first 'If', neither the 'Then' part of the 2nd 'If'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For use Pick with strings you'll need some workaround so we better avoid this until neccesary, so far I see Julian's answer the best option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291505#M871593</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-22T15:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291506#M871594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alright good. I do understand your way of doing it now, and I will try with this. However, as you also write, overtime Julian's answer is most likely the best, as it is a lot less complicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291506#M871594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-22T15:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291507#M871595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Overall I guess I could work with any of your answers. I will try them all out, and see what works best for me. Thank you all for the very fast and good responses!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291507#M871595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-22T15:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if statements under expression text color</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291508#M871596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good luck Mathias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad than I could help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-statements-under-expression-text-color/m-p/1291508#M871596</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2016-11-22T15:53:48Z</dc:date>
    </item>
  </channel>
</rss>

