<?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: How to optimize the below charts expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-optimize-the-below-charts-expression/m-p/2081379#M88683</link>
    <description>&lt;P&gt;Are you sure calculation is repeating, I see different expression for each of 5 conditions?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Digvijay_Singh_0-1686184362125.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109490iB133A20A56231731/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Digvijay_Singh_0-1686184362125.png" alt="Digvijay_Singh_0-1686184362125.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 00:33:05 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2023-06-08T00:33:05Z</dc:date>
    <item>
      <title>How to optimize the below charts expression</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-optimize-the-below-charts-expression/m-p/2081146#M88670</link>
      <description>&lt;P&gt;Hi all, I looking to optimize the below KPI expression for better app performance but couldn't figure out a solution. Your help is highly appreciated. I just want to reduce the calculation since the same calculation is being repeated for all 5 cases. Is it possible to calculate only only time with the help of pick and match to increase the performance. This is the urgent requirement. Please help.&lt;/P&gt;
&lt;P&gt;NOTE-: I want to optimize the expression for better app performance I don't want to simplify the expression.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(GetSelectedCount(MONTH)=0 and GetSelectedCount(QUARTER)=0 and GetSelectedCount(FY)=0 and getselectedcount(DATE)=0, ((count({&amp;lt;MONTH={'$(curr_moonth)'},VAL_CDE*={"*abc"}&amp;gt;}VAL_CDE)/ count({1&amp;lt;MONTH={'$(last_month)'},VAL_CDE*={"*abc"}&amp;gt;}VAL_CDE))-1)*100, if(GetSelectedCount(MONTH)=1 and GetSelectedCount(QUARTER)=0 and GetSelectedCount(FY)=0 and getselectedcount(DATE)=0, ((count({&amp;lt;VAL_CDE*={"*abc"}&amp;gt;}VAL_CDE)/ count({1&amp;lt;MONTH={'$(prev_month)'},VAL_CDE*={"*abc"}&amp;gt;}VAL_CDE))-1)*100, if(GetSelectedCount(MONTH)=0 and GetSelectedCount(QUARTER)=1 and GetSelectedCount(FY)=0 and getselectedcount(DATE)=0, ((count({&amp;lt;VAL_CDE*={"*abc}&amp;gt;}VAL_CDE)/ count({1&amp;lt;QUARTER={'$(quarter_name)'},VAL_CDE*={"*abc"}&amp;gt;}VAL_CDE))-1)*100, if(GetSelectedCount(MONTH)=0 and GetSelectedCount(QUARTER)=0 and GetSelectedCount(FY)=0 and getselectedcount(DATE)&amp;gt;=1, ((count({&amp;lt;DATE= {"&amp;gt;=$(=date(min(DATE)))&amp;lt;=$(=date(max(DATE)+1))"},VAL_CDE*={"*abc"}&amp;gt;}VAL_CDE)/ count({1&amp;lt;DATE= {"&amp;gt;=$(=date(min(DATE)-(max(DATE)-min(DATE))-1))&amp;lt;=$(=date(max(DATE)-(max(DATE)-min(DATE))))"},VAL_CDE*={"*abc"}&amp;gt;}VAL_CDE))-1)*100, if(GetSelectedCount(MONTH)=0 and GetSelectedCount(QUARTER)=0 and GetSelectedCount(FY)=1 and getselectedcount(DATE)=0, ((Count({&amp;lt;MONTH= {"&amp;gt;=$(=Yearstart(max(MONTH),0,4))&amp;lt;=$(=Yearend(max(MONTH),0,4))"},VAL_CDE*={"*abc"}&amp;gt;}VAL_CDE)/ Count({1&amp;lt;MONTH={"&amp;gt;=$(=Yearstart(max(MONTH),-1,4))&amp;lt;=$(=Yearend(max(MONTH),-1,4))"},VAL_CDE*={"*abc"}&amp;gt;}VAL_CDE))-1)*100)))))&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-optimize-the-below-charts-expression/m-p/2081146#M88670</guid>
      <dc:creator>aarav021</dc:creator>
      <dc:date>2024-11-15T21:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize the below charts expression</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-optimize-the-below-charts-expression/m-p/2081379#M88683</link>
      <description>&lt;P&gt;Are you sure calculation is repeating, I see different expression for each of 5 conditions?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Digvijay_Singh_0-1686184362125.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109490iB133A20A56231731/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Digvijay_Singh_0-1686184362125.png" alt="Digvijay_Singh_0-1686184362125.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 00:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-optimize-the-below-charts-expression/m-p/2081379#M88683</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2023-06-08T00:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize the below charts expression</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-optimize-the-below-charts-expression/m-p/2081437#M88686</link>
      <description>&lt;P&gt;Different as in like first case is based on current month and prev month, second case is calculating for month like if any month is selected. Third case is calculating for quarter, fourth case is for year and fifth case is for date. but these calculations are being multiplied by 100 only. So any possible solution where we can use pick and match or any other solution to optimize the code&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 05:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-optimize-the-below-charts-expression/m-p/2081437#M88686</guid>
      <dc:creator>aarav021</dc:creator>
      <dc:date>2023-06-08T05:35:00Z</dc:date>
    </item>
  </channel>
</rss>

