<?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 Multiple if statements&amp; color expression within Graphs in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Multiple-if-statements-color-expression-within-Graphs/m-p/1271376#M26142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi All.&amp;nbsp; Wondering if anyone can help.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm at a lose end with this.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have a group of dates within a Dimension [DISC DATE], I can categories the dates in certain groups within a table based on how many days from today until the discontinued date (I.e between 0-30 = "Action") with the following expression &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Category Expression-&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(-(today() - [FF Disc Date])&amp;gt;0 and ([FF Disc Date]) &amp;lt;30, 'Action', &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(-(today() - [FF Disc Date]) &amp;gt;30 and ([FF Disc Date]) &amp;gt;90 and right([FF Disc Date],4)&amp;lt;&amp;gt;2099, 'Attention',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if (right([FF Disc Date],4) =2099,'Clear')))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Using the background color within the table options adds the color which also works superbly &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Color Expression - &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(-(today() - [FF Disc Date])&amp;lt;30, rgb(255,0,0), &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(-(today() - [FF Disc Date]) &amp;gt;30 and ([FF Disc Date]) &amp;gt;90 and right([FF Disc Date],4)&amp;lt;&amp;gt;2099, rgb(255,194,0),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if (right([FF Disc Date],4) =2099,rgb(50,205,50))))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;To add a high level view I'm aiming to create a pie chart, which will split Action,Attention and Clear, with the relevant color being present in the chart. Red,Amber,Green&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;My question is, the expression for the color will not work in the Pie Chart, nor any other graphs.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I believe it's because "action","attention"and "clear" are not grouped or present as fields as such, the color code works in the table as all values are present.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've tried the AGGR,SUM etc. functions to try and group them then add the color. I.e Group all less then 30 days and add color so to speak.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;After 3 hours of playing around with multiple expressions I am stumped, please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Nov 2024 10:10:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2024-11-16T10:10:09Z</dc:date>
    <item>
      <title>Multiple if statements&amp; color expression within Graphs</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-if-statements-color-expression-within-Graphs/m-p/1271376#M26142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi All.&amp;nbsp; Wondering if anyone can help.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm at a lose end with this.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have a group of dates within a Dimension [DISC DATE], I can categories the dates in certain groups within a table based on how many days from today until the discontinued date (I.e between 0-30 = "Action") with the following expression &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Category Expression-&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(-(today() - [FF Disc Date])&amp;gt;0 and ([FF Disc Date]) &amp;lt;30, 'Action', &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(-(today() - [FF Disc Date]) &amp;gt;30 and ([FF Disc Date]) &amp;gt;90 and right([FF Disc Date],4)&amp;lt;&amp;gt;2099, 'Attention',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if (right([FF Disc Date],4) =2099,'Clear')))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Using the background color within the table options adds the color which also works superbly &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Color Expression - &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(-(today() - [FF Disc Date])&amp;lt;30, rgb(255,0,0), &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(-(today() - [FF Disc Date]) &amp;gt;30 and ([FF Disc Date]) &amp;gt;90 and right([FF Disc Date],4)&amp;lt;&amp;gt;2099, rgb(255,194,0),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if (right([FF Disc Date],4) =2099,rgb(50,205,50))))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;To add a high level view I'm aiming to create a pie chart, which will split Action,Attention and Clear, with the relevant color being present in the chart. Red,Amber,Green&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;My question is, the expression for the color will not work in the Pie Chart, nor any other graphs.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I believe it's because "action","attention"and "clear" are not grouped or present as fields as such, the color code works in the table as all values are present.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've tried the AGGR,SUM etc. functions to try and group them then add the color. I.e Group all less then 30 days and add color so to speak.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;After 3 hours of playing around with multiple expressions I am stumped, please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-if-statements-color-expression-within-Graphs/m-p/1271376#M26142</guid>
      <dc:creator />
      <dc:date>2024-11-16T10:10:09Z</dc:date>
    </item>
  </channel>
</rss>

