<?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 Color coding in scatter plot in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Color-coding-in-scatter-plot/m-p/2158610#M93899</link>
    <description>&lt;P&gt;&lt;SPAN&gt;i have created scatter plot to show qty and cm of current and previous year for all customers&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;bubble - if(tkt_Year= $(vYear),customer&amp;amp; ' '&amp;amp; $(vYear), if(tkt_Year= $(vpreYear),customer &amp;amp; ' '&amp;amp; $(vpreYear)))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;X axis- Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vMinYearMonth) )&amp;lt;=$(=(vMaxYearMonth) )" }&amp;gt;+ &amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} [cm])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Y Axis- Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vMinYearMonth) )&amp;lt;=$(=(vMaxYearMonth) )" }&amp;gt;+ &amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} qty)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and colur coding for bubble is&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(tkt_Year = $(vYear), Green(), // Green for the current year if(tkt_Year = $(vpreYear), RGB(0, 191, 255) // Blue for the previous year ) )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_0-1704453523440.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126574iDF22E34DB20E900F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_0-1704453523440.png" alt="Swathi_0-1704453523440.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now i need give red colur for the current year customers who has less cm compare with last year, less volume compare with last year.&lt;/P&gt;
&lt;P&gt;i took year over year growth percentage and whose growth is more than &amp;lt;-10 it should be in red colur or same green colur of current year&lt;/P&gt;
&lt;P&gt;i tried below formula,&lt;/P&gt;
&lt;P&gt;if(tkt_Year = $(vYear),&lt;BR /&gt;if((((Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vMinYearMonth) )&amp;lt;=$(=(vMaxYearMonth) )" }&amp;gt; }[cm2])-Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} [cm2]))/Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} [cm2]))*100&lt;BR /&gt;&amp;lt;(-10)) or (((Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vMinYearMonth) )&amp;lt;=$(=(vMaxYearMonth) )" }&amp;gt; }delv_qty)-Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} delv_qty))/Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} delv_qty))*100&lt;BR /&gt;&amp;lt;(-10)),&lt;BR /&gt;Red(), // Red if cm2 for the current year is less than the previous year&lt;BR /&gt;Green() // Green for the current year&lt;BR /&gt;),&lt;BR /&gt;if(tkt_Year = $(vpreYear),&lt;BR /&gt;RGB(0, 191, 255), // Blue for the previous year&lt;BR /&gt;// Add any other conditions or default color here&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it is not showing any customers with red colur,&amp;nbsp; even they are &amp;lt;(-10). when i tried same thing in table it worked fine, but onlycustomer name and not end with year name. i am thinking the problem with customers name, so it is not giving. to get two bubbles for same customer current year and previous, i have done customer ending year name, so it will give two customers. now i need to colur coding&amp;nbsp;whose customer growth is more than &amp;lt;-10 it should be in red colur or same green colur of current year, previous all should be in blue only, only current year bubbles should change.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sharing sample which i have tried i n tabel also&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_1-1704454195876.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126575iA97DA2E16CB8E3DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_1-1704454195876.png" alt="Swathi_1-1704454195876.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;if we take example&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_3-1704454324171.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126577iF0B4B9C6402DD0EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_3-1704454324171.png" alt="Swathi_3-1704454324171.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the above screenshot customer has 37%&amp;nbsp; less cm compare with last year so that value is in negative, so i need that give colour for that customer who has more than 10 %(mean -10%)&amp;nbsp; growth of cm and qty that customers should be in red colur in scatter plot bubbles for current year.&lt;/P&gt;
&lt;P&gt;Kindly help me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:08:15 GMT</pubDate>
    <dc:creator>Swathi</dc:creator>
    <dc:date>2024-11-15T21:08:15Z</dc:date>
    <item>
      <title>Color coding in scatter plot</title>
      <link>https://community.qlik.com/t5/App-Development/Color-coding-in-scatter-plot/m-p/2158610#M93899</link>
      <description>&lt;P&gt;&lt;SPAN&gt;i have created scatter plot to show qty and cm of current and previous year for all customers&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;bubble - if(tkt_Year= $(vYear),customer&amp;amp; ' '&amp;amp; $(vYear), if(tkt_Year= $(vpreYear),customer &amp;amp; ' '&amp;amp; $(vpreYear)))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;X axis- Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vMinYearMonth) )&amp;lt;=$(=(vMaxYearMonth) )" }&amp;gt;+ &amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} [cm])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Y Axis- Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vMinYearMonth) )&amp;lt;=$(=(vMaxYearMonth) )" }&amp;gt;+ &amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} qty)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and colur coding for bubble is&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(tkt_Year = $(vYear), Green(), // Green for the current year if(tkt_Year = $(vpreYear), RGB(0, 191, 255) // Blue for the previous year ) )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_0-1704453523440.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126574iDF22E34DB20E900F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_0-1704453523440.png" alt="Swathi_0-1704453523440.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now i need give red colur for the current year customers who has less cm compare with last year, less volume compare with last year.&lt;/P&gt;
&lt;P&gt;i took year over year growth percentage and whose growth is more than &amp;lt;-10 it should be in red colur or same green colur of current year&lt;/P&gt;
&lt;P&gt;i tried below formula,&lt;/P&gt;
&lt;P&gt;if(tkt_Year = $(vYear),&lt;BR /&gt;if((((Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vMinYearMonth) )&amp;lt;=$(=(vMaxYearMonth) )" }&amp;gt; }[cm2])-Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} [cm2]))/Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} [cm2]))*100&lt;BR /&gt;&amp;lt;(-10)) or (((Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vMinYearMonth) )&amp;lt;=$(=(vMaxYearMonth) )" }&amp;gt; }delv_qty)-Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} delv_qty))/Sum({&amp;lt;Period,[MonthYear]={ "&amp;gt;=$(=(vLimitPrevious_Min) )&amp;lt;=$(=(vLimitPrevious_Max) )" }&amp;gt;} delv_qty))*100&lt;BR /&gt;&amp;lt;(-10)),&lt;BR /&gt;Red(), // Red if cm2 for the current year is less than the previous year&lt;BR /&gt;Green() // Green for the current year&lt;BR /&gt;),&lt;BR /&gt;if(tkt_Year = $(vpreYear),&lt;BR /&gt;RGB(0, 191, 255), // Blue for the previous year&lt;BR /&gt;// Add any other conditions or default color here&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it is not showing any customers with red colur,&amp;nbsp; even they are &amp;lt;(-10). when i tried same thing in table it worked fine, but onlycustomer name and not end with year name. i am thinking the problem with customers name, so it is not giving. to get two bubbles for same customer current year and previous, i have done customer ending year name, so it will give two customers. now i need to colur coding&amp;nbsp;whose customer growth is more than &amp;lt;-10 it should be in red colur or same green colur of current year, previous all should be in blue only, only current year bubbles should change.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sharing sample which i have tried i n tabel also&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_1-1704454195876.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126575iA97DA2E16CB8E3DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_1-1704454195876.png" alt="Swathi_1-1704454195876.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;if we take example&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Swathi_3-1704454324171.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126577iF0B4B9C6402DD0EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Swathi_3-1704454324171.png" alt="Swathi_3-1704454324171.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the above screenshot customer has 37%&amp;nbsp; less cm compare with last year so that value is in negative, so i need that give colour for that customer who has more than 10 %(mean -10%)&amp;nbsp; growth of cm and qty that customers should be in red colur in scatter plot bubbles for current year.&lt;/P&gt;
&lt;P&gt;Kindly help me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-coding-in-scatter-plot/m-p/2158610#M93899</guid>
      <dc:creator>Swathi</dc:creator>
      <dc:date>2024-11-15T21:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Color coding in scatter plot</title>
      <link>https://community.qlik.com/t5/App-Development/Color-coding-in-scatter-plot/m-p/2479317#M100583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/248526"&gt;@Swathi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;check if there are null&amp;nbsp;values in your data that could cause unwanted behavior. You might need to wrap the conditions with a coalesce or ifnull function to handle potential nulls.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 10:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-coding-in-scatter-plot/m-p/2479317#M100583</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-09-03T10:02:29Z</dc:date>
    </item>
  </channel>
</rss>

